@strapi/plugin-graphql 5.9.0 → 5.10.0

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.
Files changed (69) hide show
  1. package/dist/admin/chunks/dk-Bji21OvY.mjs +8 -0
  2. package/dist/admin/chunks/dk-Bji21OvY.mjs.map +1 -0
  3. package/dist/admin/chunks/dk-D3k_Atlh.js +10 -0
  4. package/dist/admin/chunks/dk-D3k_Atlh.js.map +1 -0
  5. package/dist/admin/chunks/en-COko3s6d.mjs +8 -0
  6. package/dist/admin/chunks/en-COko3s6d.mjs.map +1 -0
  7. package/dist/admin/chunks/en-DzY_FEd6.js +10 -0
  8. package/dist/admin/chunks/en-DzY_FEd6.js.map +1 -0
  9. package/dist/admin/chunks/es-BoUVfXlb.mjs +8 -0
  10. package/dist/admin/chunks/es-BoUVfXlb.mjs.map +1 -0
  11. package/dist/admin/chunks/es-D02rvX4A.js +10 -0
  12. package/dist/admin/chunks/es-D02rvX4A.js.map +1 -0
  13. package/dist/admin/chunks/fr-D9dcL-gU.js +10 -0
  14. package/dist/admin/chunks/fr-D9dcL-gU.js.map +1 -0
  15. package/dist/admin/chunks/fr-DFbQQgkK.mjs +8 -0
  16. package/dist/admin/chunks/fr-DFbQQgkK.mjs.map +1 -0
  17. package/dist/admin/chunks/pl-Bih5cA3Y.mjs +8 -0
  18. package/dist/admin/chunks/pl-Bih5cA3Y.mjs.map +1 -0
  19. package/dist/admin/chunks/pl-DRSWvr2y.js +10 -0
  20. package/dist/admin/chunks/pl-DRSWvr2y.js.map +1 -0
  21. package/dist/admin/chunks/ru-Bxi2fB6E.mjs +8 -0
  22. package/dist/admin/chunks/ru-Bxi2fB6E.mjs.map +1 -0
  23. package/dist/admin/chunks/ru-zDn7cu6t.js +10 -0
  24. package/dist/admin/chunks/ru-zDn7cu6t.js.map +1 -0
  25. package/dist/admin/chunks/sv-B2uIJv_a.mjs +8 -0
  26. package/dist/admin/chunks/sv-B2uIJv_a.mjs.map +1 -0
  27. package/dist/admin/chunks/sv-Dq2aVH0_.js +10 -0
  28. package/dist/admin/chunks/sv-Dq2aVH0_.js.map +1 -0
  29. package/dist/admin/chunks/tr-B0yEuVnS.js +10 -0
  30. package/dist/admin/chunks/tr-B0yEuVnS.js.map +1 -0
  31. package/dist/admin/chunks/tr-DwO6hyQD.mjs +8 -0
  32. package/dist/admin/chunks/tr-DwO6hyQD.mjs.map +1 -0
  33. package/dist/admin/chunks/zh-BkiTjJnf.js +10 -0
  34. package/dist/admin/chunks/zh-BkiTjJnf.js.map +1 -0
  35. package/dist/admin/chunks/zh-DVvz1qsT.mjs +8 -0
  36. package/dist/admin/chunks/zh-DVvz1qsT.mjs.map +1 -0
  37. package/dist/admin/chunks/zh-Hans-DUab611K.mjs +8 -0
  38. package/dist/admin/chunks/zh-Hans-DUab611K.mjs.map +1 -0
  39. package/dist/admin/chunks/zh-Hans-DxlDvlSo.js +10 -0
  40. package/dist/admin/chunks/zh-Hans-DxlDvlSo.js.map +1 -0
  41. package/dist/admin/index.js +164 -154
  42. package/dist/admin/index.js.map +1 -0
  43. package/dist/admin/index.mjs +163 -156
  44. package/dist/admin/index.mjs.map +1 -0
  45. package/dist/server/index.js +3541 -2980
  46. package/dist/server/index.js.map +1 -0
  47. package/dist/server/index.mjs +3550 -2989
  48. package/dist/server/index.mjs.map +1 -0
  49. package/package.json +15 -12
  50. package/dist/_chunks/dk-BbJCmDw6.mjs +0 -8
  51. package/dist/_chunks/dk-C9NcSzyg.js +0 -8
  52. package/dist/_chunks/en-BiKpmhCU.js +0 -8
  53. package/dist/_chunks/en-YIQYYlvv.mjs +0 -8
  54. package/dist/_chunks/es-BbsZ5Fh0.mjs +0 -8
  55. package/dist/_chunks/es-DE22V9D4.js +0 -8
  56. package/dist/_chunks/fr-BgqFw7G8.mjs +0 -8
  57. package/dist/_chunks/fr-Ca-HowfR.js +0 -8
  58. package/dist/_chunks/pl-CbET57Jb.mjs +0 -8
  59. package/dist/_chunks/pl-DVnJGR87.js +0 -8
  60. package/dist/_chunks/ru-BFz40YSA.mjs +0 -8
  61. package/dist/_chunks/ru-o4zaP02C.js +0 -8
  62. package/dist/_chunks/sv-9qK4y9fb.js +0 -8
  63. package/dist/_chunks/sv-CNYcKBn2.mjs +0 -8
  64. package/dist/_chunks/tr-H1PrR6RM.mjs +0 -8
  65. package/dist/_chunks/tr-fBBDNMBY.js +0 -8
  66. package/dist/_chunks/zh-BEh3jejH.mjs +0 -8
  67. package/dist/_chunks/zh-CyCKPuL0.js +0 -8
  68. package/dist/_chunks/zh-Hans-Btuz6Y7W.js +0 -8
  69. package/dist/_chunks/zh-Hans-CRQss50D.mjs +0 -8
