@envelop/fragment-arguments 3.4.0-alpha-aca44e1.0 → 4.0.0-alpha-d0d0776.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/index.js +1 -2
- package/index.mjs +1 -2
- package/package.json +19 -7
package/index.js
CHANGED
|
@@ -17,8 +17,7 @@ class FragmentArgumentCompatibleParser extends parser_js.Parser {
|
|
|
17
17
|
}
|
|
18
18
|
// for backwards-compat with v15, this api was removed in v16 in favor of the this.node API.
|
|
19
19
|
loc(startToken) {
|
|
20
|
-
|
|
21
|
-
if (((_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a.noLocation) !== true) {
|
|
20
|
+
if (this.getOptions()?.noLocation !== true) {
|
|
22
21
|
const lexer = this.getLexer();
|
|
23
22
|
return new graphql.Location(startToken, lexer.lastToken, lexer.source);
|
|
24
23
|
}
|
package/index.mjs
CHANGED
|
@@ -13,8 +13,7 @@ class FragmentArgumentCompatibleParser extends Parser {
|
|
|
13
13
|
}
|
|
14
14
|
// for backwards-compat with v15, this api was removed in v16 in favor of the this.node API.
|
|
15
15
|
loc(startToken) {
|
|
16
|
-
|
|
17
|
-
if (((_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a.noLocation) !== true) {
|
|
16
|
+
if (this.getOptions()?.noLocation !== true) {
|
|
18
17
|
const lexer = this.getLexer();
|
|
19
18
|
return new Location(startToken, lexer.lastToken, lexer.source);
|
|
20
19
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/fragment-arguments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha-d0d0776.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@envelop/core": "
|
|
5
|
+
"@envelop/core": "3.0.0-alpha-d0d0776.0",
|
|
6
6
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/
|
|
10
|
+
"url": "https://github.com/n1ru4l/envelop.git",
|
|
11
11
|
"directory": "packages/plugins/fragment-arguments"
|
|
12
12
|
},
|
|
13
13
|
"author": "Dotan Simha <dotansimha@gmail.com>",
|
|
@@ -20,12 +20,24 @@
|
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"require":
|
|
24
|
-
|
|
23
|
+
"require": {
|
|
24
|
+
"default": "./index.js",
|
|
25
|
+
"types": "./index.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"import": {
|
|
28
|
+
"default": "./index.mjs",
|
|
29
|
+
"types": "./index.d.ts"
|
|
30
|
+
}
|
|
25
31
|
},
|
|
26
32
|
"./*": {
|
|
27
|
-
"require":
|
|
28
|
-
|
|
33
|
+
"require": {
|
|
34
|
+
"default": "./*.js",
|
|
35
|
+
"types": "./*.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"import": {
|
|
38
|
+
"default": "./*.mjs",
|
|
39
|
+
"types": "./*.d.ts"
|
|
40
|
+
}
|
|
29
41
|
},
|
|
30
42
|
"./package.json": "./package.json"
|
|
31
43
|
}
|