graphql 16.8.1 → 16.8.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/jsutils/instanceOf.js +6 -1
- package/jsutils/instanceOf.mjs +6 -1
- package/package.json +1 -1
- package/version.js +2 -2
- package/version.mjs +2 -2
package/jsutils/instanceOf.js
CHANGED
|
@@ -7,16 +7,21 @@ exports.instanceOf = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _inspect = require('./inspect.js');
|
|
9
9
|
|
|
10
|
+
/* c8 ignore next 3 */
|
|
11
|
+
const isProduction =
|
|
12
|
+
globalThis.process && // eslint-disable-next-line no-undef
|
|
13
|
+
process.env.NODE_ENV === 'production';
|
|
10
14
|
/**
|
|
11
15
|
* A replacement for instanceof which includes an error warning when multi-realm
|
|
12
16
|
* constructors are detected.
|
|
13
17
|
* See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
|
|
14
18
|
* See: https://webpack.js.org/guides/production/
|
|
15
19
|
*/
|
|
20
|
+
|
|
16
21
|
const instanceOf =
|
|
17
22
|
/* c8 ignore next 6 */
|
|
18
23
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
19
|
-
|
|
24
|
+
isProduction
|
|
20
25
|
? function instanceOf(value, constructor) {
|
|
21
26
|
return value instanceof constructor;
|
|
22
27
|
}
|
package/jsutils/instanceOf.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { inspect } from './inspect.mjs';
|
|
2
|
+
/* c8 ignore next 3 */
|
|
3
|
+
|
|
4
|
+
const isProduction =
|
|
5
|
+
globalThis.process && // eslint-disable-next-line no-undef
|
|
6
|
+
process.env.NODE_ENV === 'production';
|
|
2
7
|
/**
|
|
3
8
|
* A replacement for instanceof which includes an error warning when multi-realm
|
|
4
9
|
* constructors are detected.
|
|
@@ -9,7 +14,7 @@ import { inspect } from './inspect.mjs';
|
|
|
9
14
|
export const instanceOf =
|
|
10
15
|
/* c8 ignore next 6 */
|
|
11
16
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
12
|
-
|
|
17
|
+
isProduction
|
|
13
18
|
? function instanceOf(value, constructor) {
|
|
14
19
|
return value instanceof constructor;
|
|
15
20
|
}
|
package/package.json
CHANGED
package/version.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
10
10
|
/**
|
|
11
11
|
* A string containing the version of the GraphQL.js library
|
|
12
12
|
*/
|
|
13
|
-
const version = '16.8.
|
|
13
|
+
const version = '16.8.2';
|
|
14
14
|
/**
|
|
15
15
|
* An object containing the components of the GraphQL.js version string
|
|
16
16
|
*/
|
|
@@ -19,7 +19,7 @@ exports.version = version;
|
|
|
19
19
|
const versionInfo = Object.freeze({
|
|
20
20
|
major: 16,
|
|
21
21
|
minor: 8,
|
|
22
|
-
patch:
|
|
22
|
+
patch: 2,
|
|
23
23
|
preReleaseTag: null,
|
|
24
24
|
});
|
|
25
25
|
exports.versionInfo = versionInfo;
|
package/version.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* A string containing the version of the GraphQL.js library
|
|
6
6
|
*/
|
|
7
|
-
export const version = '16.8.
|
|
7
|
+
export const version = '16.8.2';
|
|
8
8
|
/**
|
|
9
9
|
* An object containing the components of the GraphQL.js version string
|
|
10
10
|
*/
|
|
@@ -12,6 +12,6 @@ export const version = '16.8.1';
|
|
|
12
12
|
export const versionInfo = Object.freeze({
|
|
13
13
|
major: 16,
|
|
14
14
|
minor: 8,
|
|
15
|
-
patch:
|
|
15
|
+
patch: 2,
|
|
16
16
|
preReleaseTag: null,
|
|
17
17
|
});
|