Skip to content

Commit c176926

Browse files
authored
Merge pull request #144 from codelitdev/rajat1saxena/issue143
Upgraded deps
2 parents 7dd8896 + 4c480c7 commit c176926

File tree

103 files changed

+13884
-9358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+13884
-9358
lines changed

.changeset/early-rockets-sort.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@medialit/thumbnail": patch
3+
"@medialit/images": patch
4+
---
5+
6+
Eslint upgraded

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/code-quality.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
CI: true
88

99
jobs:
10-
publish-packages:
10+
lint-format-test:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: checkout
@@ -46,10 +46,7 @@ jobs:
4646

4747
- name: Build dependencies
4848
run: |
49-
pnpm --filter=@medialit/utils build
50-
pnpm --filter=@medialit/models build
51-
pnpm --filter=@medialit/images build
52-
pnpm --filter=@medialit/thumbnail build
49+
pnpm -r build
5350
5451
- name: Run test
5552
run: pnpm test

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7-
lerna-debug.log*
87

98
# Dependencies
109
node_modules

.husky/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

100755100644
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx lint-staged

.migrations/00000-media-by-apikey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ db.users.find().forEach(async (user) => {
33
if (firstApikey) {
44
await db.media.updateMany(
55
{ userId: user._id },
6-
{ $set: { apikey: firstApikey.key } }
6+
{ $set: { apikey: firstApikey.key } },
77
);
88
console.log(`Updated ${user.email} media`);
99
}

.migrations/00002-set-unique-id-to-apikeys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function updateCollection() {
2727
const doc = await cursor.next();
2828
await collection.updateOne(
2929
{ _id: doc._id },
30-
{ $set: { keyId: nanoid() } }
30+
{ $set: { keyId: nanoid() } },
3131
);
3232
}
3333
} finally {

LICENSE.md

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,23 @@ produce it from the Program, in the form of source code under the
204204
terms of section 4, provided that you also meet all of these
205205
conditions:
206206

207-
- a) The work must carry prominent notices stating that you modified
208-
it, and giving a relevant date.
209-
- b) The work must carry prominent notices stating that it is
210-
released under this License and any conditions added under
211-
section 7. This requirement modifies the requirement in section 4
212-
to "keep intact all notices".
213-
- c) You must license the entire work, as a whole, under this
214-
License to anyone who comes into possession of a copy. This
215-
License will therefore apply, along with any applicable section 7
216-
additional terms, to the whole of the work, and all its parts,
217-
regardless of how they are packaged. This License gives no
218-
permission to license the work in any other way, but it does not
219-
invalidate such permission if you have separately received it.
220-
- d) If the work has interactive user interfaces, each must display
221-
Appropriate Legal Notices; however, if the Program has interactive
222-
interfaces that do not display Appropriate Legal Notices, your
223-
work need not make them do so.
207+
- a) The work must carry prominent notices stating that you modified
208+
it, and giving a relevant date.
209+
- b) The work must carry prominent notices stating that it is
210+
released under this License and any conditions added under
211+
section 7. This requirement modifies the requirement in section 4
212+
to "keep intact all notices".
213+
- c) You must license the entire work, as a whole, under this
214+
License to anyone who comes into possession of a copy. This
215+
License will therefore apply, along with any applicable section 7
216+
additional terms, to the whole of the work, and all its parts,
217+
regardless of how they are packaged. This License gives no
218+
permission to license the work in any other way, but it does not
219+
invalidate such permission if you have separately received it.
220+
- d) If the work has interactive user interfaces, each must display
221+
Appropriate Legal Notices; however, if the Program has interactive
222+
interfaces that do not display Appropriate Legal Notices, your
223+
work need not make them do so.
224224

225225
A compilation of a covered work with other separate and independent
226226
works, which are not by their nature extensions of the covered work,
@@ -239,42 +239,42 @@ sections 4 and 5, provided that you also convey the machine-readable
239239
Corresponding Source under the terms of this License, in one of these
240240
ways:
241241

