mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge pull request #20015 from strapi/v5/koa-updates
chore: update koa libs
This commit is contained in:
commit
0104edb7c6
@ -106,11 +106,11 @@
|
||||
"invariant": "^2.2.4",
|
||||
"js-cookie": "2.2.1",
|
||||
"jsonwebtoken": "9.0.0",
|
||||
"koa": "2.13.4",
|
||||
"koa": "2.15.2",
|
||||
"koa-compose": "4.1.0",
|
||||
"koa-passport": "5.0.0",
|
||||
"koa-passport": "6.0.0",
|
||||
"koa-static": "5.0.0",
|
||||
"koa2-ratelimit": "^1.1.2",
|
||||
"koa2-ratelimit": "^1.1.3",
|
||||
"lodash": "4.17.21",
|
||||
"msw": "1.3.0",
|
||||
"node-schedule": "2.1.0",
|
||||
@ -158,7 +158,7 @@
|
||||
"@types/react-window": "1.8.8",
|
||||
"@types/sanitize-html": "2.11.0",
|
||||
"@vitejs/plugin-react-swc": "3.6.0",
|
||||
"koa-body": "4.2.0",
|
||||
"koa-body": "6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.22.3",
|
||||
|
@ -64,11 +64,13 @@ export default {
|
||||
},
|
||||
} satisfies Init.Response;
|
||||
},
|
||||
|
||||
async getProjectSettings() {
|
||||
return getService(
|
||||
'project-settings'
|
||||
).getProjectSettings() satisfies Promise<GetProjectSettings.Response>;
|
||||
},
|
||||
|
||||
async updateProjectSettings(ctx: Context) {
|
||||
const {
|
||||
request: { files, body },
|
||||
@ -87,6 +89,7 @@ export default {
|
||||
...formatedFiles,
|
||||
}) satisfies Promise<UpdateProjectSettings.Response>;
|
||||
},
|
||||
|
||||
async telemetryProperties(ctx: Context) {
|
||||
// If the telemetry is disabled, ignore the request and return early
|
||||
if (strapi.telemetry.isDisabled) {
|
||||
@ -123,6 +126,7 @@ export default {
|
||||
},
|
||||
} satisfies TelemetryProperties.Response;
|
||||
},
|
||||
|
||||
async information() {
|
||||
const currentEnvironment: string = strapi.config.get('environment');
|
||||
const autoReload = strapi.config.get('autoReload', false);
|
||||
@ -147,6 +151,7 @@ export default {
|
||||
},
|
||||
} satisfies Information.Response;
|
||||
},
|
||||
|
||||
async plugins(ctx: Context) {
|
||||
const enabledPlugins = strapi.config.get('enabledPlugins') as any;
|
||||
|
||||
|
@ -78,15 +78,15 @@ describe('Project setting', () => {
|
||||
const files = {
|
||||
menuLogo: {
|
||||
size: 123,
|
||||
path: '/tmp/filename_123',
|
||||
name: 'file.png',
|
||||
type: 'image/png',
|
||||
filepath: '/tmp/filename_123',
|
||||
originalFilename: 'file.png',
|
||||
mimetype: 'image/png',
|
||||
},
|
||||
authLogo: {
|
||||
size: 123,
|
||||
path: '/tmp/filename_123',
|
||||
name: 'file.png',
|
||||
type: 'image/png',
|
||||
filepath: '/tmp/filename_123',
|
||||
originalFilename: 'file.png',
|
||||
mimetype: 'image/png',
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -35,15 +35,15 @@ const parseFilesData = async (files: UpdateProjectSettings.Request['files']) =>
|
||||
return;
|
||||
}
|
||||
|
||||
const getStream = () => fs.createReadStream(file.path);
|
||||
const getStream = () => fs.createReadStream(file.filepath);
|
||||
|
||||
// Add formated data for the upload provider
|
||||
formatedFilesData[inputName] = await strapi
|
||||
.plugin('upload')
|
||||
.service('upload')
|
||||
.formatFileInfo({
|
||||
filename: file.name,
|
||||
type: file.type,
|
||||
filename: file.originalFilename,
|
||||
type: file.mimetype,
|
||||
size: file.size,
|
||||
});
|
||||
|
||||
@ -56,7 +56,7 @@ const parseFilesData = async (files: UpdateProjectSettings.Request['files']) =>
|
||||
// Add file path, and stream
|
||||
Object.assign(formatedFilesData[inputName]!, {
|
||||
stream: getStream(),
|
||||
tmpPath: file.path,
|
||||
tmpPath: file.filepath,
|
||||
// TODO
|
||||
// @ts-expect-error define the correct return type
|
||||
provider: strapi.config.get('plugin::upload').provider,
|
||||
|
@ -13,8 +13,8 @@ const updateProjectSettings = z
|
||||
.strict();
|
||||
|
||||
const updateProjectSettingsLogo = z.object({
|
||||
name: z.string().nullish(),
|
||||
type: z.enum(['image/jpeg', 'image/png', 'image/svg+xml']),
|
||||
originalFilename: z.string().nullish(),
|
||||
mimetype: z.enum(['image/jpeg', 'image/png', 'image/svg+xml']),
|
||||
size: z.number().max(MAX_IMAGE_FILE_SIZE).nullish(),
|
||||
});
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
||||
"fractional-indexing": "3.2.0",
|
||||
"highlight.js": "^10.4.1",
|
||||
"immer": "9.0.21",
|
||||
"koa": "2.13.4",
|
||||
"koa": "2.15.2",
|
||||
"lodash": "4.17.21",
|
||||
"markdown-it": "^12.3.2",
|
||||
"markdown-it-abbr": "^1.0.4",
|
||||
@ -104,7 +104,7 @@
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@types/jest": "29.5.2",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"koa-body": "4.2.0",
|
||||
"koa-body": "6.0.1",
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
|
@ -78,7 +78,7 @@
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/styled-components": "5.1.34",
|
||||
"koa": "2.13.4",
|
||||
"koa": "2.15.2",
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
|
@ -79,8 +79,8 @@
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@testing-library/user-event": "14.4.3",
|
||||
"@types/pluralize": "0.0.30",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
"koa": "2.15.2",
|
||||
"koa-body": "6.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-query": "3.39.3",
|
||||
|
@ -52,8 +52,8 @@
|
||||
"watch": "pack-up watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"@koa/cors": "3.4.3",
|
||||
"@koa/router": "10.1.1",
|
||||
"@koa/cors": "5.0.0",
|
||||
"@koa/router": "12.0.1",
|
||||
"@paralleldrive/cuid2": "2.2.2",
|
||||
"@strapi/admin": "5.0.0-beta.2",
|
||||
"@strapi/database": "5.0.0-beta.2",
|
||||
@ -82,13 +82,13 @@
|
||||
"http-errors": "1.8.1",
|
||||
"inquirer": "8.2.5",
|
||||
"is-docker": "2.2.1",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
"koa": "2.15.2",
|
||||
"koa-body": "6.0.1",
|
||||
"koa-compose": "4.1.0",
|
||||
"koa-compress": "5.1.0",
|
||||
"koa-compress": "5.1.1",
|
||||
"koa-favicon": "2.1.0",
|
||||
"koa-helmet": "7.0.2",
|
||||
"koa-ip": "^2.1.2",
|
||||
"koa-ip": "^2.1.3",
|
||||
"koa-session": "6.4.0",
|
||||
"koa-static": "5.0.0",
|
||||
"lodash": "4.17.21",
|
||||
|
@ -1,11 +1,11 @@
|
||||
import fse from 'fs-extra';
|
||||
import { defaultsDeep } from 'lodash/fp';
|
||||
import body from 'koa-body';
|
||||
import body, { KoaBodyMiddlewareOptions } from 'koa-body';
|
||||
import mime from 'mime-types';
|
||||
import type Koa from 'koa';
|
||||
import type { Core } from '@strapi/types';
|
||||
|
||||
export type Config = body.IKoaBodyOptions;
|
||||
export type Config = KoaBodyMiddlewareOptions;
|
||||
|
||||
const defaults = {
|
||||
multipart: true,
|
||||
@ -37,7 +37,7 @@ const bodyMiddleware: Core.MiddlewareFactory<Config> = (config, { strapi }) => {
|
||||
await next();
|
||||
} else {
|
||||
try {
|
||||
await body({ patchKoa: true, ...bodyConfig })(ctx, async () => {});
|
||||
await body(bodyConfig)(ctx, async () => {});
|
||||
|
||||
const files = getFiles(ctx);
|
||||
|
||||
@ -73,10 +73,10 @@ const bodyMiddleware: Core.MiddlewareFactory<Config> = (config, { strapi }) => {
|
||||
if (files) {
|
||||
if (Array.isArray(files)) {
|
||||
// not awaiting to not slow the request
|
||||
Promise.all(files.map((file) => fse.remove(file.path)));
|
||||
} else if (files && files.path) {
|
||||
Promise.all(files.map((file) => fse.remove(file.filepath)));
|
||||
} else if (files && files.filepath) {
|
||||
// not awaiting to not slow the request
|
||||
fse.remove(files.path);
|
||||
fse.remove(files.filepath);
|
||||
}
|
||||
delete ctx.request.files;
|
||||
}
|
||||
|
@ -73,7 +73,7 @@
|
||||
"@types/tar-stream": "2.2.2",
|
||||
"@types/ws": "^8.5.4",
|
||||
"knex": "3.0.1",
|
||||
"koa": "2.13.4",
|
||||
"koa": "2.15.2",
|
||||
"rimraf": "5.0.5",
|
||||
"typescript": "5.3.2"
|
||||
},
|
||||
|
@ -68,8 +68,8 @@
|
||||
"@testing-library/react": "14.0.0",
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
"koa": "2.15.2",
|
||||
"koa-body": "6.0.1",
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
|
@ -45,13 +45,13 @@
|
||||
"dependencies": {
|
||||
"@casl/ability": "6.5.0",
|
||||
"@koa/cors": "5.0.0",
|
||||
"@koa/router": "10.1.1",
|
||||
"@koa/router": "12.0.1",
|
||||
"@strapi/database": "5.0.0-beta.2",
|
||||
"@strapi/logger": "5.0.0-beta.2",
|
||||
"@strapi/permissions": "5.0.0-beta.2",
|
||||
"@strapi/utils": "5.0.0-beta.2",
|
||||
"commander": "8.3.0",
|
||||
"koa": "2.13.4",
|
||||
"koa": "2.15.2",
|
||||
"node-schedule": "2.1.0",
|
||||
"typedoc": "0.25.10"
|
||||
},
|
||||
|
@ -84,8 +84,8 @@
|
||||
"@types/koa-range": "0.3.5",
|
||||
"@types/koa-static": "4.0.2",
|
||||
"formidable": "3.5.1",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
"koa": "2.15.2",
|
||||
"koa-body": "6.0.1",
|
||||
"msw": "1.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
|
@ -101,7 +101,7 @@ const baseProvider = {
|
||||
checkFileSize(file: InputFile, { sizeLimit }: { sizeLimit: number }) {
|
||||
if (sizeLimit && kbytesToBytes(file.size) > sizeLimit) {
|
||||
throw new PayloadTooLargeError(
|
||||
`${file.name} exceeds size limit of ${bytesToHumanReadable(sizeLimit)}.`
|
||||
`${file.originalFilename} exceeds size limit of ${bytesToHumanReadable(sizeLimit)}.`
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -193,8 +193,8 @@ export default ({ strapi }: { strapi: Core.Strapi }) => {
|
||||
): Promise<UploadableFile> {
|
||||
const currentFile = (await formatFileInfo(
|
||||
{
|
||||
filename: file.name ?? 'unamed',
|
||||
type: file.type ?? 'application/octet-stream',
|
||||
filename: file.originalFilename ?? 'unamed',
|
||||
type: file.mimetype ?? 'application/octet-stream',
|
||||
size: file.size,
|
||||
},
|
||||
fileInfo,
|
||||
@ -204,7 +204,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => {
|
||||
}
|
||||
)) as UploadableFile;
|
||||
|
||||
currentFile.getStream = () => fs.createReadStream(file.path);
|
||||
currentFile.getStream = () => fs.createReadStream(file.filepath);
|
||||
|
||||
const { optimize, isImage, isFaultyImage, isOptimizableImage } = strapi
|
||||
.plugin('upload')
|
||||
|
@ -60,8 +60,8 @@
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/node": "18.19.24",
|
||||
"eslint-config-custom": "5.0.0-beta.2",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
"koa": "2.15.2",
|
||||
"koa-body": "6.0.1",
|
||||
"tsconfig": "5.0.0-beta.2"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -82,8 +82,8 @@
|
||||
"@types/koa": "2.13.4",
|
||||
"@types/koa-session": "6.4.1",
|
||||
"@types/swagger-ui-dist": "3.30.4",
|
||||
"koa": "2.13.4",
|
||||
"koa-body": "4.2.0",
|
||||
"koa": "2.15.2",
|
||||
"koa-body": "6.0.1",
|
||||
"koa-session": "6.4.0",
|
||||
"msw": "1.3.0",
|
||||
"openapi-types": "12.1.3",
|
||||
|
@ -52,7 +52,7 @@
|
||||
"@as-integrations/koa": "1.1.1",
|
||||
"@graphql-tools/schema": "8.5.1",
|
||||
"@graphql-tools/utils": "^8.13.1",
|
||||
"@koa/cors": "3.4.3",
|
||||
"@koa/cors": "5.0.0",
|
||||
"@strapi/design-system": "1.16.0",
|
||||
"@strapi/icons": "1.16.0",
|
||||
"@strapi/utils": "5.0.0-beta.2",
|
||||
@ -74,7 +74,7 @@
|
||||
"@types/koa__cors": "5.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint-config-custom": "5.0.0-beta.2",
|
||||
"koa": "2.13.4",
|
||||
"koa": "2.15.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.22.3",
|
||||
|
@ -55,8 +55,8 @@
|
||||
"immer": "9.0.21",
|
||||
"jsonwebtoken": "9.0.0",
|
||||
"jwk-to-pem": "2.0.5",
|
||||
"koa": "2.13.4",
|
||||
"koa2-ratelimit": "^1.1.2",
|
||||
"koa": "2.15.2",
|
||||
"koa2-ratelimit": "^1.1.3",
|
||||
"lodash": "4.17.21",
|
||||
"prop-types": "^15.8.1",
|
||||
"purest": "4.0.2",
|
||||
|
237
yarn.lock
237
yarn.lock
@ -4239,15 +4239,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@koa/cors@npm:3.4.3":
|
||||
version: 3.4.3
|
||||
resolution: "@koa/cors@npm:3.4.3"
|
||||
dependencies:
|
||||
vary: "npm:^1.1.2"
|
||||
checksum: 7e91b661a2d0b73b3ae38167103c819da989a7f5102107fdf6877aaf1b435fc6bbc6dbb90c4f47d5acb09a79d98a3b06c0b7af70ba5241fa2ab49b4c8991ecc0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@koa/cors@npm:5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "@koa/cors@npm:5.0.0"
|
||||
@ -4257,16 +4248,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@koa/router@npm:10.1.1":
|
||||
version: 10.1.1
|
||||
resolution: "@koa/router@npm:10.1.1"
|
||||
"@koa/router@npm:12.0.1":
|
||||
version: 12.0.1
|
||||
resolution: "@koa/router@npm:12.0.1"
|
||||
dependencies:
|
||||
debug: "npm:^4.1.1"
|
||||
http-errors: "npm:^1.7.3"
|
||||
debug: "npm:^4.3.4"
|
||||
http-errors: "npm:^2.0.0"
|
||||
koa-compose: "npm:^4.1.0"
|
||||
methods: "npm:^1.1.2"
|
||||
path-to-regexp: "npm:^6.1.0"
|
||||
checksum: 8a990f1b6c1bfd7d86047b73ba4a164a81e71d0af570f1bc7967d6e8d7125524d3e8948927ae8fb1d9b8ebf739b1ba732e40af006973e410995f5656aa58fece
|
||||
path-to-regexp: "npm:^6.2.1"
|
||||
checksum: f9427c8eb21a2d7c880dae192b7298ecb243af32a8270b5e3e32c4420da157111bc326ab0bc75ff0f17320b9d9ab9df235295fc2d53d8681b5a14103c27ad22d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -6872,12 +6863,12 @@ __metadata:
|
||||
invariant: "npm:^2.2.4"
|
||||
js-cookie: "npm:2.2.1"
|
||||
jsonwebtoken: "npm:9.0.0"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
koa-compose: "npm:4.1.0"
|
||||
koa-passport: "npm:5.0.0"
|
||||
koa-passport: "npm:6.0.0"
|
||||
koa-static: "npm:5.0.0"
|
||||
koa2-ratelimit: "npm:^1.1.2"
|
||||
koa2-ratelimit: "npm:^1.1.3"
|
||||
lodash: "npm:4.17.21"
|
||||
msw: "npm:1.3.0"
|
||||
node-schedule: "npm:2.1.0"
|
||||
@ -6939,7 +6930,7 @@ __metadata:
|
||||
date-fns: "npm:2.30.0"
|
||||
date-fns-tz: "npm:2.0.1"
|
||||
formik: "npm:2.4.5"
|
||||
koa: "npm:2.13.4"
|
||||
koa: "npm:2.15.2"
|
||||
lodash: "npm:4.17.21"
|
||||
msw: "npm:1.3.0"
|
||||
node-schedule: "npm:2.1.0"
|
||||
@ -6966,8 +6957,8 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@strapi/core@workspace:packages/core/core"
|
||||
dependencies:
|
||||
"@koa/cors": "npm:3.4.3"
|
||||
"@koa/router": "npm:10.1.1"
|
||||
"@koa/cors": "npm:5.0.0"
|
||||
"@koa/router": "npm:12.0.1"
|
||||
"@paralleldrive/cuid2": "npm:2.2.2"
|
||||
"@strapi/admin": "npm:5.0.0-beta.2"
|
||||
"@strapi/database": "npm:5.0.0-beta.2"
|
||||
@ -7012,13 +7003,13 @@ __metadata:
|
||||
http-errors: "npm:1.8.1"
|
||||
inquirer: "npm:8.2.5"
|
||||
is-docker: "npm:2.2.1"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
koa-compose: "npm:4.1.0"
|
||||
koa-compress: "npm:5.1.0"
|
||||
koa-compress: "npm:5.1.1"
|
||||
koa-favicon: "npm:2.1.0"
|
||||
koa-helmet: "npm:7.0.2"
|
||||
koa-ip: "npm:^2.1.2"
|
||||
koa-ip: "npm:^2.1.3"
|
||||
koa-session: "npm:6.4.0"
|
||||
koa-static: "npm:5.0.0"
|
||||
lodash: "npm:4.17.21"
|
||||
@ -7065,7 +7056,7 @@ __metadata:
|
||||
fs-extra: "npm:10.1.0"
|
||||
inquirer: "npm:8.2.5"
|
||||
knex: "npm:3.0.1"
|
||||
koa: "npm:2.13.4"
|
||||
koa: "npm:2.15.2"
|
||||
lodash: "npm:4.17.21"
|
||||
ora: "npm:5.4.1"
|
||||
resolve-cwd: "npm:3.0.0"
|
||||
@ -7344,8 +7335,8 @@ __metadata:
|
||||
fractional-indexing: "npm:3.2.0"
|
||||
highlight.js: "npm:^10.4.1"
|
||||
immer: "npm:9.0.21"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
lodash: "npm:4.17.21"
|
||||
markdown-it: "npm:^12.3.2"
|
||||
markdown-it-abbr: "npm:^1.0.4"
|
||||
@ -7404,8 +7395,8 @@ __metadata:
|
||||
date-fns: "npm:2.30.0"
|
||||
fs-extra: "npm:10.1.0"
|
||||
immer: "npm:9.0.21"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
lodash: "npm:4.17.21"
|
||||
pluralize: "npm:8.0.0"
|
||||
qs: "npm:6.11.1"
|
||||
@ -7451,8 +7442,8 @@ __metadata:
|
||||
formik: "npm:2.4.5"
|
||||
fs-extra: "npm:10.1.0"
|
||||
immer: "npm:9.0.21"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
koa-session: "npm:6.4.0"
|
||||
koa-static: "npm:^5.0.0"
|
||||
lodash: "npm:4.17.21"
|
||||
@ -7490,8 +7481,8 @@ __metadata:
|
||||
"@testing-library/react": "npm:14.0.0"
|
||||
"@types/koa": "npm:2.13.4"
|
||||
"@types/lodash": "npm:^4.14.191"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
lodash: "npm:4.17.21"
|
||||
msw: "npm:1.3.0"
|
||||
react: "npm:^18.2.0"
|
||||
@ -7519,7 +7510,7 @@ __metadata:
|
||||
"@as-integrations/koa": "npm:1.1.1"
|
||||
"@graphql-tools/schema": "npm:8.5.1"
|
||||
"@graphql-tools/utils": "npm:^8.13.1"
|
||||
"@koa/cors": "npm:3.4.3"
|
||||
"@koa/cors": "npm:5.0.0"
|
||||
"@strapi/design-system": "npm:1.16.0"
|
||||
"@strapi/icons": "npm:1.16.0"
|
||||
"@strapi/strapi": "npm:5.0.0-beta.2"
|
||||
@ -7534,7 +7525,7 @@ __metadata:
|
||||
graphql-depth-limit: "npm:^1.1.0"
|
||||
graphql-playground-middleware-koa: "npm:^1.6.21"
|
||||
graphql-scalars: "npm:1.22.2"
|
||||
koa: "npm:2.13.4"
|
||||
koa: "npm:2.15.2"
|
||||
koa-bodyparser: "npm:4.4.1"
|
||||
koa-compose: "npm:^4.1.0"
|
||||
lodash: "npm:4.17.21"
|
||||
@ -7639,8 +7630,8 @@ __metadata:
|
||||
formik: "npm:2.4.5"
|
||||
fs-extra: "npm:10.1.0"
|
||||
immer: "npm:9.0.21"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
koa-range: "npm:0.3.0"
|
||||
koa-static: "npm:5.0.0"
|
||||
lodash: "npm:4.17.21"
|
||||
@ -7686,8 +7677,8 @@ __metadata:
|
||||
immer: "npm:9.0.21"
|
||||
jsonwebtoken: "npm:9.0.0"
|
||||
jwk-to-pem: "npm:2.0.5"
|
||||
koa: "npm:2.13.4"
|
||||
koa2-ratelimit: "npm:^1.1.2"
|
||||
koa: "npm:2.15.2"
|
||||
koa2-ratelimit: "npm:^1.1.3"
|
||||
lodash: "npm:4.17.21"
|
||||
msw: "npm:1.3.0"
|
||||
prop-types: "npm:^15.8.1"
|
||||
@ -7969,7 +7960,7 @@ __metadata:
|
||||
dependencies:
|
||||
"@casl/ability": "npm:6.5.0"
|
||||
"@koa/cors": "npm:5.0.0"
|
||||
"@koa/router": "npm:10.1.1"
|
||||
"@koa/router": "npm:12.0.1"
|
||||
"@strapi/database": "npm:5.0.0-beta.2"
|
||||
"@strapi/logger": "npm:5.0.0-beta.2"
|
||||
"@strapi/pack-up": "npm:5.0.0-beta.2"
|
||||
@ -7982,7 +7973,7 @@ __metadata:
|
||||
"@types/node-schedule": "npm:2.1.0"
|
||||
commander: "npm:8.3.0"
|
||||
eslint-config-custom: "npm:5.0.0-beta.2"
|
||||
koa: "npm:2.13.4"
|
||||
koa: "npm:2.15.2"
|
||||
lodash: "npm:4.17.21"
|
||||
node-schedule: "npm:2.1.0"
|
||||
tsconfig: "npm:5.0.0-beta.2"
|
||||
@ -8077,8 +8068,8 @@ __metadata:
|
||||
eslint-config-custom: "npm:5.0.0-beta.2"
|
||||
execa: "npm:5.1.1"
|
||||
http-errors: "npm:1.8.1"
|
||||
koa: "npm:2.13.4"
|
||||
koa-body: "npm:4.2.0"
|
||||
koa: "npm:2.15.2"
|
||||
koa-body: "npm:6.0.1"
|
||||
lodash: "npm:4.17.21"
|
||||
node-machine-id: "npm:1.1.12"
|
||||
p-map: "npm:4.0.0"
|
||||
@ -8506,6 +8497,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/co-body@npm:^6.1.0":
|
||||
version: 6.1.3
|
||||
resolution: "@types/co-body@npm:6.1.3"
|
||||
dependencies:
|
||||
"@types/node": "npm:*"
|
||||
"@types/qs": "npm:*"
|
||||
checksum: e93fdc177f69ee0535cf401783258e4255f5eb8235c58b5a2a5a8958cf341fadf3d0bf2c75907ed6b7d188ce2c2f2cf9593a71d4eef12900beba54ebbbdd5cc1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/codemirror5@npm:@types/codemirror@^5.60.15":
|
||||
version: 5.60.15
|
||||
resolution: "@types/codemirror@npm:5.60.15"
|
||||
@ -8678,12 +8679,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/formidable@npm:^1.0.31":
|
||||
version: 1.2.5
|
||||
resolution: "@types/formidable@npm:1.2.5"
|
||||
"@types/formidable@npm:^2.0.5":
|
||||
version: 2.0.6
|
||||
resolution: "@types/formidable@npm:2.0.6"
|
||||
dependencies:
|
||||
"@types/node": "npm:*"
|
||||
checksum: f11050b5847924ec1617103bb68d123229c537112b3e09a4eeac227a9fb2c882e694dd890d95c68ee44bcf0701dc61a43d0e110d3b6055bcfe4b6d647f6dcf50
|
||||
checksum: 808a9bc11276e3bd44a8b9d20f4d567ef0e452dcff7fa6ce2575b769bab049ccc4225d02ddd80f0f4de34aa2d2e7242e036bc547811667868860e8dc632d8b16
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -11746,7 +11747,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"bytes@npm:3.1.2, bytes@npm:^3.0.0":
|
||||
"bytes@npm:3.1.2, bytes@npm:^3.1.2":
|
||||
version: 3.1.2
|
||||
resolution: "bytes@npm:3.1.2"
|
||||
checksum: a10abf2ba70c784471d6b4f58778c0beeb2b5d405148e66affa91f23a9f13d07603d0a0354667310ae1d6dc141474ffd44e2a074be0f6e2254edb8fc21445388
|
||||
@ -12390,19 +12391,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"co-body@npm:^5.1.1":
|
||||
version: 5.2.0
|
||||
resolution: "co-body@npm:5.2.0"
|
||||
dependencies:
|
||||
inflation: "npm:^2.0.0"
|
||||
qs: "npm:^6.4.0"
|
||||
raw-body: "npm:^2.2.0"
|
||||
type-is: "npm:^1.6.14"
|
||||
checksum: 44d9157057b2696b208cabe515345f575b06b5be48261e04e27c9c3367ec2fe97da55483b4baef253df55db0e3efd96417f131ad725cb534fe209d9850bc2e47
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"co-body@npm:^6.0.0":
|
||||
"co-body@npm:^6.0.0, co-body@npm:^6.1.0":
|
||||
version: 6.1.0
|
||||
resolution: "co-body@npm:6.1.0"
|
||||
dependencies:
|
||||
@ -12682,7 +12671,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"compressible@npm:^2.0.0":
|
||||
"compressible@npm:^2.0.18":
|
||||
version: 2.0.18
|
||||
resolution: "compressible@npm:2.0.18"
|
||||
dependencies:
|
||||
@ -12982,13 +12971,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"cookies@npm:~0.8.0":
|
||||
version: 0.8.0
|
||||
resolution: "cookies@npm:0.8.0"
|
||||
"cookies@npm:~0.9.0":
|
||||
version: 0.9.1
|
||||
resolution: "cookies@npm:0.9.1"
|
||||
dependencies:
|
||||
depd: "npm:~2.0.0"
|
||||
keygrip: "npm:~1.1.0"
|
||||
checksum: 5da4d72ba81c2740511751ac8ea9506e10e2366b9ad3360333581e4667fd8d063d02c5be0bef16177de3e366b8128ed2b72921e2952c79cbca084d177e529bba
|
||||
checksum: 4816461a38d907b20f3fb7a2bc4741fe580e7a195f3e248ef7025cb3be56a07638a0f4e72553a5f535554ca30172c8a3245c63ac72c9737cec034e9a47773392
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -16240,14 +16229,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"formidable@npm:^1.1.1":
|
||||
version: 1.2.6
|
||||
resolution: "formidable@npm:1.2.6"
|
||||
checksum: 0ac4690a4664725051142b41c8e9de2072b4c9bde8e03bf07abe7c747d1e2cbefd2463de93938e6503cad628f2b06accf330885e2b6511f2511693af186ae08d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"formidable@npm:^2.1.2":
|
||||
"formidable@npm:^2.0.1, formidable@npm:^2.1.2":
|
||||
version: 2.1.2
|
||||
resolution: "formidable@npm:2.1.2"
|
||||
dependencies:
|
||||
@ -17635,7 +17617,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"http-errors@npm:1.8.1, http-errors@npm:^1.6.3, http-errors@npm:^1.7.3, http-errors@npm:^1.8.0, http-errors@npm:~1.8.0":
|
||||
"http-errors@npm:1.8.1, http-errors@npm:^1.6.3, http-errors@npm:^1.7.3, http-errors@npm:^1.8.1, http-errors@npm:~1.8.0":
|
||||
version: 1.8.1
|
||||
resolution: "http-errors@npm:1.8.1"
|
||||
dependencies:
|
||||
@ -17648,7 +17630,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"http-errors@npm:2.0.0":
|
||||
"http-errors@npm:2.0.0, http-errors@npm:^2.0.0":
|
||||
version: 2.0.0
|
||||
resolution: "http-errors@npm:2.0.0"
|
||||
dependencies:
|
||||
@ -18835,13 +18817,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"is_js@npm:^0.9.0":
|
||||
version: 0.9.0
|
||||
resolution: "is_js@npm:0.9.0"
|
||||
checksum: c401de405046c79ad66c1cfccbd45ccd5dbd86bbbffb09cc081217e30b3a22d9332a5ce5f9d8a296301d6cb83e9932a02aa1e02acc642a4674639295d1920ed0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"isarray@npm:0.0.1":
|
||||
version: 0.0.1
|
||||
resolution: "isarray@npm:0.0.1"
|
||||
@ -20101,14 +20076,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-body@npm:4.2.0":
|
||||
version: 4.2.0
|
||||
resolution: "koa-body@npm:4.2.0"
|
||||
"koa-body@npm:6.0.1":
|
||||
version: 6.0.1
|
||||
resolution: "koa-body@npm:6.0.1"
|
||||
dependencies:
|
||||
"@types/formidable": "npm:^1.0.31"
|
||||
co-body: "npm:^5.1.1"
|
||||
formidable: "npm:^1.1.1"
|
||||
checksum: 745d66a319b706734b55f67783ce4157c074a82a489e8aaa0c5f72ccaa52a9e607ac2be5d3397c85a34e6c3335d6f3a79019616192aa26d708729ca785bbac8f
|
||||
"@types/co-body": "npm:^6.1.0"
|
||||
"@types/formidable": "npm:^2.0.5"
|
||||
"@types/koa": "npm:^2.13.5"
|
||||
co-body: "npm:^6.1.0"
|
||||
formidable: "npm:^2.0.1"
|
||||
zod: "npm:^3.19.1"
|
||||
checksum: d241d4d228117da43ccd485babe9f8e221188360faef93f936f85ced03d8df900b1bd3af0f2e26b8e514f66361373078ef8501b50089b20e19c578566d25a239
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -20130,16 +20108,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-compress@npm:5.1.0":
|
||||
version: 5.1.0
|
||||
resolution: "koa-compress@npm:5.1.0"
|
||||
"koa-compress@npm:5.1.1":
|
||||
version: 5.1.1
|
||||
resolution: "koa-compress@npm:5.1.1"
|
||||
dependencies:
|
||||
bytes: "npm:^3.0.0"
|
||||
compressible: "npm:^2.0.0"
|
||||
http-errors: "npm:^1.8.0"
|
||||
bytes: "npm:^3.1.2"
|
||||
compressible: "npm:^2.0.18"
|
||||
http-errors: "npm:^1.8.1"
|
||||
koa-is-json: "npm:^1.0.0"
|
||||
statuses: "npm:^2.0.1"
|
||||
checksum: 554ede160df33fed5d658afe786f5db8dea44933c0ff72c7a0abf6f5574cc139db482859f81a7eb08043a1a3b2d90ca30153411bdf7bea5fd5f39da5090a6dd4
|
||||
checksum: e768d336756e2009cd65db28c48472827a0eb503cdf3055bdb0af0e5d74b821bb8b9820dfdcb956e359fdea3c302286d2a17eef28bd4683217a6e8d503749e68
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -20171,14 +20148,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-ip@npm:^2.1.2":
|
||||
version: 2.1.2
|
||||
resolution: "koa-ip@npm:2.1.2"
|
||||
"koa-ip@npm:^2.1.3":
|
||||
version: 2.1.3
|
||||
resolution: "koa-ip@npm:2.1.3"
|
||||
dependencies:
|
||||
debug: "npm:4.3.4"
|
||||
lodash.isplainobject: "npm:4.0.6"
|
||||
request-ip: "npm:2.1.3"
|
||||
checksum: 5c29f8575ef0211dade5ca627a4e21952ffd7d1f74c5c55a85073592e95ba1275f2f77071831befdce0bf3cfc92b4d7cbb80b99714f2258be5228cb45015d7f3
|
||||
request-ip: "npm:3.3.0"
|
||||
checksum: 67fe264367cc513ca8cb91472c5719102384fd29daac31ce93ebf9ffc15a69779d99924e7b34e03ec765be59a2bc287493d1534eba3223ab1fcc8a275909a827
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -20189,12 +20166,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa-passport@npm:5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "koa-passport@npm:5.0.0"
|
||||
"koa-passport@npm:6.0.0":
|
||||
version: 6.0.0
|
||||
resolution: "koa-passport@npm:6.0.0"
|
||||
dependencies:
|
||||
passport: "npm:^0.6.0"
|
||||
checksum: 9aef68b54a5d931b0f5324c1934be8f56ee84bf131d940082418bcd4ee5bc6142ecf2493d6710a56ed68a0610e44fa6d43412caf7dfa0e51807c35adb6443dcd
|
||||
checksum: 4482e4b3d2d847ebbee07408390edc76859389128e9544d79a616de5fb6c5bfc62ef14a52257e62b6f2d77bd9f602d749e8bf412ac676c3e58f0d74081619b5e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -20240,9 +20217,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa2-ratelimit@npm:^1.1.2":
|
||||
version: 1.1.2
|
||||
resolution: "koa2-ratelimit@npm:1.1.2"
|
||||
"koa2-ratelimit@npm:^1.1.3":
|
||||
version: 1.1.3
|
||||
resolution: "koa2-ratelimit@npm:1.1.3"
|
||||
peerDependencies:
|
||||
mongoose: ">= 5"
|
||||
redis: ">= 4.0.0"
|
||||
@ -20254,19 +20231,19 @@ __metadata:
|
||||
optional: true
|
||||
sequelize:
|
||||
optional: true
|
||||
checksum: c15a46ab43989eaa501f2012b9ec0a5684d276c9a2d578a72adbefacca85bc5921dd9f83b69625a7c8a6e95d75ee160cd978e467f35450e8d46bb31276a61dc8
|
||||
checksum: 7dcd8d9b0b356cfe419c93bac72a0e80370a9cd671a910e5b264370cfbdcb176c753be2f0a0df309c2bdf10febd8c58a9cc8fae817f9277c044eaba0132a6a20
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"koa@npm:2.13.4":
|
||||
version: 2.13.4
|
||||
resolution: "koa@npm:2.13.4"
|
||||
"koa@npm:2.15.2":
|
||||
version: 2.15.2
|
||||
resolution: "koa@npm:2.15.2"
|
||||
dependencies:
|
||||
accepts: "npm:^1.3.5"
|
||||
cache-content-type: "npm:^1.0.0"
|
||||
content-disposition: "npm:~0.5.2"
|
||||
content-type: "npm:^1.0.4"
|
||||
cookies: "npm:~0.8.0"
|
||||
cookies: "npm:~0.9.0"
|
||||
debug: "npm:^4.3.2"
|
||||
delegates: "npm:^1.0.0"
|
||||
depd: "npm:^2.0.0"
|
||||
@ -20285,7 +20262,7 @@ __metadata:
|
||||
statuses: "npm:^1.5.0"
|
||||
type-is: "npm:^1.6.16"
|
||||
vary: "npm:^1.1.2"
|
||||
checksum: 5ddd5a08dcfc17f87a90fd8717a158f6f42ac8113d8328d487cbdb1cf73797e9be199e1b1c5f67c9b6e5f0daef96654fb94ed244dea5500d8197b0f81f2dc652
|
||||
checksum: edafa18bbbef420c557c678998252a4f448c211fdd0ff1e70eddd4f689fe1f7363fa5a05849cef5f1bcb2c3adc1ae360e68b0bcc1432cd58c5c75fb840204fe0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -23619,7 +23596,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"path-to-regexp@npm:6.2.1, path-to-regexp@npm:^6.1.0, path-to-regexp@npm:^6.2.0":
|
||||
"path-to-regexp@npm:6.2.1, path-to-regexp@npm:^6.2.0, path-to-regexp@npm:^6.2.1":
|
||||
version: 6.2.1
|
||||
resolution: "path-to-regexp@npm:6.2.1"
|
||||
checksum: 1e266be712d1a08086ee77beab12a1804842ec635dfed44f9ee1ba960a0e01cec8063fb8c92561115cdc0ce73158cdc7766e353ffa039340b4a85b370084c4d4
|
||||
@ -24330,7 +24307,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"qs@npm:6.11.1, qs@npm:^6.10.2, qs@npm:^6.10.3, qs@npm:^6.11.0, qs@npm:^6.4.0, qs@npm:^6.9.6":
|
||||
"qs@npm:6.11.1, qs@npm:^6.10.2, qs@npm:^6.10.3, qs@npm:^6.11.0, qs@npm:^6.9.6":
|
||||
version: 6.11.1
|
||||
resolution: "qs@npm:6.11.1"
|
||||
dependencies:
|
||||
@ -24399,7 +24376,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"raw-body@npm:2.5.1, raw-body@npm:^2.2.0":
|
||||
"raw-body@npm:2.5.1":
|
||||
version: 2.5.1
|
||||
resolution: "raw-body@npm:2.5.1"
|
||||
dependencies:
|
||||
@ -25160,12 +25137,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"request-ip@npm:2.1.3":
|
||||
version: 2.1.3
|
||||
resolution: "request-ip@npm:2.1.3"
|
||||
dependencies:
|
||||
is_js: "npm:^0.9.0"
|
||||
checksum: b7c82f61f841ba9715dd6f7df51c8bf2317ac5e5e9235bde3b08e3d9f416f75b3815971189095f0d24debce7cbf8e016af3204eae53c91f9b3181aff2718f79b
|
||||
"request-ip@npm:3.3.0":
|
||||
version: 3.3.0
|
||||
resolution: "request-ip@npm:3.3.0"
|
||||
checksum: 9ca26f814201da19cb6f1a18da4f036803b770665ec0e7c556ea975ba553321922a5f04909f6dfc2371f695ca8aaa3c66f02c00a5e902c76435029804cdc4964
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -26732,7 +26707,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"statuses@npm:2.0.1, statuses@npm:^2.0.1":
|
||||
"statuses@npm:2.0.1":
|
||||
version: 2.0.1
|
||||
resolution: "statuses@npm:2.0.1"
|
||||
checksum: 18c7623fdb8f646fb213ca4051be4df7efb3484d4ab662937ca6fbef7ced9b9e12842709872eb3020cc3504b93bde88935c9f6417489627a7786f24f8031cbcb
|
||||
@ -28117,7 +28092,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"type-is@npm:^1.6.14, type-is@npm:^1.6.16, type-is@npm:^1.6.18, type-is@npm:~1.6.18":
|
||||
"type-is@npm:^1.6.16, type-is@npm:^1.6.18, type-is@npm:~1.6.18":
|
||||
version: 1.6.18
|
||||
resolution: "type-is@npm:1.6.18"
|
||||
dependencies:
|
||||
@ -29743,7 +29718,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"zod@npm:^3.22.4":
|
||||
"zod@npm:^3.19.1, zod@npm:^3.22.4":
|
||||
version: 3.22.4
|
||||
resolution: "zod@npm:3.22.4"
|
||||
checksum: 73622ca36a916f785cf528fe612a884b3e0f183dbe6b33365a7d0fc92abdbedf7804c5e2bd8df0a278e1472106d46674281397a3dd800fa9031dc3429758c6ac
|
||||
|
Loading…
x
Reference in New Issue
Block a user