@strapi/strapi 5.51.1 → 5.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/core/admin-vite-optimize-exclude.d.ts.map +1 -1
- package/dist/package.json.js +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/cli/commands/export/action.js +1 -1
- package/dist/src/cli/commands/export/action.js.map +1 -1
- package/dist/src/cli/commands/export/action.mjs +1 -1
- package/dist/src/cli/commands/export/action.mjs.map +1 -1
- package/dist/src/cli/commands/import/action.js +2 -2
- package/dist/src/cli/commands/import/action.js.map +1 -1
- package/dist/src/cli/commands/import/action.mjs +2 -2
- package/dist/src/cli/commands/import/action.mjs.map +1 -1
- package/dist/src/cli/commands/transfer/action.js +2 -2
- package/dist/src/cli/commands/transfer/action.js.map +1 -1
- package/dist/src/cli/commands/transfer/action.mjs +2 -2
- package/dist/src/cli/commands/transfer/action.mjs.map +1 -1
- package/dist/src/cli/commands/transfer/command.js +1 -1
- package/dist/src/cli/commands/transfer/command.js.map +1 -1
- package/dist/src/cli/commands/transfer/command.mjs +1 -1
- package/dist/src/cli/commands/transfer/command.mjs.map +1 -1
- package/dist/src/cli/utils/commander.js +3 -3
- package/dist/src/cli/utils/commander.js.map +1 -1
- package/dist/src/cli/utils/commander.mjs +3 -3
- package/dist/src/cli/utils/commander.mjs.map +1 -1
- package/dist/src/cli/utils/data-transfer.js +1 -1
- package/dist/src/cli/utils/data-transfer.js.map +1 -1
- package/dist/src/cli/utils/data-transfer.mjs +1 -1
- package/dist/src/cli/utils/data-transfer.mjs.map +1 -1
- package/dist/src/cli/utils/helpers.js +1 -1
- package/dist/src/cli/utils/helpers.js.map +1 -1
- package/dist/src/cli/utils/helpers.mjs +1 -1
- package/dist/src/cli/utils/helpers.mjs.map +1 -1
- package/dist/src/cli/utils/telemetry.js +1 -1
- package/dist/src/cli/utils/telemetry.js.map +1 -1
- package/dist/src/cli/utils/telemetry.mjs +1 -1
- package/dist/src/cli/utils/telemetry.mjs.map +1 -1
- package/dist/src/node/core/admin-vite-optimize-exclude.js +2 -1
- package/dist/src/node/core/admin-vite-optimize-exclude.js.map +1 -1
- package/dist/src/node/core/admin-vite-optimize-exclude.mjs +2 -1
- package/dist/src/node/core/admin-vite-optimize-exclude.mjs.map +1 -1
- package/dist/src/node/core/dependencies.js +1 -1
- package/dist/src/node/core/dependencies.js.map +1 -1
- package/dist/src/node/core/dependencies.mjs +1 -1
- package/dist/src/node/core/dependencies.mjs.map +1 -1
- package/dist/src/node/core/files.js +1 -1
- package/dist/src/node/core/files.js.map +1 -1
- package/dist/src/node/core/files.mjs +1 -1
- package/dist/src/node/core/files.mjs.map +1 -1
- package/package.json +22 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sources":["../../../../src/node/core/files.ts"],"sourcesContent":["import path from 'node:path';\nimport { access } from 'node:fs/promises';\nimport { register } from 'esbuild-register/dist/node';\n\n/**\n * @internal\n */\nconst pathExists = async (path: string) => {\n try {\n await access(path);\n return true;\n } catch
|
|
1
|
+
{"version":3,"file":"files.mjs","sources":["../../../../src/node/core/files.ts"],"sourcesContent":["import path from 'node:path';\nimport { access } from 'node:fs/promises';\nimport { register } from 'esbuild-register/dist/node';\n\n/**\n * @internal\n */\nconst pathExists = async (path: string) => {\n try {\n await access(path);\n return true;\n } catch {\n return false;\n }\n};\n\n/**\n * @internal\n */\nconst loadFile = async (path: string): Promise<undefined | any> => {\n if (await pathExists(path)) {\n const esbuildOptions: Parameters<typeof register>[0] = {\n extensions: ['.js', '.mjs', '.ts'],\n };\n\n const { unregister } = register(esbuildOptions);\n\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const mod = require(path);\n\n unregister();\n\n /**\n * handles esm or cjs exporting.\n */\n const file = mod?.default || mod || undefined;\n\n return file;\n }\n\n return undefined;\n};\n\n/**\n * @internal\n *\n * @description Converts a system path to a module path mainly for `Windows` systems.\n * where the path separator is `\\` instead of `/`, on linux systems the path separator\n * is identical to the module path separator.\n */\nconst convertSystemPathToModulePath = (sysPath: string) => {\n if (process.platform === 'win32') {\n return sysPath.split(path.sep).join(path.posix.sep);\n }\n\n return sysPath;\n};\n\n/**\n * @internal\n *\n * @description Converts a module path to a system path, again largely used for Windows systems.\n * The original use case was plugins where the resolve path was in module format but we want to\n * have it relative to the runtime directory.\n */\nconst convertModulePathToSystemPath = (modulePath: string) => {\n if (process.platform === 'win32') {\n return modulePath.split(path.posix.sep).join(path.sep);\n }\n\n return modulePath;\n};\n\nexport { pathExists, loadFile, convertSystemPathToModulePath, convertModulePathToSystemPath };\n"],"names":["pathExists","path","access","loadFile","esbuildOptions","extensions","unregister","register","mod","require","file","default","undefined","convertSystemPathToModulePath","sysPath","process","platform","split","sep","join","posix","convertModulePathToSystemPath","modulePath"],"mappings":";;;;AAIA;;IAGA,MAAMA,aAAa,OAAOC,IAAAA,GAAAA;IACxB,IAAI;AACF,QAAA,MAAMC,MAAAA,CAAOD,IAAAA,CAAAA;QACb,OAAO,IAAA;AACT,IAAA,CAAA,CAAE,OAAM;QACN,OAAO,KAAA;AACT,IAAA;AACF;AAEA;;IAGA,MAAME,WAAW,OAAOF,IAAAA,GAAAA;IACtB,IAAI,MAAMD,WAAWC,IAAAA,CAAAA,EAAO;AAC1B,QAAA,MAAMG,cAAAA,GAAiD;YACrDC,UAAAA,EAAY;AAAC,gBAAA,KAAA;AAAO,gBAAA,MAAA;AAAQ,gBAAA;AAAM;AACpC,SAAA;AAEA,QAAA,MAAM,EAAEC,UAAU,EAAE,GAAGC,QAAAA,CAASH,cAAAA,CAAAA;;AAGhC,QAAA,MAAMI,MAAMC,OAAAA,CAAQR,IAAAA,CAAAA;AAEpBK,QAAAA,UAAAA,EAAAA;AAEA;;AAEC,QACD,MAAMI,IAAAA,GAAOF,GAAAA,EAAKG,OAAAA,IAAWH,GAAAA,IAAOI,SAAAA;QAEpC,OAAOF,IAAAA;AACT,IAAA;IAEA,OAAOE,SAAAA;AACT;AAEA;;;;;;IAOA,MAAMC,gCAAgC,CAACC,OAAAA,GAAAA;IACrC,IAAIC,OAAAA,CAAQC,QAAQ,KAAK,OAAA,EAAS;QAChC,OAAOF,OAAAA,CAAQG,KAAK,CAAChB,IAAAA,CAAKiB,GAAG,CAAA,CAAEC,IAAI,CAAClB,IAAAA,CAAKmB,KAAK,CAACF,GAAG,CAAA;AACpD,IAAA;IAEA,OAAOJ,OAAAA;AACT;AAEA;;;;;;IAOA,MAAMO,gCAAgC,CAACC,UAAAA,GAAAA;IACrC,IAAIP,OAAAA,CAAQC,QAAQ,KAAK,OAAA,EAAS;QAChC,OAAOM,UAAAA,CAAWL,KAAK,CAAChB,IAAAA,CAAKmB,KAAK,CAACF,GAAG,CAAA,CAAEC,IAAI,CAAClB,IAAAA,CAAKiB,GAAG,CAAA;AACvD,IAAA;IAEA,OAAOI,UAAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "5.51.
|
|
3
|
+
"version": "5.51.2",
|
|
4
4
|
"description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -110,25 +110,25 @@
|
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
112
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.17",
|
|
113
|
-
"@strapi/admin": "5.51.
|
|
114
|
-
"@strapi/cloud-cli": "5.51.
|
|
115
|
-
"@strapi/content-manager": "5.51.
|
|
116
|
-
"@strapi/content-releases": "5.51.
|
|
117
|
-
"@strapi/content-type-builder": "5.51.
|
|
118
|
-
"@strapi/core": "5.51.
|
|
119
|
-
"@strapi/data-transfer": "5.51.
|
|
120
|
-
"@strapi/database": "5.51.
|
|
121
|
-
"@strapi/email": "5.51.
|
|
122
|
-
"@strapi/generators": "5.51.
|
|
123
|
-
"@strapi/i18n": "5.51.
|
|
124
|
-
"@strapi/logger": "5.51.
|
|
125
|
-
"@strapi/openapi": "5.51.
|
|
126
|
-
"@strapi/permissions": "5.51.
|
|
127
|
-
"@strapi/review-workflows": "5.51.
|
|
128
|
-
"@strapi/types": "5.51.
|
|
129
|
-
"@strapi/typescript-utils": "5.51.
|
|
130
|
-
"@strapi/upload": "5.51.
|
|
131
|
-
"@strapi/utils": "5.51.
|
|
113
|
+
"@strapi/admin": "5.51.2",
|
|
114
|
+
"@strapi/cloud-cli": "5.51.2",
|
|
115
|
+
"@strapi/content-manager": "5.51.2",
|
|
116
|
+
"@strapi/content-releases": "5.51.2",
|
|
117
|
+
"@strapi/content-type-builder": "5.51.2",
|
|
118
|
+
"@strapi/core": "5.51.2",
|
|
119
|
+
"@strapi/data-transfer": "5.51.2",
|
|
120
|
+
"@strapi/database": "5.51.2",
|
|
121
|
+
"@strapi/email": "5.51.2",
|
|
122
|
+
"@strapi/generators": "5.51.2",
|
|
123
|
+
"@strapi/i18n": "5.51.2",
|
|
124
|
+
"@strapi/logger": "5.51.2",
|
|
125
|
+
"@strapi/openapi": "5.51.2",
|
|
126
|
+
"@strapi/permissions": "5.51.2",
|
|
127
|
+
"@strapi/review-workflows": "5.51.2",
|
|
128
|
+
"@strapi/types": "5.51.2",
|
|
129
|
+
"@strapi/typescript-utils": "5.51.2",
|
|
130
|
+
"@strapi/upload": "5.51.2",
|
|
131
|
+
"@strapi/utils": "5.51.2",
|
|
132
132
|
"@types/nodemon": "1.19.6",
|
|
133
133
|
"@vitejs/plugin-react-swc": "3.11.0",
|
|
134
134
|
"boxen": "5.1.2",
|
|
@@ -180,11 +180,11 @@
|
|
|
180
180
|
"@types/node": "20.19.41",
|
|
181
181
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
182
182
|
"@types/webpack-hot-middleware": "2.25.12",
|
|
183
|
-
"eslint-config-custom": "5.51.
|
|
183
|
+
"eslint-config-custom": "5.51.2",
|
|
184
184
|
"jest": "29.6.0",
|
|
185
185
|
"react": "18.3.1",
|
|
186
186
|
"react-dom": "18.3.1",
|
|
187
|
-
"tsconfig": "5.51.
|
|
187
|
+
"tsconfig": "5.51.2",
|
|
188
188
|
"yalc": "1.0.0-pre.53"
|
|
189
189
|
},
|
|
190
190
|
"peerDependencies": {
|