gql.tada 1.8.10 → 1.8.11

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.
@@ -332,9 +332,11 @@ type letter =
332
332
  | 'z';
333
333
  type skipIgnored<In> = In extends `#${infer _}\n${infer In}`
334
334
  ? skipIgnored<In>
335
- : In extends `${ignored}${infer In}`
336
- ? skipIgnored<In>
337
- : In;
335
+ : In extends `#${infer _}`
336
+ ? ''
337
+ : In extends `${ignored}${infer In}`
338
+ ? skipIgnored<In>
339
+ : In;
338
340
  type skipDigits<In> = In extends `${digit}${infer In}` ? skipDigits<In> : In;
339
341
  type skipFloat<In> = In extends `${'.'}${infer In}`
340
342
  ? skipDigits<In> extends `${'e' | 'E'}${infer In}`
@@ -383,9 +385,9 @@ type tokenizeRec<State> =
383
385
  ? State['out']
384
386
  : State extends _state<infer In, infer Out>
385
387
  ? tokenizeRec<
386
- In extends `#${string}\n${infer In}`
387
- ? _state<In, Out>
388
- : In extends `${ignored}${infer In}`
388
+ In extends `#${string}`
389
+ ? _state<skipIgnored<In>, Out>
390
+ : In extends `${ignored}${string}`
389
391
  ? _state<skipIgnored<In>, Out>
390
392
  : In extends `...${infer In}`
391
393
  ? _state<In, [...Out, Token.Spread]>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gql.tada",
3
3
  "description": "The spec-compliant & magical GraphQL query language engine in the TypeScript type system",
4
- "version": "1.8.10",
4
+ "version": "1.8.11",
5
5
  "author": "0no.co <hi@0no.co>",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./dist/gql-tada",