@@ -0,0 +1,8 @@
1
+ var dk = {
2
+ "plugin.description.long": "Tilføjer GraphQL endpoint med standard API metoder.",
3
+ "plugin.description.short": "Tilføjer GraphQL endpoint med standard API metoder.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { dk as default };
8
+ //# sourceMappingURL=dk-Bji21OvY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dk-Bji21OvY.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var dk = {
4
+ "plugin.description.long": "Tilføjer GraphQL endpoint med standard API metoder.",
5
+ "plugin.description.short": "Tilføjer GraphQL endpoint med standard API metoder.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = dk;
10
+ //# sourceMappingURL=dk-D3k_Atlh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dk-D3k_Atlh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var en = {
2
+ "plugin.description.long": "Adds GraphQL endpoint with default API methods.",
3
+ "plugin.description.short": "Adds GraphQL endpoint with default API methods.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { en as default };
8
+ //# sourceMappingURL=en-COko3s6d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-COko3s6d.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var en = {
4
+ "plugin.description.long": "Adds GraphQL endpoint with default API methods.",
5
+ "plugin.description.short": "Adds GraphQL endpoint with default API methods.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = en;
10
+ //# sourceMappingURL=en-DzY_FEd6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en-DzY_FEd6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var es = {
2
+ "plugin.description.long": "Agrega un endpoint GraphQL con métodos de API predeterminados.",
3
+ "plugin.description.short": "Agrega un endpoint GraphQL con métodos de API predeterminados.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { es as default };
8
+ //# sourceMappingURL=es-BoUVfXlb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es-BoUVfXlb.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var es = {
4
+ "plugin.description.long": "Agrega un endpoint GraphQL con métodos de API predeterminados.",
5
+ "plugin.description.short": "Agrega un endpoint GraphQL con métodos de API predeterminados.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = es;
10
+ //# sourceMappingURL=es-D02rvX4A.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"es-D02rvX4A.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var fr = {
4
+ "plugin.description.long": "Crée un endpoint GraphQL supportant les méthodes par défaut de l'API.",
5
+ "plugin.description.short": "Crée un endpoint GraphQL supportant les méthodes par défaut de l'API.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = fr;
10
+ //# sourceMappingURL=fr-D9dcL-gU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr-D9dcL-gU.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var fr = {
2
+ "plugin.description.long": "Crée un endpoint GraphQL supportant les méthodes par défaut de l'API.",
3
+ "plugin.description.short": "Crée un endpoint GraphQL supportant les méthodes par défaut de l'API.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { fr as default };
8
+ //# sourceMappingURL=fr-DFbQQgkK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fr-DFbQQgkK.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var pl = {
2
+ "plugin.description.long": "Dodaje GraphQL endpoint z domyślnymi metodami API.",
3
+ "plugin.description.short": "Dodaje GraphQL endpoint z domyślnymi metodami API.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { pl as default };
8
+ //# sourceMappingURL=pl-Bih5cA3Y.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pl-Bih5cA3Y.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var pl = {
4
+ "plugin.description.long": "Dodaje GraphQL endpoint z domyślnymi metodami API.",
5
+ "plugin.description.short": "Dodaje GraphQL endpoint z domyślnymi metodami API.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = pl;
10
+ //# sourceMappingURL=pl-DRSWvr2y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pl-DRSWvr2y.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var ru = {
2
+ "plugin.description.long": "Добавляет конечную точку для GraphQL с методами API по умолчанию.",
3
+ "plugin.description.short": "Добавляет конечную точку для GraphQL с методами API по умолчанию.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { ru as default };
8
+ //# sourceMappingURL=ru-Bxi2fB6E.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ru-Bxi2fB6E.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var ru = {
4
+ "plugin.description.long": "Добавляет конечную точку для GraphQL с методами API по умолчанию.",
5
+ "plugin.description.short": "Добавляет конечную точку для GraphQL с методами API по умолчанию.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = ru;
10
+ //# sourceMappingURL=ru-zDn7cu6t.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ru-zDn7cu6t.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var sv = {
2
+ "plugin.description.long": "Lägger till en GraphQL-rutt med standard API-metoder.",
3
+ "plugin.description.short": "Lägger till en GraphQL-rutt med standard API-metoder.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { sv as default };
8
+ //# sourceMappingURL=sv-B2uIJv_a.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sv-B2uIJv_a.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var sv = {
4
+ "plugin.description.long": "Lägger till en GraphQL-rutt med standard API-metoder.",
5
+ "plugin.description.short": "Lägger till en GraphQL-rutt med standard API-metoder.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = sv;
10
+ //# sourceMappingURL=sv-Dq2aVH0_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sv-Dq2aVH0_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var tr = {
4
+ "plugin.description.long": "Varsayılan API metodları ile bir GraphQL uç noktası ekler.",
5
+ "plugin.description.short": "Varsayılan API metodları ile bir GraphQL uç noktası ekler.",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = tr;
10
+ //# sourceMappingURL=tr-B0yEuVnS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tr-B0yEuVnS.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var tr = {
2
+ "plugin.description.long": "Varsayılan API metodları ile bir GraphQL uç noktası ekler.",
3
+ "plugin.description.short": "Varsayılan API metodları ile bir GraphQL uç noktası ekler.",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { tr as default };
8
+ //# sourceMappingURL=tr-DwO6hyQD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tr-DwO6hyQD.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var zh = {
4
+ "plugin.description.long": "新增使用預設 API 方法的 GraphQL 端點。",
5
+ "plugin.description.short": "新增使用預設 API 方法的 GraphQL 端點。",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = zh;
10
+ //# sourceMappingURL=zh-BkiTjJnf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-BkiTjJnf.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var zh = {
2
+ "plugin.description.long": "新增使用預設 API 方法的 GraphQL 端點。",
3
+ "plugin.description.short": "新增使用預設 API 方法的 GraphQL 端點。",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { zh as default };
8
+ //# sourceMappingURL=zh-DVvz1qsT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-DVvz1qsT.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ var zhHans = {
2
+ "plugin.description.long": "为默认API方法添加GraphQL端点",
3
+ "plugin.description.short": "为默认API方法添加GraphQL端点",
4
+ "plugin.name": "GraphQL"
5
+ };
6
+
7
+ export { zhHans as default };
8
+ //# sourceMappingURL=zh-Hans-DUab611K.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-Hans-DUab611K.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var zhHans = {
4
+ "plugin.description.long": "为默认API方法添加GraphQL端点",
5
+ "plugin.description.short": "为默认API方法添加GraphQL端点",
6
+ "plugin.name": "GraphQL"
7
+ };
8
+
9
+ exports.default = zhHans;
10
+ //# sourceMappingURL=zh-Hans-DxlDvlSo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh-Hans-DxlDvlSo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -1,173 +1,183 @@
1
- "use strict";
2
- const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
3
- const v = glob[path];
4
- if (v) {
5
- return typeof v === "function" ? v() : Promise.resolve(v);
6
- }
7
- return new Promise((_, reject) => {
8
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
9
- reject.bind(
10
- null,
11
- new Error(
12
- "Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
13
- )
14
- )
15
- );
16
- });
1
+ 'use strict';
2
+
3
+ var name$1 = "@strapi/plugin-graphql";
4
+ var version = "5.9.0";
5
+ var description = "Adds GraphQL endpoint with default API methods.";
6
+ var repository = {
7
+ type: "git",
8
+ url: "https://github.com/strapi/strapi.git",
9
+ directory: "packages/plugins/graphql"
17
10
  };
