@cedarjs/web 4.0.0-canary.13669 → 4.0.0-canary.13670
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.
|
@@ -109,13 +109,13 @@ function wrapConsoleMethod(name) {
|
|
|
109
109
|
})(invariant || (invariant = {}));
|
|
110
110
|
|
|
111
111
|
// ../../node_modules/@apollo/client/version.js
|
|
112
|
-
var version = "3.
|
|
112
|
+
var version = "3.14.1";
|
|
113
113
|
|
|
114
114
|
// ../../node_modules/@apollo/client/utilities/globals/maybe.js
|
|
115
115
|
function maybe(thunk) {
|
|
116
116
|
try {
|
|
117
117
|
return thunk();
|
|
118
|
-
} catch (
|
|
118
|
+
} catch (_a3) {
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -203,7 +203,7 @@ function stringify(arg) {
|
|
|
203
203
|
}
|
|
204
204
|
try {
|
|
205
205
|
return stringifyForDisplay(arg, 2).slice(0, 1e3);
|
|
206
|
-
} catch (
|
|
206
|
+
} catch (_a3) {
|
|
207
207
|
return "<non-serializable>";
|
|
208
208
|
}
|
|
209
209
|
}
|
|
@@ -1266,8 +1266,8 @@ function getCurrentCacheSizes() {
|
|
|
1266
1266
|
"inMemoryCache.executeSelectionSet": 5e4,
|
|
1267
1267
|
"inMemoryCache.executeSubSelectedArray": 1e4
|
|
1268
1268
|
};
|
|
1269
|
-
return Object.fromEntries(Object.entries(defaults).map(function(
|
|
1270
|
-
var k =
|
|
1269
|
+
return Object.fromEntries(Object.entries(defaults).map(function(_a3) {
|
|
1270
|
+
var k = _a3[0], v = _a3[1];
|
|
1271
1271
|
return [
|
|
1272
1272
|
k,
|
|
1273
1273
|
cacheSizes[k] || v
|
|
@@ -1275,12 +1275,12 @@ function getCurrentCacheSizes() {
|
|
|
1275
1275
|
}));
|
|
1276
1276
|
}
|
|
1277
1277
|
function _getApolloClientMemoryInternals() {
|
|
1278
|
-
var
|
|
1278
|
+
var _a3, _b, _c, _d, _e;
|
|
1279
1279
|
if (!(globalThis.__DEV__ !== false))
|
|
1280
1280
|
throw new Error("only supported in development mode");
|
|
1281
1281
|
return {
|
|
1282
1282
|
limits: getCurrentCacheSizes(),
|
|
1283
|
-
sizes: __assign({ print: (
|
|
1283
|
+
sizes: __assign({ print: (_a3 = globalCaches.print) === null || _a3 === void 0 ? void 0 : _a3.call(globalCaches), parser: (_b = globalCaches.parser) === null || _b === void 0 ? void 0 : _b.call(globalCaches), canonicalStringify: (_c = globalCaches.canonicalStringify) === null || _c === void 0 ? void 0 : _c.call(globalCaches), links: linkInfo(this.link), queryManager: {
|
|
1284
1284
|
getDocumentInfo: this["queryManager"]["transformCache"].size,
|
|
1285
1285
|
documentTransforms: transformInfo(this["queryManager"].documentTransform)
|
|
1286
1286
|
} }, (_e = (_d = this.cache).getMemoryInternals) === null || _e === void 0 ? void 0 : _e.call(_d))
|
|
@@ -1325,9 +1325,9 @@ function recurseTransformInfo(transform) {
|
|
|
1325
1325
|
], recurseTransformInfo(transform === null || transform === void 0 ? void 0 : transform["left"]), true), recurseTransformInfo(transform === null || transform === void 0 ? void 0 : transform["right"]), true).filter(isDefined) : [];
|
|
1326
1326
|
}
|
|
1327
1327
|
function linkInfo(link) {
|
|
1328
|
-
var
|
|
1328
|
+
var _a3;
|
|
1329
1329
|
return link ? __spreadArray(__spreadArray([
|
|
1330
|
-
(
|
|
1330
|
+
(_a3 = link === null || link === void 0 ? void 0 : link.getMemoryInternals) === null || _a3 === void 0 ? void 0 : _a3.call(link)
|
|
1331
1331
|
], linkInfo(link === null || link === void 0 ? void 0 : link.left), true), linkInfo(link === null || link === void 0 ? void 0 : link.right), true).filter(isDefined) : [];
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
@@ -1340,6 +1340,379 @@ function getOperationName(doc) {
|
|
|
1340
1340
|
})[0] || null;
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
+
// ../../node_modules/optimism/node_modules/@wry/trie/lib/index.js
|
|
1344
|
+
var { forEach, slice } = Array.prototype;
|
|
1345
|
+
var { hasOwnProperty } = Object.prototype;
|
|
1346
|
+
|
|
1347
|
+
// ../../node_modules/@wry/context/lib/slot.js
|
|
1348
|
+
var currentContext = null;
|
|
1349
|
+
var MISSING_VALUE = {};
|
|
1350
|
+
var idCounter = 1;
|
|
1351
|
+
var makeSlotClass = () => class Slot {
|
|
1352
|
+
constructor() {
|
|
1353
|
+
this.id = [
|
|
1354
|
+
"slot",
|
|
1355
|
+
idCounter++,
|
|
1356
|
+
Date.now(),
|
|
1357
|
+
Math.random().toString(36).slice(2)
|
|
1358
|
+
].join(":");
|
|
1359
|
+
}
|
|
1360
|
+
hasValue() {
|
|
1361
|
+
for (let context = currentContext; context; context = context.parent) {
|
|
1362
|
+
if (this.id in context.slots) {
|
|
1363
|
+
const value = context.slots[this.id];
|
|
1364
|
+
if (value === MISSING_VALUE)
|
|
1365
|
+
break;
|
|
1366
|
+
if (context !== currentContext) {
|
|
1367
|
+
currentContext.slots[this.id] = value;
|
|
1368
|
+
}
|
|
1369
|
+
return true;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
if (currentContext) {
|
|
1373
|
+
currentContext.slots[this.id] = MISSING_VALUE;
|
|
1374
|
+
}
|
|
1375
|
+
return false;
|
|
1376
|
+
}
|
|
1377
|
+
getValue() {
|
|
1378
|
+
if (this.hasValue()) {
|
|
1379
|
+
return currentContext.slots[this.id];
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
withValue(value, callback, args, thisArg) {
|
|
1383
|
+
const slots = {
|
|
1384
|
+
__proto__: null,
|
|
1385
|
+
[this.id]: value
|
|
1386
|
+
};
|
|
1387
|
+
const parent = currentContext;
|
|
1388
|
+
currentContext = { parent, slots };
|
|
1389
|
+
try {
|
|
1390
|
+
return callback.apply(thisArg, args);
|
|
1391
|
+
} finally {
|
|
1392
|
+
currentContext = parent;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
// Capture the current context and wrap a callback function so that it
|
|
1396
|
+
// reestablishes the captured context when called.
|
|
1397
|
+
static bind(callback) {
|
|
1398
|
+
const context = currentContext;
|
|
1399
|
+
return function() {
|
|
1400
|
+
const saved = currentContext;
|
|
1401
|
+
try {
|
|
1402
|
+
currentContext = context;
|
|
1403
|
+
return callback.apply(this, arguments);
|
|
1404
|
+
} finally {
|
|
1405
|
+
currentContext = saved;
|
|
1406
|
+
}
|
|
1407
|
+
};
|
|
1408
|
+
}
|
|
1409
|
+
// Immediately run a callback function without any captured context.
|
|
1410
|
+
static noContext(callback, args, thisArg) {
|
|
1411
|
+
if (currentContext) {
|
|
1412
|
+
const saved = currentContext;
|
|
1413
|
+
try {
|
|
1414
|
+
currentContext = null;
|
|
1415
|
+
return callback.apply(thisArg, args);
|
|
1416
|
+
} finally {
|
|
1417
|
+
currentContext = saved;
|
|
1418
|
+
}
|
|
1419
|
+
} else {
|
|
1420
|
+
return callback.apply(thisArg, args);
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
};
|
|
1424
|
+
function maybe2(fn) {
|
|
1425
|
+
try {
|
|
1426
|
+
return fn();
|
|
1427
|
+
} catch (ignored) {
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
var globalKey = "@wry/context:Slot";
|
|
1431
|
+
var host = (
|
|
1432
|
+
// Prefer globalThis when available.
|
|
1433
|
+
// https://github.com/benjamn/wryware/issues/347
|
|
1434
|
+
maybe2(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
|
|
1435
|
+
// bundlers to the appropriate identifier (window, self, ...) depending on the
|
|
1436
|
+
// bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224
|
|
1437
|
+
maybe2(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
|
|
1438
|
+
// back to using the Array constructor as a namespace, but that was flagged in
|
|
1439
|
+
// https://github.com/benjamn/wryware/issues/347, and can be avoided.
|
|
1440
|
+
/* @__PURE__ */ Object.create(null)
|
|
1441
|
+
);
|
|
1442
|
+
var globalHost = host;
|
|
1443
|
+
var Slot = globalHost[globalKey] || // Earlier versions of this package stored the globalKey property on the Array
|
|
1444
|
+
// constructor, so we check there as well, to prevent Slot class duplication.
|
|
1445
|
+
Array[globalKey] || (function(Slot2) {
|
|
1446
|
+
try {
|
|
1447
|
+
Object.defineProperty(globalHost, globalKey, {
|
|
1448
|
+
value: Slot2,
|
|
1449
|
+
enumerable: false,
|
|
1450
|
+
writable: false,
|
|
1451
|
+
// When it was possible for globalHost to be the Array constructor (a
|
|
1452
|
+
// legacy Slot dedup strategy), it was important for the property to be
|
|
1453
|
+
// configurable:true so it could be deleted. That does not seem to be as
|
|
1454
|
+
// important when globalHost is the global object, but I don't want to
|
|
1455
|
+
// cause similar problems again, and configurable:true seems safest.
|
|
1456
|
+
// https://github.com/endojs/endo/issues/576#issuecomment-1178274008
|
|
1457
|
+
configurable: true
|
|
1458
|
+
});
|
|
1459
|
+
} finally {
|
|
1460
|
+
return Slot2;
|
|
1461
|
+
}
|
|
1462
|
+
})(makeSlotClass());
|
|
1463
|
+
|
|
1464
|
+
// ../../node_modules/@wry/context/lib/index.js
|
|
1465
|
+
var { bind, noContext } = Slot;
|
|
1466
|
+
|
|
1467
|
+
// ../../node_modules/optimism/lib/context.js
|
|
1468
|
+
var parentEntrySlot = new Slot();
|
|
1469
|
+
|
|
1470
|
+
// ../../node_modules/optimism/lib/helpers.js
|
|
1471
|
+
var { hasOwnProperty: hasOwnProperty2 } = Object.prototype;
|
|
1472
|
+
var arrayFromSet = Array.from || function(set) {
|
|
1473
|
+
const array = [];
|
|
1474
|
+
set.forEach((item) => array.push(item));
|
|
1475
|
+
return array;
|
|
1476
|
+
};
|
|
1477
|
+
function maybeUnsubscribe(entryOrDep) {
|
|
1478
|
+
const { unsubscribe } = entryOrDep;
|
|
1479
|
+
if (typeof unsubscribe === "function") {
|
|
1480
|
+
entryOrDep.unsubscribe = void 0;
|
|
1481
|
+
unsubscribe();
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
// ../../node_modules/optimism/lib/entry.js
|
|
1486
|
+
var emptySetPool = [];
|
|
1487
|
+
var POOL_TARGET_SIZE = 100;
|
|
1488
|
+
function assert(condition, optionalMessage) {
|
|
1489
|
+
if (!condition) {
|
|
1490
|
+
throw new Error(optionalMessage || "assertion failure");
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function valueIs(a, b) {
|
|
1494
|
+
const len = a.length;
|
|
1495
|
+
return (
|
|
1496
|
+
// Unknown values are not equal to each other.
|
|
1497
|
+
len > 0 && // Both values must be ordinary (or both exceptional) to be equal.
|
|
1498
|
+
len === b.length && // The underlying value or exception must be the same.
|
|
1499
|
+
a[len - 1] === b[len - 1]
|
|
1500
|
+
);
|
|
1501
|
+
}
|
|
1502
|
+
function valueGet(value) {
|
|
1503
|
+
switch (value.length) {
|
|
1504
|
+
case 0:
|
|
1505
|
+
throw new Error("unknown value");
|
|
1506
|
+
case 1:
|
|
1507
|
+
return value[0];
|
|
1508
|
+
case 2:
|
|
1509
|
+
throw value[1];
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
function valueCopy(value) {
|
|
1513
|
+
return value.slice(0);
|
|
1514
|
+
}
|
|
1515
|
+
var Entry = class _Entry {
|
|
1516
|
+
constructor(fn) {
|
|
1517
|
+
this.fn = fn;
|
|
1518
|
+
this.parents = /* @__PURE__ */ new Set();
|
|
1519
|
+
this.childValues = /* @__PURE__ */ new Map();
|
|
1520
|
+
this.dirtyChildren = null;
|
|
1521
|
+
this.dirty = true;
|
|
1522
|
+
this.recomputing = false;
|
|
1523
|
+
this.value = [];
|
|
1524
|
+
this.deps = null;
|
|
1525
|
+
++_Entry.count;
|
|
1526
|
+
}
|
|
1527
|
+
peek() {
|
|
1528
|
+
if (this.value.length === 1 && !mightBeDirty(this)) {
|
|
1529
|
+
rememberParent(this);
|
|
1530
|
+
return this.value[0];
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
// This is the most important method of the Entry API, because it
|
|
1534
|
+
// determines whether the cached this.value can be returned immediately,
|
|
1535
|
+
// or must be recomputed. The overall performance of the caching system
|
|
1536
|
+
// depends on the truth of the following observations: (1) this.dirty is
|
|
1537
|
+
// usually false, (2) this.dirtyChildren is usually null/empty, and thus
|
|
1538
|
+
// (3) valueGet(this.value) is usually returned without recomputation.
|
|
1539
|
+
recompute(args) {
|
|
1540
|
+
assert(!this.recomputing, "already recomputing");
|
|
1541
|
+
rememberParent(this);
|
|
1542
|
+
return mightBeDirty(this) ? reallyRecompute(this, args) : valueGet(this.value);
|
|
1543
|
+
}
|
|
1544
|
+
setDirty() {
|
|
1545
|
+
if (this.dirty)
|
|
1546
|
+
return;
|
|
1547
|
+
this.dirty = true;
|
|
1548
|
+
reportDirty(this);
|
|
1549
|
+
maybeUnsubscribe(this);
|
|
1550
|
+
}
|
|
1551
|
+
dispose() {
|
|
1552
|
+
this.setDirty();
|
|
1553
|
+
forgetChildren(this);
|
|
1554
|
+
eachParent(this, (parent, child) => {
|
|
1555
|
+
parent.setDirty();
|
|
1556
|
+
forgetChild(parent, this);
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
forget() {
|
|
1560
|
+
this.dispose();
|
|
1561
|
+
}
|
|
1562
|
+
dependOn(dep2) {
|
|
1563
|
+
dep2.add(this);
|
|
1564
|
+
if (!this.deps) {
|
|
1565
|
+
this.deps = emptySetPool.pop() || /* @__PURE__ */ new Set();
|
|
1566
|
+
}
|
|
1567
|
+
this.deps.add(dep2);
|
|
1568
|
+
}
|
|
1569
|
+
forgetDeps() {
|
|
1570
|
+
if (this.deps) {
|
|
1571
|
+
arrayFromSet(this.deps).forEach((dep2) => dep2.delete(this));
|
|
1572
|
+
this.deps.clear();
|
|
1573
|
+
emptySetPool.push(this.deps);
|
|
1574
|
+
this.deps = null;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
};
|
|
1578
|
+
Entry.count = 0;
|
|
1579
|
+
function rememberParent(child) {
|
|
1580
|
+
const parent = parentEntrySlot.getValue();
|
|
1581
|
+
if (parent) {
|
|
1582
|
+
child.parents.add(parent);
|
|
1583
|
+
if (!parent.childValues.has(child)) {
|
|
1584
|
+
parent.childValues.set(child, []);
|
|
1585
|
+
}
|
|
1586
|
+
if (mightBeDirty(child)) {
|
|
1587
|
+
reportDirtyChild(parent, child);
|
|
1588
|
+
} else {
|
|
1589
|
+
reportCleanChild(parent, child);
|
|
1590
|
+
}
|
|
1591
|
+
return parent;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
function reallyRecompute(entry, args) {
|
|
1595
|
+
forgetChildren(entry);
|
|
1596
|
+
parentEntrySlot.withValue(entry, recomputeNewValue, [entry, args]);
|
|
1597
|
+
if (maybeSubscribe(entry, args)) {
|
|
1598
|
+
setClean(entry);
|
|
1599
|
+
}
|
|
1600
|
+
return valueGet(entry.value);
|
|
1601
|
+
}
|
|
1602
|
+
function recomputeNewValue(entry, args) {
|
|
1603
|
+
entry.recomputing = true;
|
|
1604
|
+
const { normalizeResult } = entry;
|
|
1605
|
+
let oldValueCopy;
|
|
1606
|
+
if (normalizeResult && entry.value.length === 1) {
|
|
1607
|
+
oldValueCopy = valueCopy(entry.value);
|
|
1608
|
+
}
|
|
1609
|
+
entry.value.length = 0;
|
|
1610
|
+
try {
|
|
1611
|
+
entry.value[0] = entry.fn.apply(null, args);
|
|
1612
|
+
if (normalizeResult && oldValueCopy && !valueIs(oldValueCopy, entry.value)) {
|
|
1613
|
+
try {
|
|
1614
|
+
entry.value[0] = normalizeResult(entry.value[0], oldValueCopy[0]);
|
|
1615
|
+
} catch (_a3) {
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
} catch (e) {
|
|
1619
|
+
entry.value[1] = e;
|
|
1620
|
+
}
|
|
1621
|
+
entry.recomputing = false;
|
|
1622
|
+
}
|
|
1623
|
+
function mightBeDirty(entry) {
|
|
1624
|
+
return entry.dirty || !!(entry.dirtyChildren && entry.dirtyChildren.size);
|
|
1625
|
+
}
|
|
1626
|
+
function setClean(entry) {
|
|
1627
|
+
entry.dirty = false;
|
|
1628
|
+
if (mightBeDirty(entry)) {
|
|
1629
|
+
return;
|
|
1630
|
+
}
|
|
1631
|
+
reportClean(entry);
|
|
1632
|
+
}
|
|
1633
|
+
function reportDirty(child) {
|
|
1634
|
+
eachParent(child, reportDirtyChild);
|
|
1635
|
+
}
|
|
1636
|
+
function reportClean(child) {
|
|
1637
|
+
eachParent(child, reportCleanChild);
|
|
1638
|
+
}
|
|
1639
|
+
function eachParent(child, callback) {
|
|
1640
|
+
const parentCount = child.parents.size;
|
|
1641
|
+
if (parentCount) {
|
|
1642
|
+
const parents = arrayFromSet(child.parents);
|
|
1643
|
+
for (let i = 0; i < parentCount; ++i) {
|
|
1644
|
+
callback(parents[i], child);
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
function reportDirtyChild(parent, child) {
|
|
1649
|
+
assert(parent.childValues.has(child));
|
|
1650
|
+
assert(mightBeDirty(child));
|
|
1651
|
+
const parentWasClean = !mightBeDirty(parent);
|
|
1652
|
+
if (!parent.dirtyChildren) {
|
|
1653
|
+
parent.dirtyChildren = emptySetPool.pop() || /* @__PURE__ */ new Set();
|
|
1654
|
+
} else if (parent.dirtyChildren.has(child)) {
|
|
1655
|
+
return;
|
|
1656
|
+
}
|
|
1657
|
+
parent.dirtyChildren.add(child);
|
|
1658
|
+
if (parentWasClean) {
|
|
1659
|
+
reportDirty(parent);
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
function reportCleanChild(parent, child) {
|
|
1663
|
+
assert(parent.childValues.has(child));
|
|
1664
|
+
assert(!mightBeDirty(child));
|
|
1665
|
+
const childValue = parent.childValues.get(child);
|
|
1666
|
+
if (childValue.length === 0) {
|
|
1667
|
+
parent.childValues.set(child, valueCopy(child.value));
|
|
1668
|
+
} else if (!valueIs(childValue, child.value)) {
|
|
1669
|
+
parent.setDirty();
|
|
1670
|
+
}
|
|
1671
|
+
removeDirtyChild(parent, child);
|
|
1672
|
+
if (mightBeDirty(parent)) {
|
|
1673
|
+
return;
|
|
1674
|
+
}
|
|
1675
|
+
reportClean(parent);
|
|
1676
|
+
}
|
|
1677
|
+
function removeDirtyChild(parent, child) {
|
|
1678
|
+
const dc = parent.dirtyChildren;
|
|
1679
|
+
if (dc) {
|
|
1680
|
+
dc.delete(child);
|
|
1681
|
+
if (dc.size === 0) {
|
|
1682
|
+
if (emptySetPool.length < POOL_TARGET_SIZE) {
|
|
1683
|
+
emptySetPool.push(dc);
|
|
1684
|
+
}
|
|
1685
|
+
parent.dirtyChildren = null;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
function forgetChildren(parent) {
|
|
1690
|
+
if (parent.childValues.size > 0) {
|
|
1691
|
+
parent.childValues.forEach((_value, child) => {
|
|
1692
|
+
forgetChild(parent, child);
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
parent.forgetDeps();
|
|
1696
|
+
assert(parent.dirtyChildren === null);
|
|
1697
|
+
}
|
|
1698
|
+
function forgetChild(parent, child) {
|
|
1699
|
+
child.parents.delete(parent);
|
|
1700
|
+
parent.childValues.delete(child);
|
|
1701
|
+
removeDirtyChild(parent, child);
|
|
1702
|
+
}
|
|
1703
|
+
function maybeSubscribe(entry, args) {
|
|
1704
|
+
if (typeof entry.subscribe === "function") {
|
|
1705
|
+
try {
|
|
1706
|
+
maybeUnsubscribe(entry);
|
|
1707
|
+
entry.unsubscribe = entry.subscribe.apply(null, args);
|
|
1708
|
+
} catch (e) {
|
|
1709
|
+
entry.setDirty();
|
|
1710
|
+
return false;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
return true;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1343
1716
|
// ../../node_modules/@apollo/client/utilities/graphql/print.js
|
|
1344
1717
|
var printCache;
|
|
1345
1718
|
var print2 = Object.assign(function(ast) {
|
|
@@ -1612,7 +1985,7 @@ var Observable = /* @__PURE__ */ (function() {
|
|
|
1612
1985
|
}
|
|
1613
1986
|
return new Subscription(observer, this._subscriber);
|
|
1614
1987
|
};
|
|
1615
|
-
_proto3.forEach = function
|
|
1988
|
+
_proto3.forEach = function forEach2(fn) {
|
|
1616
1989
|
var _this = this;
|
|
1617
1990
|
return new Promise(function(resolve, reject) {
|
|
1618
1991
|
if (typeof fn !== "function") {
|
|
@@ -1928,6 +2301,21 @@ if (!prototype[fakeObsSymbol]) {
|
|
|
1928
2301
|
};
|
|
1929
2302
|
}
|
|
1930
2303
|
|
|
2304
|
+
// ../../node_modules/@apollo/client/utilities/deprecation/index.js
|
|
2305
|
+
var _a2;
|
|
2306
|
+
var muteAllDeprecations = /* @__PURE__ */ Symbol.for("apollo.deprecations");
|
|
2307
|
+
var deprecationsSlot = /* @__PURE__ */ Symbol.for("apollo.deprecations.slot");
|
|
2308
|
+
var global2 = global_default;
|
|
2309
|
+
var slot = (_a2 = global2[deprecationsSlot]) !== null && _a2 !== void 0 ? _a2 : global2[deprecationsSlot] = new Slot();
|
|
2310
|
+
function isMuted(name) {
|
|
2311
|
+
return global2[muteAllDeprecations] || (slot.getValue() || []).includes(name);
|
|
2312
|
+
}
|
|
2313
|
+
function warnDeprecated(name, cb) {
|
|
2314
|
+
if (!isMuted(name)) {
|
|
2315
|
+
cb();
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
|
|
1931
2319
|
// ../../node_modules/@apollo/client/link/utils/throwServerError.js
|
|
1932
2320
|
var throwServerError = function(response, result2, message) {
|
|
1933
2321
|
var error = new Error(message);
|
|
@@ -1947,10 +2335,10 @@ function validateOperation(operation) {
|
|
|
1947
2335
|
"extensions",
|
|
1948
2336
|
"context"
|
|
1949
2337
|
];
|
|
1950
|
-
for (var _i = 0,
|
|
1951
|
-
var key =
|
|
2338
|
+
for (var _i = 0, _a3 = Object.keys(operation); _i < _a3.length; _i++) {
|
|
2339
|
+
var key = _a3[_i];
|
|
1952
2340
|
if (OPERATION_FIELDS.indexOf(key) < 0) {
|
|
1953
|
-
throw newInvariantError(
|
|
2341
|
+
throw newInvariantError(58, key);
|
|
1954
2342
|
}
|
|
1955
2343
|
}
|
|
1956
2344
|
return operation;
|
|
@@ -2044,7 +2432,7 @@ var ApolloLink = (
|
|
|
2044
2432
|
ApolloLink2.concat = function(first, second) {
|
|
2045
2433
|
var firstLink = toLink(first);
|
|
2046
2434
|
if (isTerminating(firstLink)) {
|
|
2047
|
-
globalThis.__DEV__ !== false && invariant2.warn(
|
|
2435
|
+
globalThis.__DEV__ !== false && invariant2.warn(47, firstLink);
|
|
2048
2436
|
return firstLink;
|
|
2049
2437
|
}
|
|
2050
2438
|
var nextLink = toLink(second);
|
|
@@ -2071,9 +2459,14 @@ var ApolloLink = (
|
|
|
2071
2459
|
return ApolloLink2.concat(this, next);
|
|
2072
2460
|
};
|
|
2073
2461
|
ApolloLink2.prototype.request = function(operation, forward) {
|
|
2074
|
-
throw newInvariantError(
|
|
2462
|
+
throw newInvariantError(48);
|
|
2075
2463
|
};
|
|
2076
2464
|
ApolloLink2.prototype.onError = function(error, observer) {
|
|
2465
|
+
if (globalThis.__DEV__ !== false) {
|
|
2466
|
+
warnDeprecated("onError", function() {
|
|
2467
|
+
globalThis.__DEV__ !== false && invariant2.warn(49);
|
|
2468
|
+
});
|
|
2469
|
+
}
|
|
2077
2470
|
if (observer && observer.error) {
|
|
2078
2471
|
observer.error(error);
|
|
2079
2472
|
return false;
|
|
@@ -2081,6 +2474,9 @@ var ApolloLink = (
|
|
|
2081
2474
|
throw error;
|
|
2082
2475
|
};
|
|
2083
2476
|
ApolloLink2.prototype.setOnError = function(fn) {
|
|
2477
|
+
if (globalThis.__DEV__ !== false) {
|
|
2478
|
+
globalThis.__DEV__ !== false && invariant2.warn(50);
|
|
2479
|
+
}
|
|
2084
2480
|
this.onError = fn;
|
|
2085
2481
|
return this;
|
|
2086
2482
|
};
|
|
@@ -2098,7 +2494,7 @@ var createSignalIfSupported = function() {
|
|
|
2098
2494
|
};
|
|
2099
2495
|
|
|
2100
2496
|
// ../../node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
|
|
2101
|
-
var
|
|
2497
|
+
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
2102
2498
|
function parseJsonBody(response, bodyText) {
|
|
2103
2499
|
if (response.status >= 300) {
|
|
2104
2500
|
var getResult = function() {
|
|
@@ -2126,7 +2522,7 @@ function parseAndCheckHttpResponse(operations) {
|
|
|
2126
2522
|
return response.text().then(function(bodyText) {
|
|
2127
2523
|
return parseJsonBody(response, bodyText);
|
|
2128
2524
|
}).then(function(result2) {
|
|
2129
|
-
if (!Array.isArray(result2) && !
|
|
2525
|
+
if (!Array.isArray(result2) && !hasOwnProperty3.call(result2, "data") && !hasOwnProperty3.call(result2, "errors")) {
|
|
2130
2526
|
throwServerError(response, result2, "Server response was missing for query '".concat(Array.isArray(operations) ? operations.map(function(op) {
|
|
2131
2527
|
return op.operationName;
|
|
2132
2528
|
}) : operations.operationName, "'."));
|
|
@@ -2142,7 +2538,7 @@ var serializeFetchParameter = function(p, label) {
|
|
|
2142
2538
|
try {
|
|
2143
2539
|
serialized = JSON.stringify(p);
|
|
2144
2540
|
} catch (e) {
|
|
2145
|
-
var parseError = newInvariantError(
|
|
2541
|
+
var parseError = newInvariantError(54, label, e.message);
|
|
2146
2542
|
parseError.parseError = e;
|
|
2147
2543
|
throw parseError;
|
|
2148
2544
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/web",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13670+3bc22c4c4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -143,9 +143,9 @@
|
|
|
143
143
|
"test:watch": "vitest watch"
|
|
144
144
|
},
|
|
145
145
|
"dependencies": {
|
|
146
|
-
"@apollo/client": "3.
|
|
147
|
-
"@cedarjs/auth": "4.0.0-canary.
|
|
148
|
-
"@cedarjs/server-store": "4.0.0-canary.
|
|
146
|
+
"@apollo/client": "3.14.1",
|
|
147
|
+
"@cedarjs/auth": "4.0.0-canary.13670",
|
|
148
|
+
"@cedarjs/server-store": "4.0.0-canary.13670",
|
|
149
149
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
150
150
|
"@whatwg-node/fetch": "0.10.13",
|
|
151
151
|
"apollo-upload-client": "18.0.1",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"@babel/core": "^7.26.10",
|
|
165
165
|
"@babel/plugin-transform-runtime": "7.29.0",
|
|
166
166
|
"@babel/runtime": "7.29.2",
|
|
167
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
168
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
167
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13670",
|
|
168
|
+
"@cedarjs/internal": "4.0.0-canary.13670",
|
|
169
169
|
"@rollup/plugin-babel": "6.1.0",
|
|
170
170
|
"@testing-library/jest-dom": "6.9.1",
|
|
171
171
|
"@testing-library/react": "14.3.1",
|
|
@@ -189,5 +189,5 @@
|
|
|
189
189
|
"publishConfig": {
|
|
190
190
|
"access": "public"
|
|
191
191
|
},
|
|
192
|
-
"gitHead": "
|
|
192
|
+
"gitHead": "3bc22c4c4e25c716438a18a2585d50e25c8e1c0d"
|
|
193
193
|
}
|