@vendure/harden-plugin 3.8.1-master-202610220213 → 3.8.1

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.
@@ -4,9 +4,8 @@ import { ApolloServerPlugin, GraphQLRequestListener } from '@apollo/server';
4
4
  * Hides graphql-js suggestions when invalid field names are given.
5
5
  * Based on ideas discussed in https://github.com/apollographql/apollo-server/issues/3919
6
6
  *
7
- * The suggestion is replaced with a bare "Invalid request" error rather than just having its
8
- * message rewritten, because the whole error is a disclosure risk: `extensions` carries a
9
- * stack trace whenever the server is not running with `NODE_ENV=production`.
7
+ * The whole error is replaced with a bare "Invalid request" error, so that none of its other
8
+ * fields (`locations`, `extensions`) reach the client either.
10
9
  */
11
10
  export declare class HideValidationErrorsPlugin implements ApolloServerPlugin {
12
11
  requestDidStart(): Promise<GraphQLRequestListener<any>>;
@@ -6,9 +6,8 @@ exports.HideValidationErrorsPlugin = void 0;
6
6
  * Hides graphql-js suggestions when invalid field names are given.
7
7
  * Based on ideas discussed in https://github.com/apollographql/apollo-server/issues/3919
8
8
  *
9
- * The suggestion is replaced with a bare "Invalid request" error rather than just having its
10
- * message rewritten, because the whole error is a disclosure risk: `extensions` carries a
11
- * stack trace whenever the server is not running with `NODE_ENV=production`.
9
+ * The whole error is replaced with a bare "Invalid request" error, so that none of its other
10
+ * fields (`locations`, `extensions`) reach the client either.
12
11
  */
13
12
  class HideValidationErrorsPlugin {
14
13
  async requestDidStart() {
@@ -1 +1 @@
1
- {"version":3,"file":"hide-validation-errors-plugin.js","sourceRoot":"","sources":["../../../src/middleware/hide-validation-errors-plugin.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACH,MAAa,0BAA0B;IACnC,KAAK,CAAC,eAAe;QACjB,OAAO;YACH,gBAAgB,EAAE,KAAK,EAAC,cAAc,EAAC,EAAE;gBACrC,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,QAAQ,CAAC;gBACzC,8EAA8E;gBAC9E,gEAAgE;gBAChE,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;oBACtD,OAAO;gBACX,CAAC;gBACD,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAC5D,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;oBAClC,CAAC,CAAE,EAAE,OAAO,EAAE,iBAAiB,EAA4B;oBAC3D,CAAC,CAAC,KAAK,CACd,CAAC;YACN,CAAC;SACJ,CAAC;IACN,CAAC;CACJ;AAlBD,gEAkBC"}
1
+ {"version":3,"file":"hide-validation-errors-plugin.js","sourceRoot":"","sources":["../../../src/middleware/hide-validation-errors-plugin.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACH,MAAa,0BAA0B;IACnC,KAAK,CAAC,eAAe;QACjB,OAAO;YACH,gBAAgB,EAAE,KAAK,EAAC,cAAc,EAAC,EAAE;gBACrC,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,QAAQ,CAAC;gBACzC,8EAA8E;gBAC9E,gEAAgE;gBAChE,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;oBACtD,OAAO;gBACX,CAAC;gBACD,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAC5D,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;oBAClC,CAAC,CAAE,EAAE,OAAO,EAAE,iBAAiB,EAA4B;oBAC3D,CAAC,CAAC,KAAK,CACd,CAAC;YACN,CAAC;SACJ,CAAC;IACN,CAAC;CACJ;AAlBD,gEAkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/harden-plugin",
3
- "version": "3.8.1-master-202610220213",
3
+ "version": "3.8.1",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "@apollo/server": "^5.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@vendure/common": "^3.8.1-master-202610220213",
34
- "@vendure/core": "^3.8.1-master-202610220213"
33
+ "@vendure/common": "3.8.1",
34
+ "@vendure/core": "3.8.1"
35
35
  }
36
36
  }