@strapi/plugin-graphql 5.3.0 → 5.4.1
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/admin/index.js +10 -8
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +10 -8
- package/dist/admin/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/admin/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
const name$1 = "@strapi/plugin-graphql";
|
|
12
|
-
const version = "5.
|
|
12
|
+
const version = "5.4.0";
|
|
13
13
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
14
14
|
const repository = {
|
|
15
15
|
type: "git",
|
|
@@ -64,7 +64,7 @@ const dependencies = {
|
|
|
64
64
|
"@koa/cors": "5.0.0",
|
|
65
65
|
"@strapi/design-system": "2.0.0-rc.12",
|
|
66
66
|
"@strapi/icons": "2.0.0-rc.12",
|
|
67
|
-
"@strapi/utils": "
|
|
67
|
+
"@strapi/utils": "5.4.0",
|
|
68
68
|
graphql: "^16.8.1",
|
|
69
69
|
"graphql-depth-limit": "^1.1.0",
|
|
70
70
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -77,23 +77,23 @@ const dependencies = {
|
|
|
77
77
|
};
|
|
78
78
|
const devDependencies = {
|
|
79
79
|
"@strapi/sdk-plugin": "^5.0.0",
|
|
80
|
-
"@strapi/strapi": "
|
|
81
|
-
"@strapi/types": "
|
|
80
|
+
"@strapi/strapi": "5.4.0",
|
|
81
|
+
"@strapi/types": "5.4.0",
|
|
82
82
|
"@types/graphql-depth-limit": "1.1.5",
|
|
83
83
|
"@types/koa-bodyparser": "4.3.12",
|
|
84
84
|
"@types/koa__cors": "5.0.0",
|
|
85
85
|
"cross-env": "^7.0.3",
|
|
86
|
-
"eslint-config-custom": "
|
|
86
|
+
"eslint-config-custom": "5.4.0",
|
|
87
87
|
koa: "2.15.2",
|
|
88
88
|
react: "18.3.1",
|
|
89
89
|
"react-dom": "18.3.1",
|
|
90
90
|
"react-router-dom": "6.22.3",
|
|
91
91
|
"styled-components": "6.1.8",
|
|
92
|
-
tsconfig: "
|
|
92
|
+
tsconfig: "5.4.0",
|
|
93
93
|
typescript: "5.3.2"
|
|
94
94
|
};
|
|
95
95
|
const peerDependencies = {
|
|
96
|
-
"@strapi/strapi": "^5.0.0
|
|
96
|
+
"@strapi/strapi": "^5.0.0",
|
|
97
97
|
react: "^17.0.0 || ^18.0.0",
|
|
98
98
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
99
99
|
"react-router-dom": "^6.0.0",
|
|
@@ -109,6 +109,7 @@ const strapi = {
|
|
|
109
109
|
description: "Adds GraphQL endpoint with default API methods.",
|
|
110
110
|
kind: "plugin"
|
|
111
111
|
};
|
|
112
|
+
const gitHead = "7d785703f52464577d077c4618cbe68b44f8a9cd";
|
|
112
113
|
const pluginPkg = {
|
|
113
114
|
name: name$1,
|
|
114
115
|
version,
|
|
@@ -124,7 +125,8 @@ const pluginPkg = {
|
|
|
124
125
|
devDependencies,
|
|
125
126
|
peerDependencies,
|
|
126
127
|
engines,
|
|
127
|
-
strapi
|
|
128
|
+
strapi,
|
|
129
|
+
gitHead
|
|
128
130
|
};
|
|
129
131
|
const pluginId = "graphql";
|
|
130
132
|
const prefixPluginTranslations = (trad, pluginId2) => {
|
package/dist/admin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;AAIrF,SAAO,OAAO,KAAK,IAAI,EAAE,OAAO,CAAC,KAAK,YAAY;AAChD,QAAI,GAAGA,SAAQ,IAAI,OAAO,EAAE,IAAI,KAAK,OAAO;AACrC,WAAA;AAAA,EACT,GAAG,CAAiB,CAAA;AACtB;ACLA,MAAM,OAAO,UAAU,OAAO;AAG9B,MAAe,QAAA;AAAA;AAAA,EAEb,SAAS,KAAU;AACjB,QAAI,eAAe;AAAA,MACjB,IAAI;AAAA,MACJ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,YAAY;AAAA,EAAC;AAAA,EACb,MAAM,cAAc,EAAE,WAAkC;AAChD,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MAClC,QAAQ,IAAI,CAAC,WAAW;AACf,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,IAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,qCAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,IAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,IAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,CAAA,GAAA,0BAAA,MAAA,qCAAA,2BAAA,CAAA,GAAA,+BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,gCAAA,CAAA,GAAA,0BAAA,MAAA,QAAA,QAAA,EAAA,KAAA,MAAA,QAAA,2BAAA,GAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,KAAA,MAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,QAAQ;AAAA,YAC7C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;;"}
|
package/dist/admin/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
const name$1 = "@strapi/plugin-graphql";
|
|
11
|
-
const version = "5.
|
|
11
|
+
const version = "5.4.0";
|
|
12
12
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
13
13
|
const repository = {
|
|
14
14
|
type: "git",
|
|
@@ -63,7 +63,7 @@ const dependencies = {
|
|
|
63
63
|
"@koa/cors": "5.0.0",
|
|
64
64
|
"@strapi/design-system": "2.0.0-rc.12",
|
|
65
65
|
"@strapi/icons": "2.0.0-rc.12",
|
|
66
|
-
"@strapi/utils": "
|
|
66
|
+
"@strapi/utils": "5.4.0",
|
|
67
67
|
graphql: "^16.8.1",
|
|
68
68
|
"graphql-depth-limit": "^1.1.0",
|
|
69
69
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -76,23 +76,23 @@ const dependencies = {
|
|
|
76
76
|
};
|
|
77
77
|
const devDependencies = {
|
|
78
78
|
"@strapi/sdk-plugin": "^5.0.0",
|
|
79
|
-
"@strapi/strapi": "
|
|
80
|
-
"@strapi/types": "
|
|
79
|
+
"@strapi/strapi": "5.4.0",
|
|
80
|
+
"@strapi/types": "5.4.0",
|
|
81
81
|
"@types/graphql-depth-limit": "1.1.5",
|
|
82
82
|
"@types/koa-bodyparser": "4.3.12",
|
|
83
83
|
"@types/koa__cors": "5.0.0",
|
|
84
84
|
"cross-env": "^7.0.3",
|
|
85
|
-
"eslint-config-custom": "
|
|
85
|
+
"eslint-config-custom": "5.4.0",
|
|
86
86
|
koa: "2.15.2",
|
|
87
87
|
react: "18.3.1",
|
|
88
88
|
"react-dom": "18.3.1",
|
|
89
89
|
"react-router-dom": "6.22.3",
|
|
90
90
|
"styled-components": "6.1.8",
|
|
91
|
-
tsconfig: "
|
|
91
|
+
tsconfig: "5.4.0",
|
|
92
92
|
typescript: "5.3.2"
|
|
93
93
|
};
|
|
94
94
|
const peerDependencies = {
|
|
95
|
-
"@strapi/strapi": "^5.0.0
|
|
95
|
+
"@strapi/strapi": "^5.0.0",
|
|
96
96
|
react: "^17.0.0 || ^18.0.0",
|
|
97
97
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
98
98
|
"react-router-dom": "^6.0.0",
|
|
@@ -108,6 +108,7 @@ const strapi = {
|
|
|
108
108
|
description: "Adds GraphQL endpoint with default API methods.",
|
|
109
109
|
kind: "plugin"
|
|
110
110
|
};
|
|
111
|
+
const gitHead = "7d785703f52464577d077c4618cbe68b44f8a9cd";
|
|
111
112
|
const pluginPkg = {
|
|
112
113
|
name: name$1,
|
|
113
114
|
version,
|
|
@@ -123,7 +124,8 @@ const pluginPkg = {
|
|
|
123
124
|
devDependencies,
|
|
124
125
|
peerDependencies,
|
|
125
126
|
engines,
|
|
126
|
-
strapi
|
|
127
|
+
strapi,
|
|
128
|
+
gitHead
|
|
127
129
|
};
|
|
128
130
|
const pluginId = "graphql";
|
|
129
131
|
const prefixPluginTranslations = (trad, pluginId2) => {
|
package/dist/admin/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../admin/src/pluginId.ts","../../admin/src/utils/prefixPluginTranslations.ts","../../admin/src/index.ts"],"sourcesContent":["export const pluginId = 'graphql';\n","type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n","import pluginPkg from '../../package.json';\n\nimport { pluginId } from './pluginId';\nimport { prefixPluginTranslations } from './utils/prefixPluginTranslations';\n\nconst name = pluginPkg.strapi.name;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.\n register(app: any) {\n app.registerPlugin({\n id: pluginId,\n name,\n });\n },\n bootstrap() {},\n async registerTrads({ locales }: { locales: string[] }) {\n const importedTrads = await Promise.all(\n locales.map((locale) => {\n return import(`./translations/${locale}.json`)\n .then(({ default: data }) => {\n return {\n data: prefixPluginTranslations(data, pluginId),\n locale,\n };\n })\n .catch(() => {\n return {\n data: {},\n locale,\n };\n });\n })\n );\n\n return Promise.resolve(importedTrads);\n },\n};\n"],"names":["pluginId"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,WAAW;ACExB,MAAM,2BAA2B,CAAC,MAAmBA,cAAkC;AAIrF,SAAO,OAAO,KAAK,IAAI,EAAE,OAAO,CAAC,KAAK,YAAY;AAChD,QAAI,GAAGA,SAAQ,IAAI,OAAO,EAAE,IAAI,KAAK,OAAO;AACrC,WAAA;AAAA,EACT,GAAG,CAAiB,CAAA;AACtB;ACLA,MAAM,OAAO,UAAU,OAAO;AAG9B,MAAe,QAAA;AAAA;AAAA,EAEb,SAAS,KAAU;AACjB,QAAI,eAAe;AAAA,MACjB,IAAI;AAAA,MACJ;AAAA,IAAA,CACD;AAAA,EACH;AAAA,EACA,YAAY;AAAA,EAAC;AAAA,EACb,MAAM,cAAc,EAAE,WAAkC;AAChD,UAAA,gBAAgB,MAAM,QAAQ;AAAA,MAClC,QAAQ,IAAI,CAAC,WAAW;AACf,eAAA,qCAA+B,uBAAA,OAAA,EAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,GAAA,+BAAA,MAAA,OAAA,iCAAA,GAAA,0BAAA,MAAA,OAAA,4BAAA,EAAA,CAAA,GAAA,kBAAA,MAAA,OAAA,EACnC,KAAK,CAAC,EAAE,SAAS,KAAA,MAAW;AACpB,iBAAA;AAAA,YACL,MAAM,yBAAyB,MAAM,QAAQ;AAAA,YAC7C;AAAA,UAAA;AAAA,QACF,CACD,EACA,MAAM,MAAM;AACJ,iBAAA;AAAA,YACL,MAAM,CAAC;AAAA,YACP;AAAA,UAAA;AAAA,QACF,CACD;AAAA,MAAA,CACJ;AAAA,IAAA;AAGI,WAAA,QAAQ,QAAQ,aAAa;AAAA,EACtC;AACF;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-graphql",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@koa/cors": "5.0.0",
|
|
56
56
|
"@strapi/design-system": "2.0.0-rc.12",
|
|
57
57
|
"@strapi/icons": "2.0.0-rc.12",
|
|
58
|
-
"@strapi/utils": "5.
|
|
58
|
+
"@strapi/utils": "5.4.1",
|
|
59
59
|
"graphql": "^16.8.1",
|
|
60
60
|
"graphql-depth-limit": "^1.1.0",
|
|
61
61
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -68,23 +68,23 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@strapi/sdk-plugin": "^5.0.0",
|
|
71
|
-
"@strapi/strapi": "5.
|
|
72
|
-
"@strapi/types": "5.
|
|
71
|
+
"@strapi/strapi": "5.4.1",
|
|
72
|
+
"@strapi/types": "5.4.1",
|
|
73
73
|
"@types/graphql-depth-limit": "1.1.5",
|
|
74
74
|
"@types/koa-bodyparser": "4.3.12",
|
|
75
75
|
"@types/koa__cors": "5.0.0",
|
|
76
76
|
"cross-env": "^7.0.3",
|
|
77
|
-
"eslint-config-custom": "5.
|
|
77
|
+
"eslint-config-custom": "5.4.1",
|
|
78
78
|
"koa": "2.15.2",
|
|
79
79
|
"react": "18.3.1",
|
|
80
80
|
"react-dom": "18.3.1",
|
|
81
81
|
"react-router-dom": "6.22.3",
|
|
82
82
|
"styled-components": "6.1.8",
|
|
83
|
-
"tsconfig": "5.
|
|
83
|
+
"tsconfig": "5.4.1",
|
|
84
84
|
"typescript": "5.3.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@strapi/strapi": "^5.0.0
|
|
87
|
+
"@strapi/strapi": "^5.0.0",
|
|
88
88
|
"react": "^17.0.0 || ^18.0.0",
|
|
89
89
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
90
90
|
"react-router-dom": "^6.0.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
101
101
|
"kind": "plugin"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "c7e2ed60ecd8893748d30753ce16f0357e3c3663"
|
|
104
104
|
}
|