@strapi/plugin-graphql 5.7.0 → 5.8.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.
- package/dist/admin/index.js +6 -6
- package/dist/admin/index.mjs +6 -6
- package/dist/server/index.js +63 -12
- package/dist/server/index.mjs +64 -13
- package/dist/server/src/bootstrap.d.ts +2 -0
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +1 -0
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +1 -0
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/index.d.ts +1 -0
- package/dist/server/src/services/utils/index.d.ts.map +1 -1
- package/dist/server/src/services/utils/playground.d.ts +1 -0
- package/dist/server/src/services/utils/playground.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/admin/index.js
CHANGED
|
@@ -16,7 +16,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
const name$1 = "@strapi/plugin-graphql";
|
|
19
|
-
const version = "5.
|
|
19
|
+
const version = "5.7.0";
|
|
20
20
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
21
21
|
const repository = {
|
|
22
22
|
type: "git",
|
|
@@ -71,7 +71,7 @@ const dependencies = {
|
|
|
71
71
|
"@koa/cors": "5.0.0",
|
|
72
72
|
"@strapi/design-system": "2.0.0-rc.14",
|
|
73
73
|
"@strapi/icons": "2.0.0-rc.14",
|
|
74
|
-
"@strapi/utils": "5.
|
|
74
|
+
"@strapi/utils": "5.7.0",
|
|
75
75
|
graphql: "^16.8.1",
|
|
76
76
|
"graphql-depth-limit": "^1.1.0",
|
|
77
77
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -84,19 +84,19 @@ const dependencies = {
|
|
|
84
84
|
};
|
|
85
85
|
const devDependencies = {
|
|
86
86
|
"@strapi/sdk-plugin": "^5.2.0",
|
|
87
|
-
"@strapi/strapi": "5.
|
|
88
|
-
"@strapi/types": "5.
|
|
87
|
+
"@strapi/strapi": "5.7.0",
|
|
88
|
+
"@strapi/types": "5.7.0",
|
|
89
89
|
"@types/graphql-depth-limit": "1.1.5",
|
|
90
90
|
"@types/koa-bodyparser": "4.3.12",
|
|
91
91
|
"@types/koa__cors": "5.0.0",
|
|
92
92
|
"cross-env": "^7.0.3",
|
|
93
|
-
"eslint-config-custom": "5.
|
|
93
|
+
"eslint-config-custom": "5.7.0",
|
|
94
94
|
koa: "2.15.2",
|
|
95
95
|
react: "18.3.1",
|
|
96
96
|
"react-dom": "18.3.1",
|
|
97
97
|
"react-router-dom": "6.22.3",
|
|
98
98
|
"styled-components": "6.1.8",
|
|
99
|
-
tsconfig: "5.
|
|
99
|
+
tsconfig: "5.7.0",
|
|
100
100
|
typescript: "5.3.2"
|
|
101
101
|
};
|
|
102
102
|
const peerDependencies = {
|
package/dist/admin/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
const name$1 = "@strapi/plugin-graphql";
|
|
18
|
-
const version = "5.
|
|
18
|
+
const version = "5.7.0";
|
|
19
19
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
20
20
|
const repository = {
|
|
21
21
|
type: "git",
|
|
@@ -70,7 +70,7 @@ const dependencies = {
|
|
|
70
70
|
"@koa/cors": "5.0.0",
|
|
71
71
|
"@strapi/design-system": "2.0.0-rc.14",
|
|
72
72
|
"@strapi/icons": "2.0.0-rc.14",
|
|
73
|
-
"@strapi/utils": "5.
|
|
73
|
+
"@strapi/utils": "5.7.0",
|
|
74
74
|
graphql: "^16.8.1",
|
|
75
75
|
"graphql-depth-limit": "^1.1.0",
|
|
76
76
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -83,19 +83,19 @@ const dependencies = {
|
|
|
83
83
|
};
|
|
84
84
|
const devDependencies = {
|
|
85
85
|
"@strapi/sdk-plugin": "^5.2.0",
|
|
86
|
-
"@strapi/strapi": "5.
|
|
87
|
-
"@strapi/types": "5.
|
|
86
|
+
"@strapi/strapi": "5.7.0",
|
|
87
|
+
"@strapi/types": "5.7.0",
|
|
88
88
|
"@types/graphql-depth-limit": "1.1.5",
|
|
89
89
|
"@types/koa-bodyparser": "4.3.12",
|
|
90
90
|
"@types/koa__cors": "5.0.0",
|
|
91
91
|
"cross-env": "^7.0.3",
|
|
92
|
-
"eslint-config-custom": "5.
|
|
92
|
+
"eslint-config-custom": "5.7.0",
|
|
93
93
|
koa: "2.15.2",
|
|
94
94
|
react: "18.3.1",
|
|
95
95
|
"react-dom": "18.3.1",
|
|
96
96
|
"react-router-dom": "6.22.3",
|
|
97
97
|
"styled-components": "6.1.8",
|
|
98
|
-
tsconfig: "5.
|
|
98
|
+
tsconfig: "5.7.0",
|
|
99
99
|
typescript: "5.3.2"
|
|
100
100
|
};
|
|
101
101
|
const peerDependencies = {
|
package/dist/server/index.js
CHANGED
|
@@ -94,6 +94,61 @@ const merge = fp.mergeWith((a, b) => {
|
|
|
94
94
|
return a.concat(b);
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
+
const determineLandingPage = (strapi2) => {
|
|
98
|
+
const { config: config2 } = strapi2.plugin("graphql");
|
|
99
|
+
const utils2 = strapi2.plugin("graphql").service("utils");
|
|
100
|
+
const configLandingPage = config2("landingPage");
|
|
101
|
+
const isProduction = process.env.NODE_ENV === "production";
|
|
102
|
+
const localLanding = () => {
|
|
103
|
+
strapi2.log.debug("Apollo landing page: local");
|
|
104
|
+
utils2.playground.setEnabled(true);
|
|
105
|
+
return _default.ApolloServerPluginLandingPageLocalDefault();
|
|
106
|
+
};
|
|
107
|
+
const prodLanding = () => {
|
|
108
|
+
strapi2.log.debug("Apollo landing page: production");
|
|
109
|
+
utils2.playground.setEnabled(false);
|
|
110
|
+
return _default.ApolloServerPluginLandingPageProductionDefault();
|
|
111
|
+
};
|
|
112
|
+
const userLanding = (userFunction) => {
|
|
113
|
+
strapi2.log.debug("Apollo landing page: from user-defined function...");
|
|
114
|
+
const result = userFunction(strapi2);
|
|
115
|
+
if (result === true) {
|
|
116
|
+
return localLanding();
|
|
117
|
+
}
|
|
118
|
+
if (result === false) {
|
|
119
|
+
return prodLanding();
|
|
120
|
+
}
|
|
121
|
+
strapi2.log.debug("Apollo landing page: user-defined");
|
|
122
|
+
return result;
|
|
123
|
+
};
|
|
124
|
+
const playgroundAlways = config2("playgroundAlways");
|
|
125
|
+
if (playgroundAlways !== void 0) {
|
|
126
|
+
strapi2.log.warn(
|
|
127
|
+
"The graphql config playgroundAlways is deprecated. This will be removed in Strapi 6. Please use landingPage instead. "
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
if (playgroundAlways === false) {
|
|
131
|
+
strapi2.log.warn(
|
|
132
|
+
"graphql config playgroundAlways:false has no effect, please use landingPage:false to disable Graphql Playground in all environments"
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
if (playgroundAlways || configLandingPage === true) {
|
|
136
|
+
return localLanding();
|
|
137
|
+
}
|
|
138
|
+
if (configLandingPage === false) {
|
|
139
|
+
return prodLanding();
|
|
140
|
+
}
|
|
141
|
+
if (configLandingPage === void 0) {
|
|
142
|
+
return isProduction ? prodLanding() : localLanding();
|
|
143
|
+
}
|
|
144
|
+
if (fp.isFunction(configLandingPage)) {
|
|
145
|
+
return userLanding(configLandingPage);
|
|
146
|
+
}
|
|
147
|
+
strapi2.log.warn(
|
|
148
|
+
"Your Graphql landing page has been disabled because there is a problem with your Graphql settings"
|
|
149
|
+
);
|
|
150
|
+
return prodLanding();
|
|
151
|
+
};
|
|
97
152
|
async function bootstrap({ strapi: strapi2 }) {
|
|
98
153
|
const schema = strapi2.plugin("graphql").service("content-api").buildSchema();
|
|
99
154
|
if (fp.isEmpty(schema)) {
|
|
@@ -102,15 +157,7 @@ async function bootstrap({ strapi: strapi2 }) {
|
|
|
102
157
|
}
|
|
103
158
|
const { config: config2 } = strapi2.plugin("graphql");
|
|
104
159
|
const path = config2("endpoint");
|
|
105
|
-
const
|
|
106
|
-
let landingPage;
|
|
107
|
-
if (playgroundEnabled) {
|
|
108
|
-
landingPage = _default.ApolloServerPluginLandingPageLocalDefault();
|
|
109
|
-
strapi2.log.debug("Using Apollo sandbox landing page");
|
|
110
|
-
} else {
|
|
111
|
-
landingPage = _default.ApolloServerPluginLandingPageProductionDefault();
|
|
112
|
-
strapi2.log.debug("Using Apollo production landing page");
|
|
113
|
-
}
|
|
160
|
+
const landingPage = determineLandingPage(strapi2);
|
|
114
161
|
const defaultServerConfig = {
|
|
115
162
|
// Schema
|
|
116
163
|
schema,
|
|
@@ -159,7 +206,7 @@ async function bootstrap({ strapi: strapi2 }) {
|
|
|
159
206
|
}
|
|
160
207
|
};
|
|
161
208
|
const isPlaygroundRequest = ctx.request.method === "GET" && ctx.request.url === path && // Matches the GraphQL endpoint
|
|
162
|
-
|
|
209
|
+
strapi2.plugin("graphql").service("utils").playground.isEnabled() && // Only allow if the Playground is enabled
|
|
163
210
|
ctx.request.header.accept?.includes("text/html");
|
|
164
211
|
if (isPlaygroundRequest) {
|
|
165
212
|
return next();
|
|
@@ -1022,14 +1069,18 @@ const naming = ({ strapi: strapi2 }) => {
|
|
|
1022
1069
|
};
|
|
1023
1070
|
};
|
|
1024
1071
|
const playground = (ctx) => {
|
|
1072
|
+
let enabled = false;
|
|
1025
1073
|
return {
|
|
1074
|
+
setEnabled(val) {
|
|
1075
|
+
enabled = val;
|
|
1076
|
+
},
|
|
1026
1077
|
isEnabled() {
|
|
1027
|
-
return
|
|
1078
|
+
return enabled;
|
|
1028
1079
|
}
|
|
1029
1080
|
};
|
|
1030
1081
|
};
|
|
1031
1082
|
const utils$1 = (context) => ({
|
|
1032
|
-
playground: playground(
|
|
1083
|
+
playground: playground(),
|
|
1033
1084
|
naming: naming(context),
|
|
1034
1085
|
attributes: attributes(context),
|
|
1035
1086
|
mappers: mappers(context)
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isEmpty, toUpper, snakeCase, pick, mergeWith, isArray, isObject, propOr, get, getOr, first,
|
|
1
|
+
import { isEmpty, toUpper, snakeCase, pick, mergeWith, isArray, isObject, isFunction, propOr, get, getOr, first, isNil, prop, startsWith, difference, propEq, isDate, has, mapValues, map, upperFirst, camelCase, pipe, lowerFirst, set, omit, identity, constant, isUndefined, isString, defaultTo, entries, reduce, merge as merge$1 } from "lodash/fp";
|
|
2
2
|
import { ApolloServer } from "@apollo/server";
|
|
3
3
|
import { ApolloServerPluginLandingPageLocalDefault, ApolloServerPluginLandingPageProductionDefault } from "@apollo/server/plugin/landingPage/default";
|
|
4
4
|
import { koaMiddleware } from "@as-integrations/koa";
|
|
@@ -72,6 +72,61 @@ const merge = mergeWith((a, b) => {
|
|
|
72
72
|
return a.concat(b);
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
+
const determineLandingPage = (strapi2) => {
|
|
76
|
+
const { config: config2 } = strapi2.plugin("graphql");
|
|
77
|
+
const utils2 = strapi2.plugin("graphql").service("utils");
|
|
78
|
+
const configLandingPage = config2("landingPage");
|
|
79
|
+
const isProduction = process.env.NODE_ENV === "production";
|
|
80
|
+
const localLanding = () => {
|
|
81
|
+
strapi2.log.debug("Apollo landing page: local");
|
|
82
|
+
utils2.playground.setEnabled(true);
|
|
83
|
+
return ApolloServerPluginLandingPageLocalDefault();
|
|
84
|
+
};
|
|
85
|
+
const prodLanding = () => {
|
|
86
|
+
strapi2.log.debug("Apollo landing page: production");
|
|
87
|
+
utils2.playground.setEnabled(false);
|
|
88
|
+
return ApolloServerPluginLandingPageProductionDefault();
|
|
89
|
+
};
|
|
90
|
+
const userLanding = (userFunction) => {
|
|
91
|
+
strapi2.log.debug("Apollo landing page: from user-defined function...");
|
|
92
|
+
const result = userFunction(strapi2);
|
|
93
|
+
if (result === true) {
|
|
94
|
+
return localLanding();
|
|
95
|
+
}
|
|
96
|
+
if (result === false) {
|
|
97
|
+
return prodLanding();
|
|
98
|
+
}
|
|
99
|
+
strapi2.log.debug("Apollo landing page: user-defined");
|
|
100
|
+
return result;
|
|
101
|
+
};
|
|
102
|
+
const playgroundAlways = config2("playgroundAlways");
|
|
103
|
+
if (playgroundAlways !== void 0) {
|
|
104
|
+
strapi2.log.warn(
|
|
105
|
+
"The graphql config playgroundAlways is deprecated. This will be removed in Strapi 6. Please use landingPage instead. "
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
if (playgroundAlways === false) {
|
|
109
|
+
strapi2.log.warn(
|
|
110
|
+
"graphql config playgroundAlways:false has no effect, please use landingPage:false to disable Graphql Playground in all environments"
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
if (playgroundAlways || configLandingPage === true) {
|
|
114
|
+
return localLanding();
|
|
115
|
+
}
|
|
116
|
+
if (configLandingPage === false) {
|
|
117
|
+
return prodLanding();
|
|
118
|
+
}
|
|
119
|
+
if (configLandingPage === void 0) {
|
|
120
|
+
return isProduction ? prodLanding() : localLanding();
|
|
121
|
+
}
|
|
122
|
+
if (isFunction(configLandingPage)) {
|
|
123
|
+
return userLanding(configLandingPage);
|
|
124
|
+
}
|
|
125
|
+
strapi2.log.warn(
|
|
126
|
+
"Your Graphql landing page has been disabled because there is a problem with your Graphql settings"
|
|
127
|
+
);
|
|
128
|
+
return prodLanding();
|
|
129
|
+
};
|
|
75
130
|
async function bootstrap({ strapi: strapi2 }) {
|
|
76
131
|
const schema = strapi2.plugin("graphql").service("content-api").buildSchema();
|
|
77
132
|
if (isEmpty(schema)) {
|
|
@@ -80,15 +135,7 @@ async function bootstrap({ strapi: strapi2 }) {
|
|
|
80
135
|
}
|
|
81
136
|
const { config: config2 } = strapi2.plugin("graphql");
|
|
82
137
|
const path = config2("endpoint");
|
|
83
|
-
const
|
|
84
|
-
let landingPage;
|
|
85
|
-
if (playgroundEnabled) {
|
|
86
|
-
landingPage = ApolloServerPluginLandingPageLocalDefault();
|
|
87
|
-
strapi2.log.debug("Using Apollo sandbox landing page");
|
|
88
|
-
} else {
|
|
89
|
-
landingPage = ApolloServerPluginLandingPageProductionDefault();
|
|
90
|
-
strapi2.log.debug("Using Apollo production landing page");
|
|
91
|
-
}
|
|
138
|
+
const landingPage = determineLandingPage(strapi2);
|
|
92
139
|
const defaultServerConfig = {
|
|
93
140
|
// Schema
|
|
94
141
|
schema,
|
|
@@ -137,7 +184,7 @@ async function bootstrap({ strapi: strapi2 }) {
|
|
|
137
184
|
}
|
|
138
185
|
};
|
|
139
186
|
const isPlaygroundRequest = ctx.request.method === "GET" && ctx.request.url === path && // Matches the GraphQL endpoint
|
|
140
|
-
|
|
187
|
+
strapi2.plugin("graphql").service("utils").playground.isEnabled() && // Only allow if the Playground is enabled
|
|
141
188
|
ctx.request.header.accept?.includes("text/html");
|
|
142
189
|
if (isPlaygroundRequest) {
|
|
143
190
|
return next();
|
|
@@ -1000,14 +1047,18 @@ const naming = ({ strapi: strapi2 }) => {
|
|
|
1000
1047
|
};
|
|
1001
1048
|
};
|
|
1002
1049
|
const playground = (ctx) => {
|
|
1050
|
+
let enabled = false;
|
|
1003
1051
|
return {
|
|
1052
|
+
setEnabled(val) {
|
|
1053
|
+
enabled = val;
|
|
1054
|
+
},
|
|
1004
1055
|
isEnabled() {
|
|
1005
|
-
return
|
|
1056
|
+
return enabled;
|
|
1006
1057
|
}
|
|
1007
1058
|
};
|
|
1008
1059
|
};
|
|
1009
1060
|
const utils$1 = (context) => ({
|
|
1010
|
-
playground: playground(
|
|
1061
|
+
playground: playground(),
|
|
1011
1062
|
naming: naming(context),
|
|
1012
1063
|
attributes: attributes(context),
|
|
1013
1064
|
mappers: mappers(context)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type ApolloServerPlugin } from '@apollo/server';
|
|
1
2
|
import type { Core } from '@strapi/types';
|
|
3
|
+
export declare const determineLandingPage: (strapi: Core.Strapi) => ApolloServerPlugin<import("@apollo/server").BaseContext>;
|
|
2
4
|
export declare function bootstrap({ strapi }: {
|
|
3
5
|
strapi: Core.Strapi;
|
|
4
6
|
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,kBAAkB,EAA4B,MAAM,gBAAgB,CAAC;AAUjG,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAW1C,eAAO,MAAM,oBAAoB,WAAY,KAAK,MAAM,6DA8EvD,CAAC;AAEF,wBAAsB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAA;CAAE,iBAmIlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGxC,wBAIE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;kCAEf,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;kCAEf,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAhC,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/playground.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/utils/playground.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;8BAKd,OAAO;oBAIR,OAAO;;;AAJ3B,wBAWE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-graphql",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
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.14",
|
|
57
57
|
"@strapi/icons": "2.0.0-rc.14",
|
|
58
|
-
"@strapi/utils": "5.
|
|
58
|
+
"@strapi/utils": "5.8.0",
|
|
59
59
|
"graphql": "^16.8.1",
|
|
60
60
|
"graphql-depth-limit": "^1.1.0",
|
|
61
61
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@strapi/sdk-plugin": "^5.2.0",
|
|
71
|
-
"@strapi/strapi": "5.
|
|
72
|
-
"@strapi/types": "5.
|
|
71
|
+
"@strapi/strapi": "5.8.0",
|
|
72
|
+
"@strapi/types": "5.8.0",
|
|
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.8.0",
|
|
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.8.0",
|
|
84
84
|
"typescript": "5.3.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|