@dereekb/model 13.5.0 → 13.5.1

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.
Files changed (3) hide show
  1. package/index.cjs.js +11 -36
  2. package/index.esm.js +11 -36
  3. package/package.json +2 -2
package/index.cjs.js CHANGED
@@ -87,7 +87,7 @@ var makeError = require('make-error');
87
87
  d: "0 < string <= ".concat(WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH)
88
88
  });
89
89
 
90
- function _array_like_to_array$3(arr, len) {
90
+ function _array_like_to_array$2(arr, len) {
91
91
  if (len == null || len > arr.length) len = arr.length;
92
92
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
93
93
  return arr2;
@@ -123,15 +123,15 @@ function _non_iterable_rest$2() {
123
123
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
124
124
  }
125
125
  function _sliced_to_array$2(arr, i) {
126
- return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$2();
126
+ return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
127
127
  }
128
- function _unsupported_iterable_to_array$3(o, minLen) {
128
+ function _unsupported_iterable_to_array$2(o, minLen) {
129
129
  if (!o) return;
130
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
130
+ if (typeof o === "string") return _array_like_to_array$2(o, minLen);
131
131
  var n = Object.prototype.toString.call(o).slice(8, -1);
132
132
  if (n === "Object" && o.constructor) n = o.constructor.name;
133
133
  if (n === "Map" || n === "Set") return Array.from(n);
134
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
134
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
135
135
  }
136
136
  /**
137
137
  * Maximum character length for a {@link WebsiteFileLinkType}. Matches {@link WEBSITE_LINK_TYPE_MAX_LENGTH}.
@@ -700,7 +700,7 @@ function _unsupported_iterable_to_array$3(o, minLen) {
700
700
  return "".concat(SPOTIFY_BASE_URL, "/user/").concat(profileId);
701
701
  }
702
702
 
703
- function _array_like_to_array$2(arr, len) {
703
+ function _array_like_to_array$1(arr, len) {
704
704
  if (len == null || len > arr.length) len = arr.length;
705
705
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
706
706
  return arr2;
@@ -767,15 +767,15 @@ function _non_iterable_rest$1() {
767
767
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
768
768
  }
769
769
  function _sliced_to_array$1(arr, i) {
770
- return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$1();
770
+ return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
771
771
  }
772
- function _unsupported_iterable_to_array$2(o, minLen) {
772
+ function _unsupported_iterable_to_array$1(o, minLen) {
773
773
  if (!o) return;
774
- if (typeof o === "string") return _array_like_to_array$2(o, minLen);
774
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
775
775
  var n = Object.prototype.toString.call(o).slice(8, -1);
776
776
  if (n === "Object" && o.constructor) n = o.constructor.name;
777
777
  if (n === "Map" || n === "Set") return Array.from(n);
778
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
778
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
779
779
  }
780
780
  var GRANTED_SYS_ADMIN_ROLE_KEY = 'sysadmin';
781
781
  var GRANTED_OWNER_ROLE_KEY = 'owner';
@@ -1536,31 +1536,6 @@ function _is_native_reflect_construct() {
1536
1536
  }
1537
1537
  (makeError.BaseError);
1538
1538
 
1539
- function _array_like_to_array$1(arr, len) {
1540
- if (len == null || len > arr.length) len = arr.length;
1541
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1542
- return arr2;
1543
- }
1544
- function _array_without_holes$1(arr) {
1545
- if (Array.isArray(arr)) return _array_like_to_array$1(arr);
1546
- }
1547
- function _iterable_to_array$1(iter) {
1548
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1549
- }
1550
- function _non_iterable_spread$1() {
1551
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1552
- }
1553
- function _to_consumable_array$1(arr) {
1554
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
1555
- }
1556
- function _unsupported_iterable_to_array$1(o, minLen) {
1557
- if (!o) return;
1558
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
1559
- var n = Object.prototype.toString.call(o).slice(8, -1);
1560
- if (n === "Object" && o.constructor) n = o.constructor.name;
1561
- if (n === "Map" || n === "Set") return Array.from(n);
1562
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
1563
- }
1564
1539
  /**
1565
1540
  * Creates a {@link SyncEntitySynchronizer} from the given configuration.
1566
1541
  *
@@ -1587,7 +1562,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
1587
1562
  x
1588
1563
  ];
1589
1564
  }));
1590
- var commonTypes = _to_consumable_array$1(map.keys());
1565
+ var commonTypes = Array.from(map.keys());
1591
1566
  var commonTypeSynchronizer = function commonTypeSynchronizer(input) {
1592
1567
  var synchronizer = map.get(input);
1593
1568
  if (!synchronizer) {
package/index.esm.js CHANGED
@@ -85,7 +85,7 @@ import { BaseError } from 'make-error';
85
85
  d: "0 < string <= ".concat(WEBSITE_LINK_ENCODED_DATA_MAX_LENGTH)
86
86
  });
87
87
 
88
- function _array_like_to_array$3(arr, len) {
88
+ function _array_like_to_array$2(arr, len) {
89
89
  if (len == null || len > arr.length) len = arr.length;
90
90
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
91
91
  return arr2;
@@ -121,15 +121,15 @@ function _non_iterable_rest$2() {
121
121
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
122
122
  }
123
123
  function _sliced_to_array$2(arr, i) {
124
- return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$2();
124
+ return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
125
125
  }
126
- function _unsupported_iterable_to_array$3(o, minLen) {
126
+ function _unsupported_iterable_to_array$2(o, minLen) {
127
127
  if (!o) return;
128
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
128
+ if (typeof o === "string") return _array_like_to_array$2(o, minLen);
129
129
  var n = Object.prototype.toString.call(o).slice(8, -1);
130
130
  if (n === "Object" && o.constructor) n = o.constructor.name;
131
131
  if (n === "Map" || n === "Set") return Array.from(n);
132
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
132
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
133
133
  }
134
134
  /**
135
135
  * Maximum character length for a {@link WebsiteFileLinkType}. Matches {@link WEBSITE_LINK_TYPE_MAX_LENGTH}.
@@ -698,7 +698,7 @@ function _unsupported_iterable_to_array$3(o, minLen) {
698
698
  return "".concat(SPOTIFY_BASE_URL, "/user/").concat(profileId);
699
699
  }
700
700
 
701
- function _array_like_to_array$2(arr, len) {
701
+ function _array_like_to_array$1(arr, len) {
702
702
  if (len == null || len > arr.length) len = arr.length;
703
703
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
704
704
  return arr2;
@@ -765,15 +765,15 @@ function _non_iterable_rest$1() {
765
765
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
766
766
  }
767
767
  function _sliced_to_array$1(arr, i) {
768
- return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$1();
768
+ return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
769
769
  }
770
- function _unsupported_iterable_to_array$2(o, minLen) {
770
+ function _unsupported_iterable_to_array$1(o, minLen) {
771
771
  if (!o) return;
772
- if (typeof o === "string") return _array_like_to_array$2(o, minLen);
772
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
773
773
  var n = Object.prototype.toString.call(o).slice(8, -1);
774
774
  if (n === "Object" && o.constructor) n = o.constructor.name;
775
775
  if (n === "Map" || n === "Set") return Array.from(n);
776
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
776
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
777
777
  }
778
778
  var GRANTED_SYS_ADMIN_ROLE_KEY = 'sysadmin';
779
779
  var GRANTED_OWNER_ROLE_KEY = 'owner';
@@ -1534,31 +1534,6 @@ function _is_native_reflect_construct() {
1534
1534
  }
1535
1535
  (BaseError);
1536
1536
 
1537
- function _array_like_to_array$1(arr, len) {
1538
- if (len == null || len > arr.length) len = arr.length;
1539
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1540
- return arr2;
1541
- }
1542
- function _array_without_holes$1(arr) {
1543
- if (Array.isArray(arr)) return _array_like_to_array$1(arr);
1544
- }
1545
- function _iterable_to_array$1(iter) {
1546
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1547
- }
1548
- function _non_iterable_spread$1() {
1549
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1550
- }
1551
- function _to_consumable_array$1(arr) {
1552
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
1553
- }
1554
- function _unsupported_iterable_to_array$1(o, minLen) {
1555
- if (!o) return;
1556
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
1557
- var n = Object.prototype.toString.call(o).slice(8, -1);
1558
- if (n === "Object" && o.constructor) n = o.constructor.name;
1559
- if (n === "Map" || n === "Set") return Array.from(n);
1560
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
1561
- }
1562
1537
  /**
1563
1538
  * Creates a {@link SyncEntitySynchronizer} from the given configuration.
1564
1539
  *
@@ -1585,7 +1560,7 @@ function _unsupported_iterable_to_array$1(o, minLen) {
1585
1560
  x
1586
1561
  ];
1587
1562
  }));
1588
- var commonTypes = _to_consumable_array$1(map.keys());
1563
+ var commonTypes = Array.from(map.keys());
1589
1564
  var commonTypeSynchronizer = function commonTypeSynchronizer(input) {
1590
1565
  var synchronizer = map.get(input);
1591
1566
  if (!synchronizer) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/model",
3
- "version": "13.5.0",
3
+ "version": "13.5.1",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.5.0",
5
+ "@dereekb/util": "13.5.1",
6
6
  "arktype": "^2.2.0",
7
7
  "make-error": "^1.3.0"
8
8
  },