@strapi/plugin-graphql 5.0.0-alpha.2 → 5.0.0-alpha.4
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
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.0.0-alpha.
|
|
12
|
+
const version = "5.0.0-alpha.3";
|
|
13
13
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
14
14
|
const repository = {
|
|
15
15
|
type: "git",
|
|
@@ -63,9 +63,8 @@ const dependencies = {
|
|
|
63
63
|
"@graphql-tools/utils": "^8.13.1",
|
|
64
64
|
"@koa/cors": "3.4.3",
|
|
65
65
|
"@strapi/design-system": "1.16.0",
|
|
66
|
-
"@strapi/helper-plugin": "5.0.0-alpha.1",
|
|
67
66
|
"@strapi/icons": "1.16.0",
|
|
68
|
-
"@strapi/utils": "5.0.0-alpha.
|
|
67
|
+
"@strapi/utils": "5.0.0-alpha.3",
|
|
69
68
|
graphql: "^16.8.1",
|
|
70
69
|
"graphql-depth-limit": "^1.1.0",
|
|
71
70
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -77,19 +76,19 @@ const dependencies = {
|
|
|
77
76
|
pluralize: "8.0.0"
|
|
78
77
|
};
|
|
79
78
|
const devDependencies = {
|
|
80
|
-
"@strapi/strapi": "5.0.0-alpha.
|
|
81
|
-
"@strapi/types": "5.0.0-alpha.
|
|
79
|
+
"@strapi/strapi": "5.0.0-alpha.3",
|
|
80
|
+
"@strapi/types": "5.0.0-alpha.3",
|
|
82
81
|
"@types/graphql-depth-limit": "1.1.5",
|
|
83
82
|
"@types/koa-bodyparser": "4.3.12",
|
|
84
83
|
"@types/koa__cors": "5.0.0",
|
|
85
84
|
"cross-env": "^7.0.3",
|
|
86
|
-
"eslint-config-custom": "5.0.0-alpha.
|
|
85
|
+
"eslint-config-custom": "5.0.0-alpha.3",
|
|
87
86
|
koa: "2.13.4",
|
|
88
87
|
react: "^18.2.0",
|
|
89
88
|
"react-dom": "^18.2.0",
|
|
90
89
|
"react-router-dom": "6.22.3",
|
|
91
90
|
"styled-components": "5.3.11",
|
|
92
|
-
tsconfig: "5.0.0-alpha.
|
|
91
|
+
tsconfig: "5.0.0-alpha.3",
|
|
93
92
|
typescript: "5.3.2"
|
|
94
93
|
};
|
|
95
94
|
const peerDependencies = {
|
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;AACrF,MAAI,CAACA,WAAU;AACP,UAAA,IAAI,UAAU,yBAAyB;AAAA,EAC/C;AACA,SAAO,OAAO,KAAK,IAAI,EAAE,OAAO,CAAC,KAAK,YAAY;AAChD,QAAI,GAAGA,SAAQ,IAAI,OAAO,EAAE,IAAI,KAAK,OAAO;AACrC,WAAA;AAAA,EACT,GAAG,C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,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.0.0-alpha.
|
|
11
|
+
const version = "5.0.0-alpha.3";
|
|
12
12
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
13
13
|
const repository = {
|
|
14
14
|
type: "git",
|
|
@@ -62,9 +62,8 @@ const dependencies = {
|
|
|
62
62
|
"@graphql-tools/utils": "^8.13.1",
|
|
63
63
|
"@koa/cors": "3.4.3",
|
|
64
64
|
"@strapi/design-system": "1.16.0",
|
|
65
|
-
"@strapi/helper-plugin": "5.0.0-alpha.1",
|
|
66
65
|
"@strapi/icons": "1.16.0",
|
|
67
|
-
"@strapi/utils": "5.0.0-alpha.
|
|
66
|
+
"@strapi/utils": "5.0.0-alpha.3",
|
|
68
67
|
graphql: "^16.8.1",
|
|
69
68
|
"graphql-depth-limit": "^1.1.0",
|
|
70
69
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -76,19 +75,19 @@ const dependencies = {
|
|
|
76
75
|
pluralize: "8.0.0"
|
|
77
76
|
};
|
|
78
77
|
const devDependencies = {
|
|
79
|
-
"@strapi/strapi": "5.0.0-alpha.
|
|
80
|
-
"@strapi/types": "5.0.0-alpha.
|
|
78
|
+
"@strapi/strapi": "5.0.0-alpha.3",
|
|
79
|
+
"@strapi/types": "5.0.0-alpha.3",
|
|
81
80
|
"@types/graphql-depth-limit": "1.1.5",
|
|
82
81
|
"@types/koa-bodyparser": "4.3.12",
|
|
83
82
|
"@types/koa__cors": "5.0.0",
|
|
84
83
|
"cross-env": "^7.0.3",
|
|
85
|
-
"eslint-config-custom": "5.0.0-alpha.
|
|
84
|
+
"eslint-config-custom": "5.0.0-alpha.3",
|
|
86
85
|
koa: "2.13.4",
|
|
87
86
|
react: "^18.2.0",
|
|
88
87
|
"react-dom": "^18.2.0",
|
|
89
88
|
"react-router-dom": "6.22.3",
|
|
90
89
|
"styled-components": "5.3.11",
|
|
91
|
-
tsconfig: "5.0.0-alpha.
|
|
90
|
+
tsconfig: "5.0.0-alpha.3",
|
|
92
91
|
typescript: "5.3.2"
|
|
93
92
|
};
|
|
94
93
|
const peerDependencies = {
|
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;AACrF,MAAI,CAACA,WAAU;AACP,UAAA,IAAI,UAAU,yBAAyB;AAAA,EAC/C;AACA,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.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.4",
|
|
4
4
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,9 +54,8 @@
|
|
|
54
54
|
"@graphql-tools/utils": "^8.13.1",
|
|
55
55
|
"@koa/cors": "3.4.3",
|
|
56
56
|
"@strapi/design-system": "1.16.0",
|
|
57
|
-
"@strapi/helper-plugin": "5.0.0-alpha.2",
|
|
58
57
|
"@strapi/icons": "1.16.0",
|
|
59
|
-
"@strapi/utils": "5.0.0-alpha.
|
|
58
|
+
"@strapi/utils": "5.0.0-alpha.4",
|
|
60
59
|
"graphql": "^16.8.1",
|
|
61
60
|
"graphql-depth-limit": "^1.1.0",
|
|
62
61
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -68,19 +67,19 @@
|
|
|
68
67
|
"pluralize": "8.0.0"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
|
-
"@strapi/strapi": "5.0.0-alpha.
|
|
72
|
-
"@strapi/types": "5.0.0-alpha.
|
|
70
|
+
"@strapi/strapi": "5.0.0-alpha.4",
|
|
71
|
+
"@strapi/types": "5.0.0-alpha.4",
|
|
73
72
|
"@types/graphql-depth-limit": "1.1.5",
|
|
74
73
|
"@types/koa-bodyparser": "4.3.12",
|
|
75
74
|
"@types/koa__cors": "5.0.0",
|
|
76
75
|
"cross-env": "^7.0.3",
|
|
77
|
-
"eslint-config-custom": "5.0.0-alpha.
|
|
76
|
+
"eslint-config-custom": "5.0.0-alpha.4",
|
|
78
77
|
"koa": "2.13.4",
|
|
79
78
|
"react": "^18.2.0",
|
|
80
79
|
"react-dom": "^18.2.0",
|
|
81
80
|
"react-router-dom": "6.22.3",
|
|
82
81
|
"styled-components": "5.3.11",
|
|
83
|
-
"tsconfig": "5.0.0-alpha.
|
|
82
|
+
"tsconfig": "5.0.0-alpha.4",
|
|
84
83
|
"typescript": "5.3.2"
|
|
85
84
|
},
|
|
86
85
|
"peerDependencies": {
|
|
@@ -100,5 +99,5 @@
|
|
|
100
99
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
101
100
|
"kind": "plugin"
|
|
102
101
|
},
|
|
103
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "d536f44a9af118286100cbb5bb86b6685c71a00e"
|
|
104
103
|
}
|