@strapi/plugin-graphql 5.4.0 → 5.4.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/admin/index.js +8 -8
- package/dist/admin/index.mjs +8 -8
- package/dist/server/index.js +4 -4
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +4 -4
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/services/builders/filters/content-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/input.d.ts.map +1 -1
- package/package.json +9 -9
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.4.
|
|
12
|
+
const version = "5.4.1";
|
|
13
13
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
14
14
|
const repository = {
|
|
15
15
|
type: "git",
|
|
@@ -62,9 +62,9 @@ const dependencies = {
|
|
|
62
62
|
"@graphql-tools/schema": "10.0.3",
|
|
63
63
|
"@graphql-tools/utils": "^10.1.3",
|
|
64
64
|
"@koa/cors": "5.0.0",
|
|
65
|
-
"@strapi/design-system": "2.0.0-rc.
|
|
66
|
-
"@strapi/icons": "2.0.0-rc.
|
|
67
|
-
"@strapi/utils": "5.4.
|
|
65
|
+
"@strapi/design-system": "2.0.0-rc.13",
|
|
66
|
+
"@strapi/icons": "2.0.0-rc.13",
|
|
67
|
+
"@strapi/utils": "5.4.1",
|
|
68
68
|
graphql: "^16.8.1",
|
|
69
69
|
"graphql-depth-limit": "^1.1.0",
|
|
70
70
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -77,19 +77,19 @@ const dependencies = {
|
|
|
77
77
|
};
|
|
78
78
|
const devDependencies = {
|
|
79
79
|
"@strapi/sdk-plugin": "^5.0.0",
|
|
80
|
-
"@strapi/strapi": "5.4.
|
|
81
|
-
"@strapi/types": "5.4.
|
|
80
|
+
"@strapi/strapi": "5.4.1",
|
|
81
|
+
"@strapi/types": "5.4.1",
|
|
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": "5.4.
|
|
86
|
+
"eslint-config-custom": "5.4.1",
|
|
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: "5.4.
|
|
92
|
+
tsconfig: "5.4.1",
|
|
93
93
|
typescript: "5.3.2"
|
|
94
94
|
};
|
|
95
95
|
const peerDependencies = {
|
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.4.
|
|
11
|
+
const version = "5.4.1";
|
|
12
12
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
13
13
|
const repository = {
|
|
14
14
|
type: "git",
|
|
@@ -61,9 +61,9 @@ const dependencies = {
|
|
|
61
61
|
"@graphql-tools/schema": "10.0.3",
|
|
62
62
|
"@graphql-tools/utils": "^10.1.3",
|
|
63
63
|
"@koa/cors": "5.0.0",
|
|
64
|
-
"@strapi/design-system": "2.0.0-rc.
|
|
65
|
-
"@strapi/icons": "2.0.0-rc.
|
|
66
|
-
"@strapi/utils": "5.4.
|
|
64
|
+
"@strapi/design-system": "2.0.0-rc.13",
|
|
65
|
+
"@strapi/icons": "2.0.0-rc.13",
|
|
66
|
+
"@strapi/utils": "5.4.1",
|
|
67
67
|
graphql: "^16.8.1",
|
|
68
68
|
"graphql-depth-limit": "^1.1.0",
|
|
69
69
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -76,19 +76,19 @@ const dependencies = {
|
|
|
76
76
|
};
|
|
77
77
|
const devDependencies = {
|
|
78
78
|
"@strapi/sdk-plugin": "^5.0.0",
|
|
79
|
-
"@strapi/strapi": "5.4.
|
|
80
|
-
"@strapi/types": "5.4.
|
|
79
|
+
"@strapi/strapi": "5.4.1",
|
|
80
|
+
"@strapi/types": "5.4.1",
|
|
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": "5.4.
|
|
85
|
+
"eslint-config-custom": "5.4.1",
|
|
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: "5.4.
|
|
91
|
+
tsconfig: "5.4.1",
|
|
92
92
|
typescript: "5.3.2"
|
|
93
93
|
};
|
|
94
94
|
const peerDependencies = {
|
package/dist/server/index.js
CHANGED
|
@@ -2269,7 +2269,7 @@ const contentType = ({ strapi: strapi2 }) => {
|
|
|
2269
2269
|
return nexus.inputObjectType({
|
|
2270
2270
|
name: filtersTypeName,
|
|
2271
2271
|
definition(t) {
|
|
2272
|
-
const validAttributes = Object.entries(attributes2).filter(
|
|
2272
|
+
const validAttributes = Object.entries(attributes2).filter(([attributeName]) => !utils$2.contentTypes.isPrivateAttribute(contentType2, attributeName)).filter(
|
|
2273
2273
|
([attributeName]) => extension.shadowCRUD(contentType2.uid).field(attributeName).hasFiltersEnabeld()
|
|
2274
2274
|
);
|
|
2275
2275
|
const isIDFilterEnabled = extension.shadowCRUD(contentType2.uid).field("documentId").hasFiltersEnabeld();
|
|
@@ -2322,9 +2322,9 @@ const inputs = ({ strapi: strapi2 }) => {
|
|
|
2322
2322
|
const isFieldEnabled = (fieldName) => {
|
|
2323
2323
|
return extension.shadowCRUD(contentType2.uid).field(fieldName).hasInputEnabled();
|
|
2324
2324
|
};
|
|
2325
|
-
const validAttributes = Object.entries(attributes22).filter(
|
|
2326
|
-
|
|
2327
|
-
|
|
2325
|
+
const validAttributes = Object.entries(attributes22).filter(
|
|
2326
|
+
([attributeName]) => !utils$2.contentTypes.isPrivateAttribute(contentType2, attributeName)
|
|
2327
|
+
).filter(([attributeName]) => isWritableAttribute(contentType2, attributeName)).filter(([attributeName]) => isFieldEnabled(attributeName));
|
|
2328
2328
|
if (modelType === "component" && isFieldEnabled("id")) {
|
|
2329
2329
|
t.id("id");
|
|
2330
2330
|
}
|