242-
- a) Convey the object code in, or embodied in, a physical product
243-
(including a physical distribution medium), accompanied by the
244-
Corresponding Source fixed on a durable physical medium
245-
customarily used for software interchange.
246-
- b) Convey the object code in, or embodied in, a physical product
247-
(including a physical distribution medium), accompanied by a
248-
written offer, valid for at least three years and valid for as
249-
long as you offer spare parts or customer support for that product
250-
model, to give anyone who possesses the object code either (1) a
251-
copy of the Corresponding Source for all the software in the
252-
product that is covered by this License, on a durable physical
253-
medium customarily used for software interchange, for a price no
254-
more than your reasonable cost of physically performing this
255-
conveying of source, or (2) access to copy the Corresponding
256-
Source from a network server at no charge.
257-
- c) Convey individual copies of the object code with a copy of the
258-
written offer to provide the Corresponding Source. This
259-
alternative is allowed only occasionally and noncommercially, and
260-
only if you received the object code with such an offer, in accord
261-
with subsection 6b.
262-
- d) Convey the object code by offering access from a designated
263-
place (gratis or for a charge), and offer equivalent access to the
264-
Corresponding Source in the same way through the same place at no
265-
further charge. You need not require recipients to copy the
266-
Corresponding Source along with the object code. If the place to
267-
copy the object code is a network server, the Corresponding Source
268-
may be on a different server (operated by you or a third party)
269-
that supports equivalent copying facilities, provided you maintain
270-
clear directions next to the object code saying where to find the
271-
Corresponding Source. Regardless of what server hosts the
272-
Corresponding Source, you remain obligated to ensure that it is
273-
available for as long as needed to satisfy these requirements.
274-
- e) Convey the object code using peer-to-peer transmission,
275-
provided you inform other peers where the object code and
276-
Corresponding Source of the work are being offered to the general
277-
public at no charge under subsection 6d.
242+
- a) Convey the object code in, or embodied in, a physical product
243+
(including a physical distribution medium), accompanied by the
244+
Corresponding Source fixed on a durable physical medium
245+
customarily used for software interchange.
246+
- b) Convey the object code in, or embodied in, a physical product
247+
(including a physical distribution medium), accompanied by a
248+
written offer, valid for at least three years and valid for as
249+
long as you offer spare parts or customer support for that product
250+
model, to give anyone who possesses the object code either (1) a
251+
copy of the Corresponding Source for all the software in the
252+
product that is covered by this License, on a durable physical
253+
medium customarily used for software interchange, for a price no
254+
more than your reasonable cost of physically performing this
255+
conveying of source, or (2) access to copy the Corresponding
256+
Source from a network server at no charge.
257+
- c) Convey individual copies of the object code with a copy of the
258+
written offer to provide the Corresponding Source. This
259+
alternative is allowed only occasionally and noncommercially, and
260+
only if you received the object code with such an offer, in accord
261+
with subsection 6b.
262+
- d) Convey the object code by offering access from a designated
263+
place (gratis or for a charge), and offer equivalent access to the
264+
Corresponding Source in the same way through the same place at no
265+
further charge. You need not require recipients to copy the
266+
Corresponding Source along with the object code. If the place to
267+
copy the object code is a network server, the Corresponding Source
268+
may be on a different server (operated by you or a third party)
269+
that supports equivalent copying facilities, provided you maintain
270+
clear directions next to the object code saying where to find the
271+
Corresponding Source. Regardless of what server hosts the
272+
Corresponding Source, you remain obligated to ensure that it is
273+
available for as long as needed to satisfy these requirements.
274+
- e) Convey the object code using peer-to-peer transmission,
275+
provided you inform other peers where the object code and
276+
Corresponding Source of the work are being offered to the general
277+
public at no charge under subsection 6d.
278278

279279
A separable portion of the object code, whose source code is excluded
280280
from the Corresponding Source as a System Library, need not be
@@ -350,23 +350,23 @@ Notwithstanding any other provision of this License, for material you
350350
add to a covered work, you may (if authorized by the copyright holders
351351
of that material) supplement the terms of this License with terms:
352352

353-
- a) Disclaiming warranty or limiting liability differently from the
354-
terms of sections 15 and 16 of this License; or
355-
- b) Requiring preservation of specified reasonable legal notices or
356-
author attributions in that material or in the Appropriate Legal
357-
Notices displayed by works containing it; or
358-
- c) Prohibiting misrepresentation of the origin of that material,
359-
or requiring that modified versions of such material be marked in
360-
reasonable ways as different from the original version; or
361-
- d) Limiting the use for publicity purposes of names of licensors
362-
or authors of the material; or
363-
- e) Declining to grant rights under trademark law for use of some
364-
trade names, trademarks, or service marks; or
365-
- f) Requiring indemnification of licensors and authors of that
366-
material by anyone who conveys the material (or modified versions
367-
of it) with contractual assumptions of liability to the recipient,
368-
for any liability that these contractual assumptions directly
369-
impose on those licensors and authors.
353+
- a) Disclaiming warranty or limiting liability differently from the
354+
terms of sections 15 and 16 of this License; or
355+
- b) Requiring preservation of specified reasonable legal notices or
356+
author attributions in that material or in the Appropriate Legal
357+
Notices displayed by works containing it; or
358+
- c) Prohibiting misrepresentation of the origin of that material,
359+
or requiring that modified versions of such material be marked in
360+
reasonable ways as different from the original version; or
361+
- d) Limiting the use for publicity purposes of names of licensors
362+
or authors of the material; or
363+
- e) Declining to grant rights under trademark law for use of some
364+
trade names, trademarks, or service marks; or
365+
- f) Requiring indemnification of licensors and authors of that
366+
material by anyone who conveys the material (or modified versions
367+
of it) with contractual assumptions of liability to the recipient,
368+
for any liability that these contractual assumptions directly
369+
impose on those licensors and authors.
370370

371371
All other non-permissive additional terms are considered "further
372372
restrictions" within the meaning of section 10. If the Program as you

0 commit comments

Comments
 (0)