@graphql-hive/plugin-aws-sigv4 2.0.18-alpha-a69b74c48c6a7d8294831613ec05d8c8e3e927f4 → 2.0.18-alpha-72326c1ac3611e9847ef422444beb9c62ec618b1

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/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @graphql-hive/plugin-aws-sigv4
2
2
 
3
- ## 2.0.18-alpha-a69b74c48c6a7d8294831613ec05d8c8e3e927f4
3
+ ## 2.0.18-alpha-72326c1ac3611e9847ef422444beb9c62ec618b1
4
4
  ### Patch Changes
5
5
 
6
6
  - Updated dependencies [[`bc6cddd`](https://github.com/graphql-hive/gateway/commit/bc6cddd1c53a012dd02a1d8a7217a28e65cc6ae9)]:
7
- - @graphql-mesh/fusion-runtime@1.6.0-alpha-a69b74c48c6a7d8294831613ec05d8c8e3e927f4
7
+ - @graphql-mesh/fusion-runtime@1.6.0-alpha-72326c1ac3611e9847ef422444beb9c62ec618b1
8
8
 
9
9
  ## 2.0.17
10
10
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -35,7 +35,6 @@ const possibleGraphQLErrorProperties = [
35
35
  'name',
36
36
  'stack',
37
37
  'extensions',
38
- 'coordinate',
39
38
  ];
40
39
  function isGraphQLErrorLike(error) {
41
40
  return (error != null &&
@@ -48,17 +47,10 @@ function createGraphQLError(message, options) {
48
47
  isGraphQLErrorLike(options.originalError)) {
49
48
  options.originalError = createGraphQLError(options.originalError.message, options.originalError);
50
49
  }
51
- // To avoid type error on graphql <16, we have to use an any type here
52
- const Constructor = graphql.GraphQLError;
53
- const error = graphql.versionInfo.major >= 16
54
- ? new Constructor(message, options)
55
- : new Constructor(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
56
- if (options?.coordinate && error.coordinate == null) {
57
- Object.defineProperties(error, {
58
- coordinate: { value: options.coordinate, enumerable: true, configurable: true },
59
- });
50
+ if (graphql.versionInfo.major >= 17) {
51
+ return new graphql.GraphQLError(message, options);
60
52
  }
61
- return error;
53
+ return new graphql.GraphQLError(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
62
54
  }
63
55
 
64
56
  var AWSSignV4Headers = /* @__PURE__ */ ((AWSSignV4Headers2) => {
package/dist/index.js CHANGED
@@ -29,7 +29,6 @@ const possibleGraphQLErrorProperties = [
29
29
  'name',
30
30
  'stack',
31
31
  'extensions',
32
- 'coordinate',
33
32
  ];
34
33
  function isGraphQLErrorLike(error) {
35
34
  return (error != null &&
@@ -42,17 +41,10 @@ function createGraphQLError(message, options) {
42
41
  isGraphQLErrorLike(options.originalError)) {
43
42
  options.originalError = createGraphQLError(options.originalError.message, options.originalError);
44
43
  }
45
- // To avoid type error on graphql <16, we have to use an any type here
46
- const Constructor = GraphQLError;
47
- const error = versionInfo.major >= 16
48
- ? new Constructor(message, options)
49
- : new Constructor(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
50
- if (options?.coordinate && error.coordinate == null) {
51
- Object.defineProperties(error, {
52
- coordinate: { value: options.coordinate, enumerable: true, configurable: true },
53
- });
44
+ if (versionInfo.major >= 17) {
45
+ return new GraphQLError(message, options);
54
46
  }
55
- return error;
47
+ return new GraphQLError(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
56
48
  }
57
49
 
58
50
  var AWSSignV4Headers = /* @__PURE__ */ ((AWSSignV4Headers2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/plugin-aws-sigv4",
3
- "version": "2.0.18-alpha-a69b74c48c6a7d8294831613ec05d8c8e3e927f4",
3
+ "version": "2.0.18-alpha-72326c1ac3611e9847ef422444beb9c62ec618b1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,18 +43,18 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@aws-sdk/client-sts": "^3.931.0",
46
- "@graphql-mesh/fusion-runtime": "1.6.0-alpha-a69b74c48c6a7d8294831613ec05d8c8e3e927f4",
46
+ "@graphql-mesh/fusion-runtime": "1.6.0-alpha-72326c1ac3611e9847ef422444beb9c62ec618b1",
47
47
  "@whatwg-node/promise-helpers": "^1.3.2",
48
48
  "aws4": "1.13.2",
49
49
  "tslib": "^2.8.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@apollo/subgraph": "^2.11.3",
53
- "@graphql-hive/gateway-runtime": "2.3.6-alpha-a69b74c48c6a7d8294831613ec05d8c8e3e927f4",
53
+ "@graphql-hive/gateway-runtime": "2.3.6-alpha-72326c1ac3611e9847ef422444beb9c62ec618b1",
54
54
  "@types/aws4": "^1.11.6",
55
55
  "graphql": "^16.12.0",
56
56
  "graphql-yoga": "^5.16.2",
57
- "pkgroll": "2.21.4"
57
+ "pkgroll": "2.21.3"
58
58
  },
59
59
  "sideEffects": false
60
60
  }