graphql 16.0.0 → 16.0.1
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/language/lexer.js +5 -2
- package/language/lexer.mjs +5 -2
- package/package.json +1 -1
- package/version.js +2 -2
- package/version.mjs +2 -2
package/language/lexer.js
CHANGED
|
@@ -893,6 +893,8 @@ function readEscapedCharacter(lexer, position) {
|
|
|
893
893
|
function readBlockString(lexer, start) {
|
|
894
894
|
const body = lexer.source.body;
|
|
895
895
|
const bodyLength = body.length;
|
|
896
|
+
const startLine = lexer.line;
|
|
897
|
+
const startColumn = 1 + start - lexer.lineStart;
|
|
896
898
|
let position = start + 3;
|
|
897
899
|
let chunkStart = position;
|
|
898
900
|
let rawValue = '';
|
|
@@ -906,11 +908,12 @@ function readBlockString(lexer, start) {
|
|
|
906
908
|
body.charCodeAt(position + 2) === 0x0022
|
|
907
909
|
) {
|
|
908
910
|
rawValue += body.slice(chunkStart, position);
|
|
909
|
-
return
|
|
910
|
-
lexer,
|
|
911
|
+
return new _ast.Token(
|
|
911
912
|
_tokenKind.TokenKind.BLOCK_STRING,
|
|
912
913
|
start,
|
|
913
914
|
position + 3,
|
|
915
|
+
startLine,
|
|
916
|
+
startColumn,
|
|
914
917
|
(0, _blockString.dedentBlockStringValue)(rawValue),
|
|
915
918
|
);
|
|
916
919
|
} // Escaped Triple-Quote (\""")
|
package/language/lexer.mjs
CHANGED
|
@@ -793,6 +793,8 @@ function readEscapedCharacter(lexer, position) {
|
|
|
793
793
|
function readBlockString(lexer, start) {
|
|
794
794
|
const body = lexer.source.body;
|
|
795
795
|
const bodyLength = body.length;
|
|
796
|
+
const startLine = lexer.line;
|
|
797
|
+
const startColumn = 1 + start - lexer.lineStart;
|
|
796
798
|
let position = start + 3;
|
|
797
799
|
let chunkStart = position;
|
|
798
800
|
let rawValue = '';
|
|
@@ -806,11 +808,12 @@ function readBlockString(lexer, start) {
|
|
|
806
808
|
body.charCodeAt(position + 2) === 0x0022
|
|
807
809
|
) {
|
|
808
810
|
rawValue += body.slice(chunkStart, position);
|
|
809
|
-
return
|
|
810
|
-
lexer,
|
|
811
|
+
return new Token(
|
|
811
812
|
TokenKind.BLOCK_STRING,
|
|
812
813
|
start,
|
|
813
814
|
position + 3,
|
|
815
|
+
startLine,
|
|
816
|
+
startColumn,
|
|
814
817
|
dedentBlockStringValue(rawValue),
|
|
815
818
|
);
|
|
816
819
|
} // Escaped Triple-Quote (\""")
|
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.0.
|
|
13
|
+
const version = '16.0.1';
|
|
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: 0,
|
|
22
|
-
patch:
|
|
22
|
+
patch: 1,
|
|
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.0.
|
|
7
|
+
export const version = '16.0.1';
|
|
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.0.0';
|
|
|
12
12
|
export const versionInfo = Object.freeze({
|
|
13
13
|
major: 16,
|
|
14
14
|
minor: 0,
|
|
15
|
-
patch:
|
|
15
|
+
patch: 1,
|
|
16
16
|
preReleaseTag: null,
|
|
17
17
|
});
|