graphql-http 1.4.0 → 1.5.0

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/lib/utils.js CHANGED
@@ -5,7 +5,18 @@
5
5
  *
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.isAsyncIterable = exports.isExecutionResult = exports.areGraphQLErrors = exports.isObject = void 0;
8
+ exports.isAsyncIterable = exports.isExecutionResult = exports.areGraphQLErrors = exports.isObject = exports.extendedTypeof = void 0;
9
+ /** @private */
10
+ function extendedTypeof(val) {
11
+ if (val === null) {
12
+ return 'null';
13
+ }
14
+ if (Array.isArray(val)) {
15
+ return 'array';
16
+ }
17
+ return typeof val;
18
+ }
19
+ exports.extendedTypeof = extendedTypeof;
9
20
  /** @private */
10
21
  function isObject(val) {
11
22
  return typeof val === 'object' && val !== null;
package/lib/utils.mjs CHANGED
@@ -4,6 +4,16 @@
4
4
  *
5
5
  */
6
6
  /** @private */
7
+ export function extendedTypeof(val) {
8
+ if (val === null) {
9
+ return 'null';
10
+ }
11
+ if (Array.isArray(val)) {
12
+ return 'array';
13
+ }
14
+ return typeof val;
15
+ }
16
+ /** @private */
7
17
  export function isObject(val) {
8
18
  return typeof val === 'object' && val !== null;
9
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-http",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Simple, pluggable, zero-dependency, GraphQL over HTTP Protocol compliant server and client",
5
5
  "keywords": [
6
6
  "graphql",
@@ -65,35 +65,35 @@
65
65
  "graphql": ">=0.11 <=16"
66
66
  },
67
67
  "devDependencies": {
68
- "@babel/core": "^7.18.10",
68
+ "@babel/core": "^7.18.13",
69
69
  "@babel/plugin-proposal-class-properties": "^7.18.6",
70
70
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
71
71
  "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
72
72
  "@babel/plugin-proposal-optional-chaining": "^7.18.9",
73
73
  "@babel/preset-env": "^7.18.10",
74
74
  "@babel/preset-typescript": "^7.18.6",
75
- "@rollup/plugin-typescript": "^8.3.4",
75
+ "@rollup/plugin-typescript": "^8.4.0",
76
76
  "@semantic-release/changelog": "^6.0.1",
77
77
  "@semantic-release/git": "^10.0.1",
78
- "@types/jest": "^28.1.7",
79
- "@typescript-eslint/eslint-plugin": "^5.33.1",
80
- "@typescript-eslint/parser": "^5.33.1",
81
- "babel-jest": "^28.1.3",
82
- "eslint": "^8.22.0",
78
+ "@types/jest": "^29.0.0",
79
+ "@typescript-eslint/eslint-plugin": "^5.36.1",
80
+ "@typescript-eslint/parser": "^5.36.1",
81
+ "babel-jest": "^29.0.1",
82
+ "eslint": "^8.23.0",
83
83
  "eslint-config-prettier": "^8.5.0",
84
84
  "eslint-plugin-prettier": "^4.2.1",
85
- "graphql": "^16.5.0",
86
- "jest": "^28.1.3",
87
- "jest-jasmine2": "^28.1.3",
85
+ "graphql": "^16.6.0",
86
+ "jest": "^29.0.1",
87
+ "jest-jasmine2": "^29.0.1",
88
88
  "node-fetch": "^3.2.10",
89
89
  "prettier": "^2.7.1",
90
90
  "replacestream": "^4.0.3",
91
- "rollup": "^2.78.0",
91
+ "rollup": "^2.78.1",
92
92
  "rollup-plugin-terser": "^7.0.2",
93
- "semantic-release": "^19.0.3",
93
+ "semantic-release": "^19.0.5",
94
94
  "tslib": "^2.4.0",
95
- "typedoc": "^0.23.10",
95
+ "typedoc": "^0.23.11",
96
96
  "typedoc-plugin-markdown": "^3.13.4",
97
- "typescript": "^4.7.4"
97
+ "typescript": "^4.8.2"
98
98
  }
99
99
  }
Binary file