@strapi/plugin-graphql 4.3.0 → 4.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-graphql",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "Adds GraphQL endpoint with default API methods.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,9 +30,9 @@
30
30
  "@apollo/federation": "^0.28.0",
31
31
  "@graphql-tools/schema": "8.1.2",
32
32
  "@graphql-tools/utils": "^8.0.2",
33
- "@strapi/utils": "4.3.0",
33
+ "@strapi/utils": "4.3.2",
34
34
  "apollo-server-core": "3.1.2",
35
- "apollo-server-koa": "3.1.2",
35
+ "apollo-server-koa": "3.10.0",
36
36
  "glob": "^7.1.7",
37
37
  "graphql": "^15.5.1",
38
38
  "graphql-depth-limit": "^1.1.0",
@@ -64,5 +64,5 @@
64
64
  "description": "Adds GraphQL endpoint with default API methods.",
65
65
  "kind": "plugin"
66
66
  },
67
- "gitHead": "74a2b908df75bc8001d72f9dc8571c4b7a2da337"
67
+ "gitHead": "7039c0d22836c94457130515b3a55eb93d2411f8"
68
68
  }
@@ -110,6 +110,9 @@ module.exports = async ({ strapi }) => {
110
110
  },
111
111
  };
112
112
 
113
+ // allow graphql playground to load without authentication
114
+ if (ctx.request.method === 'GET') return next();
115
+
113
116
  return strapi.auth.authenticate(ctx, next);
114
117
  },
115
118
 
@@ -3,7 +3,7 @@
3
3
  const { Kind, valueFromASTUntyped } = require('graphql');
4
4
  const { omit } = require('lodash/fp');
5
5
  const { unionType, scalarType } = require('nexus');
6
- const { ApplicationError } = require('@strapi/utils');
6
+ const { ApplicationError } = require('@strapi/utils').errors;
7
7
 
8
8
  module.exports = ({ strapi }) => {
9
9
  const buildTypeDefinition = (name, components) => {