@graphql-box/connection-resolver 0.1.5 → 0.1.6
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.
@@ -2,7 +2,7 @@
|
|
2
2
|
Rollup File Analysis
|
3
3
|
-----------------------------
|
4
4
|
bundle size: 34.405 KB
|
5
|
-
original size: 26.
|
5
|
+
original size: 26.476 KB
|
6
6
|
code reduction: 0 %
|
7
7
|
module count: 33
|
8
8
|
|
@@ -299,7 +299,7 @@ dependents: 1
|
|
299
299
|
file: /src/defs/index.ts
|
300
300
|
bundle space: 0 %
|
301
301
|
rendered size: 0 Byte
|
302
|
-
original size: 2.
|
302
|
+
original size: 2.687 KB
|
303
303
|
code reduction: 100 %
|
304
304
|
dependents: 1
|
305
305
|
- /src/index.ts
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/defs/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,oBAAY,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,oBAAY,IAAI,GAAG,WAAW,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/defs/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,oBAAY,WAAW,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,oBAAY,IAAI,GAAG,WAAW,GAAG;IAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEzD,oBAAY,SAAS,GAAG,UAAU,GAAG,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EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,UAAU,CAAC;IAC5C,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,oBAAY,kBAAkB,GAAG,CAC/B,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,WAAW,GAAG,sBAAsB,EAC1C,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,kBAAkB,KACrB,OAAO,CAAC,UAAU,CAAC,CAAC;AAEzB,oBAAY,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,OAAO,GAAG;IACpB,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
package/package.json
CHANGED
package/src/defs/index.ts
CHANGED
@@ -30,8 +30,8 @@ describe("retrieveCachedConnection", () => {
|
|
30
30
|
|
31
31
|
const edges = extractEdges(cachedEdges);
|
32
32
|
expect(edges.length).toBe(5);
|
33
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("1::1");
|
34
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("5::1");
|
33
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("1::1");
|
34
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("5::1");
|
35
35
|
expect(hasPreviousPage).toBe(true);
|
36
36
|
expect(hasNextPage).toBe(true);
|
37
37
|
expect(missingPages.length).toBe(0);
|
@@ -59,8 +59,8 @@ describe("retrieveCachedConnection", () => {
|
|
59
59
|
|
60
60
|
const edges = extractEdges(cachedEdges);
|
61
61
|
expect(edges.length).toBe(15);
|
62
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("6::1");
|
63
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("0::3");
|
62
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("6::1");
|
63
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("0::3");
|
64
64
|
expect(hasPreviousPage).toBe(true);
|
65
65
|
expect(hasNextPage).toBe(true);
|
66
66
|
expect(missingPages.length).toBe(0);
|
@@ -88,8 +88,8 @@ describe("retrieveCachedConnection", () => {
|
|
88
88
|
|
89
89
|
const edges = extractEdges(cachedEdges);
|
90
90
|
expect(edges.length).toBe(9);
|
91
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("1::10");
|
92
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("9::10");
|
91
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("1::10");
|
92
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("9::10");
|
93
93
|
expect(hasPreviousPage).toBe(true);
|
94
94
|
expect(hasNextPage).toBe(false);
|
95
95
|
expect(missingPages.length).toBe(0);
|
@@ -118,8 +118,8 @@ describe("retrieveCachedConnection", () => {
|
|
118
118
|
|
119
119
|
const edges = extractEdges(cachedEdges);
|
120
120
|
expect(edges.length).toBe(29);
|
121
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("1::8");
|
122
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("9::10");
|
121
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("1::8");
|
122
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("9::10");
|
123
123
|
expect(hasPreviousPage).toBe(true);
|
124
124
|
expect(hasNextPage).toBe(false);
|
125
125
|
expect(missingPages.length).toBe(0);
|
@@ -147,8 +147,8 @@ describe("retrieveCachedConnection", () => {
|
|
147
147
|
|
148
148
|
const edges = extractEdges(cachedEdges);
|
149
149
|
expect(edges.length).toBe(25);
|
150
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("1::8");
|
151
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("5::10");
|
150
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("1::8");
|
151
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("5::10");
|
152
152
|
expect(hasPreviousPage).toBe(true);
|
153
153
|
expect(hasNextPage).toBe(false);
|
154
154
|
expect(missingPages.length).toBe(0);
|
@@ -178,8 +178,8 @@ describe("retrieveCachedConnection", () => {
|
|
178
178
|
|
179
179
|
const edges = extractEdges(cachedEdges);
|
180
180
|
expect(edges.length).toBe(25);
|
181
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("1::8");
|
182
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("5::10");
|
181
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("1::8");
|
182
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("5::10");
|
183
183
|
expect(hasPreviousPage).toBe(true);
|
184
184
|
expect(hasNextPage).toBe(true);
|
185
185
|
expect(missingPages.length).toBe(0);
|
@@ -207,8 +207,8 @@ describe("retrieveCachedConnection", () => {
|
|
207
207
|
|
208
208
|
const edges = extractEdges(cachedEdges);
|
209
209
|
expect(edges.length).toBe(25);
|
210
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("1::8");
|
211
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("5::10");
|
210
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("1::8");
|
211
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("5::10");
|
212
212
|
expect(hasPreviousPage).toBe(true);
|
213
213
|
expect(hasNextPage).toBe(false);
|
214
214
|
expect(missingPages.length).toBe(0);
|
@@ -238,8 +238,8 @@ describe("retrieveCachedConnection", () => {
|
|
238
238
|
|
239
239
|
const edges = extractEdges(cachedEdges);
|
240
240
|
expect(edges.length).toBe(20);
|
241
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("0::8");
|
242
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("9::10");
|
241
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("0::8");
|
242
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("9::10");
|
243
243
|
expect(hasPreviousPage).toBe(true);
|
244
244
|
expect(hasNextPage).toBe(false);
|
245
245
|
expect(missingPages.length).toBe(1);
|
@@ -268,8 +268,8 @@ describe("retrieveCachedConnection", () => {
|
|
268
268
|
|
269
269
|
const edges = extractEdges(cachedEdges);
|
270
270
|
expect(edges.length).toBe(20);
|
271
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("0::8");
|
272
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("9::10");
|
271
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("0::8");
|
272
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("9::10");
|
273
273
|
expect(hasPreviousPage).toBe(true);
|
274
274
|
expect(hasNextPage).toBe(true);
|
275
275
|
expect(missingPages.length).toBe(1);
|
@@ -301,8 +301,8 @@ describe("retrieveCachedConnection", () => {
|
|
301
301
|
|
302
302
|
const edges = extractEdges(cachedEdges);
|
303
303
|
expect(edges.length).toBe(5);
|
304
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("4::10");
|
305
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("8::10");
|
304
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("4::10");
|
305
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("8::10");
|
306
306
|
expect(hasPreviousPage).toBe(true);
|
307
307
|
expect(hasNextPage).toBe(true);
|
308
308
|
expect(missingPages.length).toBe(0);
|
@@ -330,8 +330,8 @@ describe("retrieveCachedConnection", () => {
|
|
330
330
|
|
331
331
|
const edges = extractEdges(cachedEdges);
|
332
332
|
expect(edges.length).toBe(15);
|
333
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("4::9");
|
334
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("8::10");
|
333
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("4::9");
|
334
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("8::10");
|
335
335
|
expect(hasPreviousPage).toBe(true);
|
336
336
|
expect(hasNextPage).toBe(true);
|
337
337
|
expect(missingPages.length).toBe(0);
|
@@ -359,8 +359,8 @@ describe("retrieveCachedConnection", () => {
|
|
359
359
|
|
360
360
|
const edges = extractEdges(cachedEdges);
|
361
361
|
expect(edges.length).toBe(9);
|
362
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("0::1");
|
363
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("8::1");
|
362
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("0::1");
|
363
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("8::1");
|
364
364
|
expect(hasPreviousPage).toBe(false);
|
365
365
|
expect(hasNextPage).toBe(true);
|
366
366
|
expect(missingPages.length).toBe(0);
|
@@ -388,8 +388,8 @@ describe("retrieveCachedConnection", () => {
|
|
388
388
|
|
389
389
|
const edges = extractEdges(cachedEdges);
|
390
390
|
expect(edges.length).toBe(27);
|
391
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("0::1");
|
392
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("6::3");
|
391
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("0::1");
|
392
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("6::3");
|
393
393
|
expect(hasPreviousPage).toBe(false);
|
394
394
|
expect(hasNextPage).toBe(true);
|
395
395
|
expect(missingPages.length).toBe(0);
|
@@ -417,8 +417,8 @@ describe("retrieveCachedConnection", () => {
|
|
417
417
|
|
418
418
|
const edges = extractEdges(cachedEdges);
|
419
419
|
expect(edges.length).toBe(25);
|
420
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("2::1");
|
421
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("6::3");
|
420
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("2::1");
|
421
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("6::3");
|
422
422
|
expect(hasPreviousPage).toBe(true);
|
423
423
|
expect(hasNextPage).toBe(true);
|
424
424
|
expect(missingPages.length).toBe(0);
|
@@ -447,8 +447,8 @@ describe("retrieveCachedConnection", () => {
|
|
447
447
|
|
448
448
|
const edges = extractEdges(cachedEdges);
|
449
449
|
expect(edges.length).toBe(20);
|
450
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("0::1");
|
451
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("9::3");
|
450
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("0::1");
|
451
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("9::3");
|
452
452
|
expect(hasPreviousPage).toBe(false);
|
453
453
|
expect(hasNextPage).toBe(true);
|
454
454
|
expect(missingPages.length).toBe(1);
|
@@ -477,8 +477,8 @@ describe("retrieveCachedConnection", () => {
|
|
477
477
|
|
478
478
|
const edges = extractEdges(cachedEdges);
|
479
479
|
expect(edges.length).toBe(20);
|
480
|
-
expect(decode(edges[0].node.id.split("::")[0])).toBe("0::1");
|
481
|
-
expect(decode(edges[edges.length - 1].node.id.split("::")[0])).toBe("9::3");
|
480
|
+
expect(decode((edges[0].node.id as string).split("::")[0])).toBe("0::1");
|
481
|
+
expect(decode((edges[edges.length - 1].node.id as string).split("::")[0])).toBe("9::3");
|
482
482
|
expect(hasPreviousPage).toBe(true);
|
483
483
|
expect(hasNextPage).toBe(true);
|
484
484
|
expect(missingPages.length).toBe(1);
|