@dereekb/model 13.43.0 → 14.0.0
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/index.esm.js +44 -75
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -52,7 +52,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
52
52
|
return _arr;
|
|
53
53
|
}
|
|
54
54
|
function _non_iterable_rest$3() {
|
|
55
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
55
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
56
56
|
}
|
|
57
57
|
function _sliced_to_array$3(arr, i) {
|
|
58
58
|
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
|
|
@@ -317,7 +317,7 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
317
317
|
return _arr;
|
|
318
318
|
}
|
|
319
319
|
function _non_iterable_rest$2() {
|
|
320
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
320
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
321
321
|
}
|
|
322
322
|
function _sliced_to_array$2(arr, i) {
|
|
323
323
|
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
@@ -912,9 +912,7 @@ function _array_with_holes$1(arr) {
|
|
|
912
912
|
if (Array.isArray(arr)) return arr;
|
|
913
913
|
}
|
|
914
914
|
function _class_call_check$2(instance, Constructor) {
|
|
915
|
-
if (!(instance instanceof Constructor))
|
|
916
|
-
throw new TypeError("Cannot call a class as a function");
|
|
917
|
-
}
|
|
915
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
918
916
|
}
|
|
919
917
|
function _defineProperties$1(target, props) {
|
|
920
918
|
for(var i = 0; i < props.length; i++){
|
|
@@ -937,9 +935,7 @@ function _define_property$3(obj, key, value) {
|
|
|
937
935
|
configurable: true,
|
|
938
936
|
writable: true
|
|
939
937
|
});
|
|
940
|
-
} else
|
|
941
|
-
obj[key] = value;
|
|
942
|
-
}
|
|
938
|
+
} else obj[key] = value;
|
|
943
939
|
return obj;
|
|
944
940
|
}
|
|
945
941
|
function _iterable_to_array_limit$1(arr, i) {
|
|
@@ -967,7 +963,7 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
967
963
|
return _arr;
|
|
968
964
|
}
|
|
969
965
|
function _non_iterable_rest$1() {
|
|
970
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
966
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
971
967
|
}
|
|
972
968
|
function _sliced_to_array$1(arr, i) {
|
|
973
969
|
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
@@ -1252,11 +1248,8 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1252
1248
|
reject(error);
|
|
1253
1249
|
return;
|
|
1254
1250
|
}
|
|
1255
|
-
if (info.done)
|
|
1256
|
-
|
|
1257
|
-
} else {
|
|
1258
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1259
|
-
}
|
|
1251
|
+
if (info.done) resolve(value);
|
|
1252
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
1260
1253
|
}
|
|
1261
1254
|
function _async_to_generator$3(fn) {
|
|
1262
1255
|
return function() {
|
|
@@ -1274,9 +1267,7 @@ function _async_to_generator$3(fn) {
|
|
|
1274
1267
|
};
|
|
1275
1268
|
}
|
|
1276
1269
|
function _class_call_check$1(instance, Constructor) {
|
|
1277
|
-
if (!(instance instanceof Constructor))
|
|
1278
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1279
|
-
}
|
|
1270
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
1280
1271
|
}
|
|
1281
1272
|
function _defineProperties(target, props) {
|
|
1282
1273
|
for(var i = 0; i < props.length; i++){
|
|
@@ -1299,9 +1290,7 @@ function _define_property$2(obj, key, value) {
|
|
|
1299
1290
|
configurable: true,
|
|
1300
1291
|
writable: true
|
|
1301
1292
|
});
|
|
1302
|
-
} else
|
|
1303
|
-
obj[key] = value;
|
|
1304
|
-
}
|
|
1293
|
+
} else obj[key] = value;
|
|
1305
1294
|
return obj;
|
|
1306
1295
|
}
|
|
1307
1296
|
function _ts_generator$3(thisArg, body) {
|
|
@@ -1601,9 +1590,7 @@ function _ts_generator$3(thisArg, body) {
|
|
|
1601
1590
|
}
|
|
1602
1591
|
|
|
1603
1592
|
function _assert_this_initialized(self) {
|
|
1604
|
-
if (self === void 0)
|
|
1605
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1606
|
-
}
|
|
1593
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1607
1594
|
return self;
|
|
1608
1595
|
}
|
|
1609
1596
|
function _call_super(_this, derived, args) {
|
|
@@ -1611,9 +1598,7 @@ function _call_super(_this, derived, args) {
|
|
|
1611
1598
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
1612
1599
|
}
|
|
1613
1600
|
function _class_call_check(instance, Constructor) {
|
|
1614
|
-
if (!(instance instanceof Constructor))
|
|
1615
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1616
|
-
}
|
|
1601
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
1617
1602
|
}
|
|
1618
1603
|
function _define_property$1(obj, key, value) {
|
|
1619
1604
|
if (key in obj) {
|
|
@@ -1623,9 +1608,7 @@ function _define_property$1(obj, key, value) {
|
|
|
1623
1608
|
configurable: true,
|
|
1624
1609
|
writable: true
|
|
1625
1610
|
});
|
|
1626
|
-
} else
|
|
1627
|
-
obj[key] = value;
|
|
1628
|
-
}
|
|
1611
|
+
} else obj[key] = value;
|
|
1629
1612
|
return obj;
|
|
1630
1613
|
}
|
|
1631
1614
|
function _get_prototype_of(o) {
|
|
@@ -1647,10 +1630,16 @@ function _inherits(subClass, superClass) {
|
|
|
1647
1630
|
});
|
|
1648
1631
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
1649
1632
|
}
|
|
1633
|
+
function _is_native_reflect_construct() {
|
|
1634
|
+
try {
|
|
1635
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1636
|
+
} catch (_) {}
|
|
1637
|
+
return (_is_native_reflect_construct = function() {
|
|
1638
|
+
return !!result;
|
|
1639
|
+
})();
|
|
1640
|
+
}
|
|
1650
1641
|
function _possible_constructor_return(self, call) {
|
|
1651
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
1652
|
-
return call;
|
|
1653
|
-
}
|
|
1642
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
1654
1643
|
return _assert_this_initialized(self);
|
|
1655
1644
|
}
|
|
1656
1645
|
function _set_prototype_of(o, p) {
|
|
@@ -1664,14 +1653,6 @@ function _type_of(obj) {
|
|
|
1664
1653
|
"@swc/helpers - typeof";
|
|
1665
1654
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1666
1655
|
}
|
|
1667
|
-
function _is_native_reflect_construct() {
|
|
1668
|
-
try {
|
|
1669
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
1670
|
-
} catch (_) {}
|
|
1671
|
-
return (_is_native_reflect_construct = function() {
|
|
1672
|
-
return !!result;
|
|
1673
|
-
})();
|
|
1674
|
-
}
|
|
1675
1656
|
/**
|
|
1676
1657
|
* Error thrown when the common type is not known/registered.
|
|
1677
1658
|
*/ var UnregisteredSyncEntityCommonTypeError = /*#__PURE__*/ function(BaseError) {
|
|
@@ -1798,11 +1779,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
1798
1779
|
reject(error);
|
|
1799
1780
|
return;
|
|
1800
1781
|
}
|
|
1801
|
-
if (info.done)
|
|
1802
|
-
|
|
1803
|
-
} else {
|
|
1804
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1805
|
-
}
|
|
1782
|
+
if (info.done) resolve(value);
|
|
1783
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
1806
1784
|
}
|
|
1807
1785
|
function _async_to_generator$2(fn) {
|
|
1808
1786
|
return function() {
|
|
@@ -1827,13 +1805,13 @@ function _define_property(obj, key, value) {
|
|
|
1827
1805
|
configurable: true,
|
|
1828
1806
|
writable: true
|
|
1829
1807
|
});
|
|
1830
|
-
} else
|
|
1831
|
-
obj[key] = value;
|
|
1832
|
-
}
|
|
1808
|
+
} else obj[key] = value;
|
|
1833
1809
|
return obj;
|
|
1834
1810
|
}
|
|
1835
1811
|
function _iterable_to_array(iter) {
|
|
1836
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
1812
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
1813
|
+
return Array.from(iter);
|
|
1814
|
+
}
|
|
1837
1815
|
}
|
|
1838
1816
|
function _iterable_to_array_limit(arr, i) {
|
|
1839
1817
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
@@ -1860,10 +1838,10 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
1860
1838
|
return _arr;
|
|
1861
1839
|
}
|
|
1862
1840
|
function _non_iterable_rest() {
|
|
1863
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
1841
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1864
1842
|
}
|
|
1865
1843
|
function _non_iterable_spread() {
|
|
1866
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
1844
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1867
1845
|
}
|
|
1868
1846
|
function _object_spread(target) {
|
|
1869
1847
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -1890,9 +1868,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
1890
1868
|
}
|
|
1891
1869
|
function _object_spread_props(target, source) {
|
|
1892
1870
|
source = source != null ? source : {};
|
|
1893
|
-
if (Object.getOwnPropertyDescriptors)
|
|
1894
|
-
|
|
1895
|
-
} else {
|
|
1871
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1872
|
+
else {
|
|
1896
1873
|
ownKeys(Object(source)).forEach(function(key) {
|
|
1897
1874
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1898
1875
|
});
|
|
@@ -1905,14 +1882,6 @@ function _sliced_to_array(arr, i) {
|
|
|
1905
1882
|
function _to_consumable_array(arr) {
|
|
1906
1883
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
1907
1884
|
}
|
|
1908
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
1909
|
-
if (!o) return;
|
|
1910
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
1911
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1912
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1913
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1914
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
1915
|
-
}
|
|
1916
1885
|
function _ts_generator$2(thisArg, body) {
|
|
1917
1886
|
var f, y, t, _ = {
|
|
1918
1887
|
label: 0,
|
|
@@ -2012,6 +1981,14 @@ function _ts_generator$2(thisArg, body) {
|
|
|
2012
1981
|
};
|
|
2013
1982
|
}
|
|
2014
1983
|
}
|
|
1984
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
1985
|
+
if (!o) return;
|
|
1986
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
1987
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1988
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1989
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1990
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
1991
|
+
}
|
|
2015
1992
|
/**
|
|
2016
1993
|
* Creates a {@link BasicSyncEntityCommonTypeSynchronizer} that orchestrates synchronization across multiple sources
|
|
2017
1994
|
* for a specific entity common type.
|
|
@@ -2446,11 +2423,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
2446
2423
|
reject(error);
|
|
2447
2424
|
return;
|
|
2448
2425
|
}
|
|
2449
|
-
if (info.done)
|
|
2450
|
-
|
|
2451
|
-
} else {
|
|
2452
|
-
Promise.resolve(value).then(_next, _throw);
|
|
2453
|
-
}
|
|
2426
|
+
if (info.done) resolve(value);
|
|
2427
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
2454
2428
|
}
|
|
2455
2429
|
function _async_to_generator$1(fn) {
|
|
2456
2430
|
return function() {
|
|
@@ -2471,9 +2445,7 @@ function _instanceof(left, right) {
|
|
|
2471
2445
|
"@swc/helpers - instanceof";
|
|
2472
2446
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
2473
2447
|
return !!right[Symbol.hasInstance](left);
|
|
2474
|
-
} else
|
|
2475
|
-
return left instanceof right;
|
|
2476
|
-
}
|
|
2448
|
+
} else return left instanceof right;
|
|
2477
2449
|
}
|
|
2478
2450
|
function _ts_generator$1(thisArg, body) {
|
|
2479
2451
|
var f, y, t, _ = {
|
|
@@ -2774,11 +2746,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
2774
2746
|
reject(error);
|
|
2775
2747
|
return;
|
|
2776
2748
|
}
|
|
2777
|
-
if (info.done)
|
|
2778
|
-
|
|
2779
|
-
} else {
|
|
2780
|
-
Promise.resolve(value).then(_next, _throw);
|
|
2781
|
-
}
|
|
2749
|
+
if (info.done) resolve(value);
|
|
2750
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
2782
2751
|
}
|
|
2783
2752
|
function _async_to_generator(fn) {
|
|
2784
2753
|
return function() {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/model",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@dereekb/util": "
|
|
7
|
+
"@dereekb/util": "14.0.0",
|
|
8
8
|
"arktype": "^2.2.0",
|
|
9
9
|
"make-error": "^1.3.6"
|
|
10
10
|
},
|