18
- const name$1 = "@strapi/plugin-graphql";
19
- const version = "5.8.1";
20
- const description = "Adds GraphQL endpoint with default API methods.";
21
- const repository = {
22
- type: "git",
23
- url: "https://github.com/strapi/strapi.git",
24
- directory: "packages/plugins/graphql"
25
- };
26
- const license = "SEE LICENSE IN LICENSE";
27
- const author = {
28
- name: "Strapi Solutions SAS",
29
- email: "hi@strapi.io",
30
- url: "https://strapi.io"
31
- };
32
- const maintainers = [
33
- {
11
+ var license = "SEE LICENSE IN LICENSE";
12
+ var author = {
34
13
  name: "Strapi Solutions SAS",
35
14
  email: "hi@strapi.io",
36
15
  url: "https://strapi.io"
37
- }
16
+ };
17
+ var maintainers = [
18
+ {
19
+ name: "Strapi Solutions SAS",
20
+ email: "hi@strapi.io",
21
+ url: "https://strapi.io"
22
+ }
38
23
  ];
39
- const exports$1 = {
40
- "./strapi-admin": {
41
- types: "./dist/admin/src/index.d.ts",
42
- source: "./admin/src/index.ts",
43
- "import": "./dist/admin/index.mjs",
44
- require: "./dist/admin/index.js",
45
- "default": "./dist/admin/index.js"
46
- },
47
- "./strapi-server": {
48
- types: "./dist/server/src/index.d.ts",
49
- source: "./server/src/index.ts",
50
- "import": "./dist/server/index.mjs",
51
- require: "./dist/server/index.js",
52
- "default": "./dist/server/index.js"
53
- },
54
- "./package.json": "./package.json"
24
+ var exports$1 = {
25
+ "./strapi-admin": {
26
+ types: "./dist/admin/src/index.d.ts",
27
+ source: "./admin/src/index.ts",
28
+ "import": "./dist/admin/index.mjs",
29
+ require: "./dist/admin/index.js",
30
+ "default": "./dist/admin/index.js"
31
+ },
32
+ "./strapi-server": {
33
+ types: "./dist/server/src/index.d.ts",
34
+ source: "./server/src/index.ts",
35
+ "import": "./dist/server/index.mjs",
36
+ require: "./dist/server/index.js",
37
+ "default": "./dist/server/index.js"
38
+ },
39
+ "./package.json": "./package.json"
55
40
  };
56
- const files = [
57
- "dist/",
58
- "strapi-server.js"
41
+ var files = [
42
+ "dist/",
43
+ "strapi-server.js"
59
44
  ];
60
- const scripts = {
61
- build: "strapi-plugin build",
62
- clean: "run -T rimraf ./dist",
63
- lint: "run -T eslint .",
64
- watch: "strapi-plugin watch"
45
+ var scripts = {
46
+ build: "run -T npm-run-all clean --parallel build:code build:types",
47
+ "build:code": "run -T rollup -c",
48
+ "build:types": "run -T run-p build:types:server build:types:admin",
49
+ "build:types:server": "run -T tsc -p server/tsconfig.build.json --emitDeclarationOnly",
50
+ "build:types:admin": "run -T tsc -p admin/tsconfig.build.json --emitDeclarationOnly",
51
+ clean: "run -T rimraf ./dist",
52
+ lint: "run -T eslint .",
53
+ watch: "run -T rollup -c -w"
65
54
  };
66
- const dependencies = {
67
- "@apollo/server": "4.11.0",
68
- "@as-integrations/koa": "1.1.1",
69
- "@graphql-tools/schema": "10.0.3",
70
- "@graphql-tools/utils": "^10.1.3",
71
- "@koa/cors": "5.0.0",
72
- "@strapi/design-system": "2.0.0-rc.14",
73
- "@strapi/icons": "2.0.0-rc.14",
74
- "@strapi/utils": "5.8.1",
75
- graphql: "^16.8.1",
76
- "graphql-depth-limit": "^1.1.0",
77
- "graphql-playground-middleware-koa": "^1.6.21",
78
- "graphql-scalars": "1.22.2",
79
- "koa-bodyparser": "4.4.1",
80
- "koa-compose": "^4.1.0",
81
- lodash: "4.17.21",
82
- nexus: "1.3.0",
83
- pluralize: "8.0.0"
55
+ var dependencies = {
56
+ "@apollo/server": "4.11.0",
57
+ "@as-integrations/koa": "1.1.1",
58
+ "@graphql-tools/schema": "10.0.3",
59
+ "@graphql-tools/utils": "^10.1.3",
60
+ "@koa/cors": "5.0.0",
61
+ "@strapi/design-system": "2.0.0-rc.16",
62
+ "@strapi/icons": "2.0.0-rc.16",
63
+ "@strapi/utils": "5.9.0",
64
+ graphql: "^16.8.1",
65
+ "graphql-depth-limit": "^1.1.0",
66
+ "graphql-playground-middleware-koa": "^1.6.21",
67
+ "graphql-scalars": "1.22.2",
68
+ "koa-bodyparser": "4.4.1",
69
+ "koa-compose": "^4.1.0",
70
+ lodash: "4.17.21",
71
+ nexus: "1.3.0",
72
+ pluralize: "8.0.0"
84
73
  };
85
- const devDependencies = {
86
- "@strapi/sdk-plugin": "^5.2.0",
87
- "@strapi/strapi": "5.8.1",
88
- "@strapi/types": "5.8.1",
89
- "@types/graphql-depth-limit": "1.1.5",
90
- "@types/koa-bodyparser": "4.3.12",
91
- "@types/koa__cors": "5.0.0",
92
- "cross-env": "^7.0.3",
93
- "eslint-config-custom": "5.8.1",
94
- koa: "2.15.2",
95
- react: "18.3.1",
96
- "react-dom": "18.3.1",
97
- "react-router-dom": "6.22.3",
98
- "styled-components": "6.1.8",
99
- tsconfig: "5.8.1",
100
- typescript: "5.3.2"
74
+ var devDependencies = {
75
+ "@strapi/strapi": "5.9.0",
76
+ "@strapi/types": "5.9.0",
77
+ "@types/graphql-depth-limit": "1.1.5",
78
+ "@types/koa-bodyparser": "4.3.12",
79
+ "@types/koa__cors": "5.0.0",
80
+ "cross-env": "^7.0.3",
81
+ "eslint-config-custom": "5.9.0",
82
+ koa: "2.15.2",
83
+ react: "18.3.1",
84
+ "react-dom": "18.3.1",
85
+ "react-router-dom": "6.22.3",
86
+ "styled-components": "6.1.8",
87
+ tsconfig: "5.9.0",
88
+ typescript: "5.4.4"
101
89
  };
102
- const peerDependencies = {
103
- "@strapi/strapi": "^5.0.0",
104
- react: "^17.0.0 || ^18.0.0",
105
- "react-dom": "^17.0.0 || ^18.0.0",
106
- "react-router-dom": "^6.0.0",
107
- "styled-components": "^6.0.0"
90
+ var peerDependencies = {
91
+ "@strapi/strapi": "^5.0.0",
92
+ react: "^17.0.0 || ^18.0.0",
93
+ "react-dom": "^17.0.0 || ^18.0.0",
94
+ "react-router-dom": "^6.0.0",
95
+ "styled-components": "^6.0.0"
108
96
  };
109
- const engines = {
110
- node: ">=18.0.0 <=22.x.x",
111
- npm: ">=6.0.0"
97
+ var engines = {
98
+ node: ">=18.0.0 <=22.x.x",
99
+ npm: ">=6.0.0"
112
100
  };
113
- const strapi = {
114
- displayName: "GraphQL",
115
- name: "graphql",
116
- description: "Adds GraphQL endpoint with default API methods.",
117
- kind: "plugin"
101
+ var strapi = {
102
+ displayName: "GraphQL",
103
+ name: "graphql",
104
+ description: "Adds GraphQL endpoint with default API methods.",
105
+ kind: "plugin"
118
106
  };
119
- const pluginPkg = {
120
- name: name$1,
121
- version,
122
- description,
123
- repository,
124
- license,
125
- author,
126
- maintainers,
127
- exports: exports$1,
128
- files,
129
- scripts,
130
- dependencies,
131
- devDependencies,
132
- peerDependencies,
133
- engines,
134
- strapi
107
+ var pluginPkg = {
108
+ name: name$1,
109
+ version: version,
110
+ description: description,
111
+ repository: repository,
112
+ license: license,
113
+ author: author,
114
+ maintainers: maintainers,
115
+ exports: exports$1,
116
+ files: files,
117
+ scripts: scripts,
118
+ dependencies: dependencies,
119
+ devDependencies: devDependencies,
120
+ peerDependencies: peerDependencies,
121
+ engines: engines,
122
+ strapi: strapi
135
123
  };
136
- const pluginId = "graphql";
137
- const prefixPluginTranslations = (trad, pluginId2) => {
138
- return Object.keys(trad).reduce((acc, current) => {
139
- acc[`${pluginId2}.${current}`] = trad[current];
140
- return acc;
141
- }, {});
124
+
125
+ const pluginId = 'graphql';
126
+
127
+ const prefixPluginTranslations = (trad, pluginId)=>{
128
+ return Object.keys(trad).reduce((acc, current)=>{
129
+ acc[`${pluginId}.${current}`] = trad[current];
130
+ return acc;
131
+ }, {});
142
132
  };
133
+
134
+ function __variableDynamicImportRuntime0__(path) {
135
+ switch (path) {
136
+ case './translations/dk.json': return Promise.resolve().then(function () { return require('./chunks/dk-D3k_Atlh.js'); });
137
+ case './translations/en.json': return Promise.resolve().then(function () { return require('./chunks/en-DzY_FEd6.js'); });
138
+ case './translations/es.json': return Promise.resolve().then(function () { return require('./chunks/es-D02rvX4A.js'); });
139
+ case './translations/fr.json': return Promise.resolve().then(function () { return require('./chunks/fr-D9dcL-gU.js'); });
140
+ case './translations/pl.json': return Promise.resolve().then(function () { return require('./chunks/pl-DRSWvr2y.js'); });
141
+ case './translations/ru.json': return Promise.resolve().then(function () { return require('./chunks/ru-zDn7cu6t.js'); });
142
+ case './translations/sv.json': return Promise.resolve().then(function () { return require('./chunks/sv-Dq2aVH0_.js'); });
143
+ case './translations/tr.json': return Promise.resolve().then(function () { return require('./chunks/tr-B0yEuVnS.js'); });
144
+ case './translations/zh-Hans.json': return Promise.resolve().then(function () { return require('./chunks/zh-Hans-DxlDvlSo.js'); });
145
+ case './translations/zh.json': return Promise.resolve().then(function () { return require('./chunks/zh-BkiTjJnf.js'); });
146
+ default: return new Promise(function(resolve, reject) {
147
+ (typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
148
+ reject.bind(null, new Error("Unknown variable dynamic import: " + path))
149
+ );
150
+ })
151
+ }
152
+ }
143
153
  const name = pluginPkg.strapi.name;
144
- const index = {
145
- // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.
146
- register(app) {
147
- app.registerPlugin({
148
- id: pluginId,
149
- name
150
- });
151
- },
152
- bootstrap() {
153
- },
154
- async registerTrads({ locales }) {
155
- const importedTrads = await Promise.all(
156
- locales.map((locale) => {
157
- return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => Promise.resolve().then(() => require("../_chunks/dk-C9NcSzyg.js")), "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-BiKpmhCU.js")), "./translations/es.json": () => Promise.resolve().then(() => require("../_chunks/es-DE22V9D4.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("../_chunks/fr-Ca-HowfR.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("../_chunks/pl-DVnJGR87.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("../_chunks/ru-o4zaP02C.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("../_chunks/sv-9qK4y9fb.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("../_chunks/tr-fBBDNMBY.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("../_chunks/zh-Hans-Btuz6Y7W.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("../_chunks/zh-CyCKPuL0.js")) }), `./translations/${locale}.json`, 3).then(({ default: data }) => {
158
- return {
159
- data: prefixPluginTranslations(data, pluginId),
160
- locale
161
- };
162
- }).catch(() => {
163
- return {
164
- data: {},
165
- locale
166
- };
154
+ // eslint-disable-next-line import/no-default-export
155
+ var index = {
156
+ // TODO: we need to have the type for StrapiApp done from `@strapi/admin` package.
157
+ register (app) {
158
+ app.registerPlugin({
159
+ id: pluginId,
160
+ name
167
161
  });
168
- })
169
- );
170
- return Promise.resolve(importedTrads);
171
- }
162
+ },
163
+ bootstrap () {},
164
+ async registerTrads ({ locales }) {
165
+ const importedTrads = await Promise.all(locales.map((locale)=>{
166
+ return __variableDynamicImportRuntime0__(`./translations/${locale}.json`).then(({ default: data })=>{
167
+ return {
168
+ data: prefixPluginTranslations(data, pluginId),
169
+ locale
170
+ };
171
+ }).catch(()=>{
172
+ return {
173
+ data: {},
174
+ locale
175
+ };
176
+ });
177
+ }));
178
+ return Promise.resolve(importedTrads);
179
+ }
172
180
  };
181
+
173
182
  module.exports = index;
183
+ //# sourceMappingURL=index.js.map