Mirror: The small sibling of the graphql package, slimmed down for client-side libraries.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

upgrade graphql.web and fix a few tests (#14)

authored by

Jovi De Croock and committed by
GitHub
e9bd6514 ebe96ae4

+15 -17
+4 -1
alias/language/__tests__/parser.test.js
··· 18 18 19 19 it('parses constant default values', () => { 20 20 expect(() => { 21 - return parse('query Foo($x: Complex = { a: { b: [ $var ] } }) { field }'); 21 + return parse('query Foo($x: Complex = { a: { b: [ "test" ] } }) { field }'); 22 22 }).not.toThrow(); 23 23 }); 24 24 ··· 250 250 }, 251 251 { 252 252 kind: Kind.STRING, 253 + block: false, 253 254 value: 'abc', 254 255 }, 255 256 ], ··· 262 263 kind: Kind.LIST, 263 264 values: [ 264 265 { 266 + block: true, 265 267 kind: Kind.STRING, 266 268 value: 'long', 267 269 }, 268 270 { 269 271 kind: Kind.STRING, 272 + block: false, 270 273 value: 'short', 271 274 }, 272 275 ],
+6 -11
alias/language/__tests__/printer.test.js
··· 25 25 { 26 26 id 27 27 name 28 - } 29 - `); 28 + }`); 30 29 31 30 const mutationAST = parse('mutation { id, name }'); 32 31 expect(print(mutationAST)).toBe(dedent` 33 32 mutation { 34 33 id 35 34 name 36 - } 37 - `); 35 + }`); 38 36 39 37 const queryASTWithArtifacts = parse('query ($foo: TestType) @testDirective { id, name }'); 40 38 expect(print(queryASTWithArtifacts)).toBe(dedent` 41 39 query ($foo: TestType) @testDirective { 42 40 id 43 41 name 44 - } 45 - `); 42 + }`); 46 43 47 44 const mutationASTWithArtifacts = parse('mutation ($foo: TestType) @testDirective { id, name }'); 48 45 expect(print(mutationASTWithArtifacts)).toBe(dedent` ··· 73 70 trip(wheelchair: false, arriveBy: false) { 74 71 dateTime 75 72 } 76 - } 77 - ` 73 + }` 78 74 ); 79 75 }); 80 76 ··· 143 139 144 140 { 145 141 __typename 146 - } 147 - `) + '\n' 142 + }`) 148 143 ); 149 144 }); 150 145 }); ··· 227 222 function dedent(strings, ...values) { 228 223 let str = strings[0]; 229 224 for (let i = 1; i < strings.length; ++i) str += values[i - 1] + strings[i]; // interpolation 230 - return dedentString(str) + '\n'; 225 + return dedentString(str); 231 226 }
+1 -1
package.json
··· 36 36 } 37 37 }, 38 38 "devDependencies": { 39 - "@0no-co/graphql.web": "^0.1.5", 39 + "@0no-co/graphql.web": "^0.1.6", 40 40 "@babel/core": "^7.21.3", 41 41 "@rollup/plugin-babel": "^6.0.3", 42 42 "@rollup/plugin-buble": "^1.0.2",
+4 -4
pnpm-lock.yaml
··· 7 7 8 8 .: 9 9 specifiers: 10 - '@0no-co/graphql.web': ^0.1.5 10 + '@0no-co/graphql.web': ^0.1.6 11 11 '@babel/core': ^7.21.3 12 12 '@rollup/plugin-babel': ^6.0.3 13 13 '@rollup/plugin-buble': ^1.0.2 ··· 33 33 typescript: ^5.0.2 34 34 vitest: ^0.29.7 35 35 devDependencies: 36 - '@0no-co/graphql.web': 0.1.5 36 + '@0no-co/graphql.web': 0.1.6 37 37 '@babel/core': 7.21.3 38 38 '@rollup/plugin-babel': 6.0.3_7q3kejatfh3gjru7whmg6sfpeq 39 39 '@rollup/plugin-buble': 1.0.2_rollup@3.20.0 ··· 76 76 77 77 packages: 78 78 79 - /@0no-co/graphql.web/0.1.5: 80 - resolution: {integrity: sha512-a4b2IoVjFF3QpBYs+rd+6UBxo0prF33TgJoIHMZZI3zaFxIEfaaadDfudAGZNBhk+wK8ocHN0wSLSu5prbGRng==} 79 + /@0no-co/graphql.web/0.1.6: 80 + resolution: {integrity: sha512-HUFsLTSjX6sTdK+CyoHNs71h0HneugTO6nQS8WwxFGarmAh3doKwZRVY39xLkdOmneSKJZIHRysjf+odHHBFhw==} 81 81 dev: true 82 82 83 83 /@ampproject/remapping/2.2.0: