graphql 15.7.1 → 15.7.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/error/GraphQLError.js +3 -2
- package/error/GraphQLError.js.flow +4 -3
- package/error/GraphQLError.mjs +3 -2
- package/package.json +1 -1
- package/version.js +2 -2
- package/version.js.flow +2 -2
- package/version.mjs +2 -2
package/error/GraphQLError.js
CHANGED
|
@@ -139,11 +139,12 @@ var GraphQLError = /*#__PURE__*/function (_Error) {
|
|
|
139
139
|
return (0, _location.getLocation)(loc.source, loc.start);
|
|
140
140
|
});
|
|
141
141
|
_this.path = path !== null && path !== void 0 ? path : undefined;
|
|
142
|
-
_this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};
|
|
143
142
|
var originalExtensions = originalError === null || originalError === void 0 ? void 0 : originalError.extensions;
|
|
144
143
|
|
|
145
|
-
if ((0, _isObjectLike.default)(originalExtensions)) {
|
|
144
|
+
if (extensions == null && (0, _isObjectLike.default)(originalExtensions)) {
|
|
146
145
|
_this.extensions = _objectSpread({}, originalExtensions);
|
|
146
|
+
} else {
|
|
147
|
+
_this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};
|
|
147
148
|
} // By being enumerable, JSON.stringify will include bellow properties in the resulting output.
|
|
148
149
|
// This ensures that the simplest possible GraphQL service adheres to the spec.
|
|
149
150
|
|
|
@@ -103,11 +103,12 @@ export class GraphQLError extends Error {
|
|
|
103
103
|
|
|
104
104
|
this.path = path ?? undefined;
|
|
105
105
|
|
|
106
|
-
this.extensions = extensions ?? {};
|
|
107
|
-
|
|
108
106
|
const originalExtensions = originalError?.extensions;
|
|
109
|
-
|
|
107
|
+
|
|
108
|
+
if (extensions == null && isObjectLike(originalExtensions)) {
|
|
110
109
|
this.extensions = { ...originalExtensions };
|
|
110
|
+
} else {
|
|
111
|
+
this.extensions = extensions ?? {};
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
// By being enumerable, JSON.stringify will include bellow properties in the resulting output.
|
package/error/GraphQLError.mjs
CHANGED
|
@@ -126,11 +126,12 @@ export var GraphQLError = /*#__PURE__*/function (_Error) {
|
|
|
126
126
|
return getLocation(loc.source, loc.start);
|
|
127
127
|
});
|
|
128
128
|
_this.path = path !== null && path !== void 0 ? path : undefined;
|
|
129
|
-
_this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};
|
|
130
129
|
var originalExtensions = originalError === null || originalError === void 0 ? void 0 : originalError.extensions;
|
|
131
130
|
|
|
132
|
-
if (isObjectLike(originalExtensions)) {
|
|
131
|
+
if (extensions == null && isObjectLike(originalExtensions)) {
|
|
133
132
|
_this.extensions = _objectSpread({}, originalExtensions);
|
|
133
|
+
} else {
|
|
134
|
+
_this.extensions = extensions !== null && extensions !== void 0 ? extensions : {};
|
|
134
135
|
} // By being enumerable, JSON.stringify will include bellow properties in the resulting output.
|
|
135
136
|
// This ensures that the simplest possible GraphQL service adheres to the spec.
|
|
136
137
|
|
package/package.json
CHANGED
package/version.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
13
13
|
/**
|
|
14
14
|
* A string containing the version of the GraphQL.js library
|
|
15
15
|
*/
|
|
16
|
-
var version = '15.7.
|
|
16
|
+
var version = '15.7.2';
|
|
17
17
|
/**
|
|
18
18
|
* An object containing the components of the GraphQL.js version string
|
|
19
19
|
*/
|
|
@@ -22,7 +22,7 @@ exports.version = version;
|
|
|
22
22
|
var versionInfo = Object.freeze({
|
|
23
23
|
major: 15,
|
|
24
24
|
minor: 7,
|
|
25
|
-
patch:
|
|
25
|
+
patch: 2,
|
|
26
26
|
preReleaseTag: null
|
|
27
27
|
});
|
|
28
28
|
exports.versionInfo = versionInfo;
|
package/version.js.flow
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* A string containing the version of the GraphQL.js library
|
|
9
9
|
*/
|
|
10
|
-
export const version = '15.7.
|
|
10
|
+
export const version = '15.7.2';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* An object containing the components of the GraphQL.js version string
|
|
@@ -15,6 +15,6 @@ export const version = '15.7.1';
|
|
|
15
15
|
export const versionInfo = Object.freeze({
|
|
16
16
|
major: 15,
|
|
17
17
|
minor: 7,
|
|
18
|
-
patch:
|
|
18
|
+
patch: 2,
|
|
19
19
|
preReleaseTag: null,
|
|
20
20
|
});
|
package/version.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* A string containing the version of the GraphQL.js library
|
|
8
8
|
*/
|
|
9
|
-
export var version = '15.7.
|
|
9
|
+
export var version = '15.7.2';
|
|
10
10
|
/**
|
|
11
11
|
* An object containing the components of the GraphQL.js version string
|
|
12
12
|
*/
|
|
@@ -14,6 +14,6 @@ export var version = '15.7.1';
|
|
|
14
14
|
export var versionInfo = Object.freeze({
|
|
15
15
|
major: 15,
|
|
16
16
|
minor: 7,
|
|
17
|
-
patch:
|
|
17
|
+
patch: 2,
|
|
18
18
|
preReleaseTag: null
|
|
19
19
|
});
|