@graphcommerce/next-config 9.1.0-canary.17 → 9.1.0-canary.18
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/CHANGELOG.md +6 -0
- package/dist/index.js +108 -138
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`62b71d5`](https://github.com/graphcommerce-org/graphcommerce/commit/62b71d5ed1d482fdb5b76dc19ac4d55fc41fb191) - Solve issue: TypeError: InMemoryLRUCache is not a constructor ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
3
9
|
## 9.1.0-canary.17
|
|
4
10
|
|
|
5
11
|
## 9.1.0-canary.16
|
package/dist/index.js
CHANGED
|
@@ -330,175 +330,145 @@ const demoConfig = {
|
|
|
330
330
|
previewSecret: "SECRET"
|
|
331
331
|
};
|
|
332
332
|
|
|
333
|
-
/******************************************************************************
|
|
334
|
-
Copyright (c) Microsoft Corporation.
|
|
335
|
-
|
|
336
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
337
|
-
purpose with or without fee is hereby granted.
|
|
338
|
-
|
|
339
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
340
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
341
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
342
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
343
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
344
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
345
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
346
|
-
***************************************************************************** */
|
|
347
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
348
|
-
|
|
349
|
-
|
|
350
333
|
var __assign = function() {
|
|
351
|
-
__assign = Object.assign || function
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
334
|
+
__assign = Object.assign || function __assign2(t) {
|
|
335
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
336
|
+
s = arguments[i];
|
|
337
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
338
|
+
}
|
|
339
|
+
return t;
|
|
357
340
|
};
|
|
358
341
|
return __assign.apply(this, arguments);
|
|
359
342
|
};
|
|
360
|
-
|
|
361
343
|
function __spreadArray(to, from, pack) {
|
|
362
344
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
345
|
+
if (ar || !(i in from)) {
|
|
346
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
347
|
+
ar[i] = from[i];
|
|
348
|
+
}
|
|
367
349
|
}
|
|
368
350
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
369
351
|
}
|
|
370
|
-
|
|
371
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
352
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
372
353
|
var e = new Error(message);
|
|
373
354
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
374
355
|
};
|
|
375
356
|
|
|
376
357
|
function isNonNullObject(obj) {
|
|
377
|
-
|
|
358
|
+
return obj !== null && typeof obj === "object";
|
|
378
359
|
}
|
|
379
360
|
|
|
380
361
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
381
362
|
function mergeDeep() {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
// In almost any situation where you could succeed in getting the
|
|
389
|
-
// TypeScript compiler to infer a tuple type for the sources array, you
|
|
390
|
-
// could just use mergeDeep instead of mergeDeepArray, so instead of
|
|
391
|
-
// trying to convert T[] to an intersection type we just infer the array
|
|
392
|
-
// element type, which works perfectly when the sources array has a
|
|
393
|
-
// consistent element type.
|
|
363
|
+
var sources = [];
|
|
364
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
365
|
+
sources[_i] = arguments[_i];
|
|
366
|
+
}
|
|
367
|
+
return mergeDeepArray(sources);
|
|
368
|
+
}
|
|
394
369
|
function mergeDeepArray(sources) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
370
|
+
var target = sources[0] || {};
|
|
371
|
+
var count = sources.length;
|
|
372
|
+
if (count > 1) {
|
|
373
|
+
var merger = new DeepMerger();
|
|
374
|
+
for (var i = 1; i < count; ++i) {
|
|
375
|
+
target = merger.merge(target, sources[i]);
|
|
402
376
|
}
|
|
403
|
-
|
|
377
|
+
}
|
|
378
|
+
return target;
|
|
404
379
|
}
|
|
405
|
-
var defaultReconciler = function
|
|
406
|
-
|
|
380
|
+
var defaultReconciler = function(target, source, property) {
|
|
381
|
+
return this.merge(target[property], source[property]);
|
|
407
382
|
};
|
|
408
|
-
var DeepMerger =
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
// the source, and the recursion can terminate here.
|
|
440
|
-
target = _this.shallowCopyForMerge(target);
|
|
441
|
-
target[sourceKey] = source[sourceKey];
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
return target;
|
|
445
|
-
}
|
|
446
|
-
// If source (or target) is not an object, let source replace target.
|
|
447
|
-
return source;
|
|
448
|
-
};
|
|
449
|
-
DeepMerger.prototype.shallowCopyForMerge = function (value) {
|
|
450
|
-
if (isNonNullObject(value)) {
|
|
451
|
-
if (!this.pastCopies.has(value)) {
|
|
452
|
-
if (Array.isArray(value)) {
|
|
453
|
-
value = value.slice(0);
|
|
454
|
-
}
|
|
455
|
-
else {
|
|
456
|
-
value = __assign({ __proto__: Object.getPrototypeOf(value) }, value);
|
|
457
|
-
}
|
|
458
|
-
this.pastCopies.add(value);
|
|
383
|
+
var DeepMerger = (
|
|
384
|
+
/** @class */
|
|
385
|
+
function() {
|
|
386
|
+
function DeepMerger2(reconciler) {
|
|
387
|
+
if (reconciler === void 0) {
|
|
388
|
+
reconciler = defaultReconciler;
|
|
389
|
+
}
|
|
390
|
+
this.reconciler = reconciler;
|
|
391
|
+
this.isObject = isNonNullObject;
|
|
392
|
+
this.pastCopies = /* @__PURE__ */ new Set();
|
|
393
|
+
}
|
|
394
|
+
DeepMerger2.prototype.merge = function(target, source) {
|
|
395
|
+
var _this = this;
|
|
396
|
+
var context = [];
|
|
397
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
398
|
+
context[_i - 2] = arguments[_i];
|
|
399
|
+
}
|
|
400
|
+
if (isNonNullObject(source) && isNonNullObject(target)) {
|
|
401
|
+
Object.keys(source).forEach(function(sourceKey) {
|
|
402
|
+
if (hasOwnProperty.call(target, sourceKey)) {
|
|
403
|
+
var targetValue = target[sourceKey];
|
|
404
|
+
if (source[sourceKey] !== targetValue) {
|
|
405
|
+
var result = _this.reconciler.apply(_this, __spreadArray([
|
|
406
|
+
target,
|
|
407
|
+
source,
|
|
408
|
+
sourceKey
|
|
409
|
+
], context, false));
|
|
410
|
+
if (result !== targetValue) {
|
|
411
|
+
target = _this.shallowCopyForMerge(target);
|
|
412
|
+
target[sourceKey] = result;
|
|
413
|
+
}
|
|
459
414
|
}
|
|
415
|
+
} else {
|
|
416
|
+
target = _this.shallowCopyForMerge(target);
|
|
417
|
+
target[sourceKey] = source[sourceKey];
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
return target;
|
|
421
|
+
}
|
|
422
|
+
return source;
|
|
423
|
+
};
|
|
424
|
+
DeepMerger2.prototype.shallowCopyForMerge = function(value) {
|
|
425
|
+
if (isNonNullObject(value)) {
|
|
426
|
+
if (!this.pastCopies.has(value)) {
|
|
427
|
+
if (Array.isArray(value)) {
|
|
428
|
+
value = value.slice(0);
|
|
429
|
+
} else {
|
|
430
|
+
value = __assign({ __proto__: Object.getPrototypeOf(value) }, value);
|
|
431
|
+
}
|
|
432
|
+
this.pastCopies.add(value);
|
|
460
433
|
}
|
|
461
|
-
|
|
434
|
+
}
|
|
435
|
+
return value;
|
|
462
436
|
};
|
|
463
|
-
return
|
|
464
|
-
}()
|
|
437
|
+
return DeepMerger2;
|
|
438
|
+
}()
|
|
439
|
+
);
|
|
465
440
|
|
|
466
441
|
var toString = Object.prototype.toString;
|
|
467
|
-
/**
|
|
468
|
-
* Deeply clones a value to create a new instance.
|
|
469
|
-
*/
|
|
470
442
|
function cloneDeep(value) {
|
|
471
|
-
|
|
443
|
+
return cloneDeepHelper(value);
|
|
472
444
|
}
|
|
473
445
|
function cloneDeepHelper(val, seen) {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
});
|
|
497
|
-
return copy_2;
|
|
498
|
-
}
|
|
499
|
-
default:
|
|
500
|
-
return val;
|
|
446
|
+
switch (toString.call(val)) {
|
|
447
|
+
case "[object Array]": {
|
|
448
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
449
|
+
if (seen.has(val))
|
|
450
|
+
return seen.get(val);
|
|
451
|
+
var copy_1 = val.slice(0);
|
|
452
|
+
seen.set(val, copy_1);
|
|
453
|
+
copy_1.forEach(function(child, i) {
|
|
454
|
+
copy_1[i] = cloneDeepHelper(child, seen);
|
|
455
|
+
});
|
|
456
|
+
return copy_1;
|
|
457
|
+
}
|
|
458
|
+
case "[object Object]": {
|
|
459
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
460
|
+
if (seen.has(val))
|
|
461
|
+
return seen.get(val);
|
|
462
|
+
var copy_2 = Object.create(Object.getPrototypeOf(val));
|
|
463
|
+
seen.set(val, copy_2);
|
|
464
|
+
Object.keys(val).forEach(function(key) {
|
|
465
|
+
copy_2[key] = cloneDeepHelper(val[key], seen);
|
|
466
|
+
});
|
|
467
|
+
return copy_2;
|
|
501
468
|
}
|
|
469
|
+
default:
|
|
470
|
+
return val;
|
|
471
|
+
}
|
|
502
472
|
}
|
|
503
473
|
|
|
504
474
|
function isObject$1(val) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-config",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.1.0-canary.
|
|
5
|
+
"version": "9.1.0-canary.18",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./src/index.ts",
|
|
8
8
|
"exports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"prepack": "pkgroll --clean-dist"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphql-codegen/cli": "5.0.
|
|
22
|
+
"@graphql-codegen/cli": "5.0.5",
|
|
23
23
|
"@swc/core": "1.10.1",
|
|
24
24
|
"@swc/wasm-web": "^1.10.1",
|
|
25
25
|
"@types/circular-dependency-plugin": "^5.0.8",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"zod": "^3.24.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
46
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.18",
|
|
47
47
|
"@lingui/loader": "*",
|
|
48
48
|
"@lingui/macro": "*",
|
|
49
49
|
"@lingui/react": "*",
|