@infinite-table/infinite-react 4.2.1-canary.0 → 4.2.1-canary.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.
- package/index.d.ts +1 -0
- package/index.dev.js +20 -6
- package/index.dev.mjs +20 -6
- package/index.js +20 -6
- package/index.mjs +20 -6
- package/package.json +2 -2
package/index.d.ts
CHANGED
package/index.dev.js
CHANGED
|
@@ -730,10 +730,13 @@ var COLORS = [
|
|
|
730
730
|
];
|
|
731
731
|
var COLOR_SYMBOL = Symbol("color");
|
|
732
732
|
var USED_COLORS_MAP = /* @__PURE__ */ new WeakMap();
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
)
|
|
733
|
+
function initUsedColors(colors = COLORS) {
|
|
734
|
+
USED_COLORS_MAP.set(
|
|
735
|
+
colors,
|
|
736
|
+
colors.map((_) => 0)
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
initUsedColors();
|
|
737
740
|
var getNextColor = (colors = COLORS) => {
|
|
738
741
|
var _a, _b;
|
|
739
742
|
let usedColors = [];
|
|
@@ -767,8 +770,13 @@ function isChannelTargeted(channel, permissionToken) {
|
|
|
767
770
|
partsMap.set(parts, true);
|
|
768
771
|
const tokenParts = permissionToken.split(CHANNEL_SEPARATOR);
|
|
769
772
|
const hasWildcard = new Set(tokenParts).has(CHANNEL_WILDCARD);
|
|
770
|
-
const
|
|
773
|
+
const indexOfToken = tokenParts.indexOf(CHANNEL_WILDCARD);
|
|
774
|
+
const storagePartsWithoutWildcard = hasWildcard ? tokenParts.slice(0, indexOfToken) : tokenParts;
|
|
771
775
|
if (partsMap.getKeysStartingWith(storagePartsWithoutWildcard, hasWildcard).length > 0) {
|
|
776
|
+
const remainingParts = tokenParts.slice(indexOfToken + 1);
|
|
777
|
+
if (remainingParts.length) {
|
|
778
|
+
return channel.endsWith(remainingParts.join(CHANNEL_SEPARATOR));
|
|
779
|
+
}
|
|
772
780
|
return true;
|
|
773
781
|
}
|
|
774
782
|
return void 0;
|
|
@@ -945,6 +953,12 @@ Object.defineProperty(debugPackage, "enable", {
|
|
|
945
953
|
var debug = debugPackage;
|
|
946
954
|
debug.colors = COLORS;
|
|
947
955
|
debug.logFn = defaultLogger;
|
|
956
|
+
debug.destroyAll = () => {
|
|
957
|
+
initUsedColors();
|
|
958
|
+
initUsedColors(debug.colors);
|
|
959
|
+
loggers.clear();
|
|
960
|
+
enabledChannelsCache.clear();
|
|
961
|
+
};
|
|
948
962
|
|
|
949
963
|
// src/utils/debug.ts
|
|
950
964
|
var debugTable = debug(`InfiniteTable`);
|
|
@@ -18711,7 +18725,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18711
18725
|
}
|
|
18712
18726
|
let valid2 = isValidLicense(licenseKey, {
|
|
18713
18727
|
publishedAt: 1624970570587,
|
|
18714
|
-
version: "4.2.1-canary.
|
|
18728
|
+
version: "4.2.1-canary.1"
|
|
18715
18729
|
});
|
|
18716
18730
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18717
18731
|
return true;
|
package/index.dev.mjs
CHANGED
|
@@ -678,10 +678,13 @@ var COLORS = [
|
|
|
678
678
|
];
|
|
679
679
|
var COLOR_SYMBOL = Symbol("color");
|
|
680
680
|
var USED_COLORS_MAP = /* @__PURE__ */ new WeakMap();
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
)
|
|
681
|
+
function initUsedColors(colors = COLORS) {
|
|
682
|
+
USED_COLORS_MAP.set(
|
|
683
|
+
colors,
|
|
684
|
+
colors.map((_) => 0)
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
initUsedColors();
|
|
685
688
|
var getNextColor = (colors = COLORS) => {
|
|
686
689
|
var _a, _b;
|
|
687
690
|
let usedColors = [];
|
|
@@ -715,8 +718,13 @@ function isChannelTargeted(channel, permissionToken) {
|
|
|
715
718
|
partsMap.set(parts, true);
|
|
716
719
|
const tokenParts = permissionToken.split(CHANNEL_SEPARATOR);
|
|
717
720
|
const hasWildcard = new Set(tokenParts).has(CHANNEL_WILDCARD);
|
|
718
|
-
const
|
|
721
|
+
const indexOfToken = tokenParts.indexOf(CHANNEL_WILDCARD);
|
|
722
|
+
const storagePartsWithoutWildcard = hasWildcard ? tokenParts.slice(0, indexOfToken) : tokenParts;
|
|
719
723
|
if (partsMap.getKeysStartingWith(storagePartsWithoutWildcard, hasWildcard).length > 0) {
|
|
724
|
+
const remainingParts = tokenParts.slice(indexOfToken + 1);
|
|
725
|
+
if (remainingParts.length) {
|
|
726
|
+
return channel.endsWith(remainingParts.join(CHANNEL_SEPARATOR));
|
|
727
|
+
}
|
|
720
728
|
return true;
|
|
721
729
|
}
|
|
722
730
|
return void 0;
|
|
@@ -893,6 +901,12 @@ Object.defineProperty(debugPackage, "enable", {
|
|
|
893
901
|
var debug = debugPackage;
|
|
894
902
|
debug.colors = COLORS;
|
|
895
903
|
debug.logFn = defaultLogger;
|
|
904
|
+
debug.destroyAll = () => {
|
|
905
|
+
initUsedColors();
|
|
906
|
+
initUsedColors(debug.colors);
|
|
907
|
+
loggers.clear();
|
|
908
|
+
enabledChannelsCache.clear();
|
|
909
|
+
};
|
|
896
910
|
|
|
897
911
|
// src/utils/debug.ts
|
|
898
912
|
var debugTable = debug(`InfiniteTable`);
|
|
@@ -18682,7 +18696,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18682
18696
|
}
|
|
18683
18697
|
let valid2 = isValidLicense(licenseKey, {
|
|
18684
18698
|
publishedAt: 1624970570587,
|
|
18685
|
-
version: "4.2.1-canary.
|
|
18699
|
+
version: "4.2.1-canary.1"
|
|
18686
18700
|
});
|
|
18687
18701
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18688
18702
|
return true;
|
package/index.js
CHANGED
|
@@ -730,10 +730,13 @@ var COLORS = [
|
|
|
730
730
|
];
|
|
731
731
|
var COLOR_SYMBOL = Symbol("color");
|
|
732
732
|
var USED_COLORS_MAP = /* @__PURE__ */ new WeakMap();
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
)
|
|
733
|
+
function initUsedColors(colors = COLORS) {
|
|
734
|
+
USED_COLORS_MAP.set(
|
|
735
|
+
colors,
|
|
736
|
+
colors.map((_) => 0)
|
|
737
|
+
);
|
|
738
|
+
}
|
|
739
|
+
initUsedColors();
|
|
737
740
|
var getNextColor = (colors = COLORS) => {
|
|
738
741
|
var _a, _b;
|
|
739
742
|
let usedColors = [];
|
|
@@ -767,8 +770,13 @@ function isChannelTargeted(channel, permissionToken) {
|
|
|
767
770
|
partsMap.set(parts, true);
|
|
768
771
|
const tokenParts = permissionToken.split(CHANNEL_SEPARATOR);
|
|
769
772
|
const hasWildcard = new Set(tokenParts).has(CHANNEL_WILDCARD);
|
|
770
|
-
const
|
|
773
|
+
const indexOfToken = tokenParts.indexOf(CHANNEL_WILDCARD);
|
|
774
|
+
const storagePartsWithoutWildcard = hasWildcard ? tokenParts.slice(0, indexOfToken) : tokenParts;
|
|
771
775
|
if (partsMap.getKeysStartingWith(storagePartsWithoutWildcard, hasWildcard).length > 0) {
|
|
776
|
+
const remainingParts = tokenParts.slice(indexOfToken + 1);
|
|
777
|
+
if (remainingParts.length) {
|
|
778
|
+
return channel.endsWith(remainingParts.join(CHANNEL_SEPARATOR));
|
|
779
|
+
}
|
|
772
780
|
return true;
|
|
773
781
|
}
|
|
774
782
|
return void 0;
|
|
@@ -945,6 +953,12 @@ Object.defineProperty(debugPackage, "enable", {
|
|
|
945
953
|
var debug = debugPackage;
|
|
946
954
|
debug.colors = COLORS;
|
|
947
955
|
debug.logFn = defaultLogger;
|
|
956
|
+
debug.destroyAll = () => {
|
|
957
|
+
initUsedColors();
|
|
958
|
+
initUsedColors(debug.colors);
|
|
959
|
+
loggers.clear();
|
|
960
|
+
enabledChannelsCache.clear();
|
|
961
|
+
};
|
|
948
962
|
|
|
949
963
|
// src/utils/debug.ts
|
|
950
964
|
var debugTable = debug(`InfiniteTable`);
|
|
@@ -18711,7 +18725,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18711
18725
|
}
|
|
18712
18726
|
let valid2 = isValidLicense(licenseKey, {
|
|
18713
18727
|
publishedAt: 1624970570587,
|
|
18714
|
-
version: "4.2.1-canary.
|
|
18728
|
+
version: "4.2.1-canary.1"
|
|
18715
18729
|
});
|
|
18716
18730
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18717
18731
|
return true;
|
package/index.mjs
CHANGED
|
@@ -678,10 +678,13 @@ var COLORS = [
|
|
|
678
678
|
];
|
|
679
679
|
var COLOR_SYMBOL = Symbol("color");
|
|
680
680
|
var USED_COLORS_MAP = /* @__PURE__ */ new WeakMap();
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
)
|
|
681
|
+
function initUsedColors(colors = COLORS) {
|
|
682
|
+
USED_COLORS_MAP.set(
|
|
683
|
+
colors,
|
|
684
|
+
colors.map((_) => 0)
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
initUsedColors();
|
|
685
688
|
var getNextColor = (colors = COLORS) => {
|
|
686
689
|
var _a, _b;
|
|
687
690
|
let usedColors = [];
|
|
@@ -715,8 +718,13 @@ function isChannelTargeted(channel, permissionToken) {
|
|
|
715
718
|
partsMap.set(parts, true);
|
|
716
719
|
const tokenParts = permissionToken.split(CHANNEL_SEPARATOR);
|
|
717
720
|
const hasWildcard = new Set(tokenParts).has(CHANNEL_WILDCARD);
|
|
718
|
-
const
|
|
721
|
+
const indexOfToken = tokenParts.indexOf(CHANNEL_WILDCARD);
|
|
722
|
+
const storagePartsWithoutWildcard = hasWildcard ? tokenParts.slice(0, indexOfToken) : tokenParts;
|
|
719
723
|
if (partsMap.getKeysStartingWith(storagePartsWithoutWildcard, hasWildcard).length > 0) {
|
|
724
|
+
const remainingParts = tokenParts.slice(indexOfToken + 1);
|
|
725
|
+
if (remainingParts.length) {
|
|
726
|
+
return channel.endsWith(remainingParts.join(CHANNEL_SEPARATOR));
|
|
727
|
+
}
|
|
720
728
|
return true;
|
|
721
729
|
}
|
|
722
730
|
return void 0;
|
|
@@ -893,6 +901,12 @@ Object.defineProperty(debugPackage, "enable", {
|
|
|
893
901
|
var debug = debugPackage;
|
|
894
902
|
debug.colors = COLORS;
|
|
895
903
|
debug.logFn = defaultLogger;
|
|
904
|
+
debug.destroyAll = () => {
|
|
905
|
+
initUsedColors();
|
|
906
|
+
initUsedColors(debug.colors);
|
|
907
|
+
loggers.clear();
|
|
908
|
+
enabledChannelsCache.clear();
|
|
909
|
+
};
|
|
896
910
|
|
|
897
911
|
// src/utils/debug.ts
|
|
898
912
|
var debugTable = debug(`InfiniteTable`);
|
|
@@ -18682,7 +18696,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
18682
18696
|
}
|
|
18683
18697
|
let valid2 = isValidLicense(licenseKey, {
|
|
18684
18698
|
publishedAt: 1624970570587,
|
|
18685
|
-
version: "4.2.1-canary.
|
|
18699
|
+
version: "4.2.1-canary.1"
|
|
18686
18700
|
});
|
|
18687
18701
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
18688
18702
|
return true;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/infinite-table/infinite-react/issues"
|
|
27
27
|
},
|
|
28
|
-
"version": "4.2.1-canary.
|
|
28
|
+
"version": "4.2.1-canary.1",
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"module": "index.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Commercial & Open Source",
|
|
36
36
|
"//": "will be updated at build time",
|
|
37
|
-
"publishedAt":
|
|
37
|
+
"publishedAt": 1719659845387
|
|
38
38
|
}
|