@infinite-table/infinite-react 11.0.2 → 11.0.3
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.dev.js +15 -2
- package/index.dev.mjs +15 -2
- package/index.js +10 -8
- package/index.mjs +10 -8
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -29686,6 +29686,10 @@ var fieldsToLicenseDetails = (fields) => {
|
|
|
29686
29686
|
};
|
|
29687
29687
|
return details;
|
|
29688
29688
|
};
|
|
29689
|
+
var FREE_USAGE_MESSAGE = `Thank you for using the Infinite Table free version! Make sure the "Powered by Infinite Table" footer link is visible in your app.
|
|
29690
|
+
|
|
29691
|
+
If you want to remove the footer link, please visit infinite-table.com to purchase a license.`;
|
|
29692
|
+
var freeUsageNoteLogged = false;
|
|
29689
29693
|
var logLicenseError = (lines, fn = console.error.bind(console)) => {
|
|
29690
29694
|
lines = ["* * * infinite-table.com * * *", ...lines];
|
|
29691
29695
|
const max = Math.max(Math.max(...lines.map((l) => l.length)) + 4 * 2, 60);
|
|
@@ -29707,6 +29711,15 @@ var checkLicense = (licenseKey = "", packageInfo, fn) => {
|
|
|
29707
29711
|
try {
|
|
29708
29712
|
details = decode(licenseKey);
|
|
29709
29713
|
} catch (ex) {
|
|
29714
|
+
if (!licenseKey) {
|
|
29715
|
+
if (fn) {
|
|
29716
|
+
fn(FREE_USAGE_MESSAGE);
|
|
29717
|
+
} else if (!freeUsageNoteLogged) {
|
|
29718
|
+
freeUsageNoteLogged = true;
|
|
29719
|
+
console.info(FREE_USAGE_MESSAGE);
|
|
29720
|
+
}
|
|
29721
|
+
return "invalid";
|
|
29722
|
+
}
|
|
29710
29723
|
logLicenseError(
|
|
29711
29724
|
[
|
|
29712
29725
|
`You don't have a valid Infinite Table license`,
|
|
@@ -29783,8 +29796,8 @@ function getLicenseStatus(licenseKey = "", options) {
|
|
|
29783
29796
|
return "valid";
|
|
29784
29797
|
}
|
|
29785
29798
|
const result = checkLicense(licenseKey, {
|
|
29786
|
-
publishedAt:
|
|
29787
|
-
version: "11.0.
|
|
29799
|
+
publishedAt: 1796157962491,
|
|
29800
|
+
version: "11.0.3"
|
|
29788
29801
|
});
|
|
29789
29802
|
if (result === "invalid" && !licenseKey) {
|
|
29790
29803
|
return "missing";
|
package/index.dev.mjs
CHANGED
|
@@ -29629,6 +29629,10 @@ var fieldsToLicenseDetails = (fields) => {
|
|
|
29629
29629
|
};
|
|
29630
29630
|
return details;
|
|
29631
29631
|
};
|
|
29632
|
+
var FREE_USAGE_MESSAGE = `Thank you for using the Infinite Table free version! Make sure the "Powered by Infinite Table" footer link is visible in your app.
|
|
29633
|
+
|
|
29634
|
+
If you want to remove the footer link, please visit infinite-table.com to purchase a license.`;
|
|
29635
|
+
var freeUsageNoteLogged = false;
|
|
29632
29636
|
var logLicenseError = (lines, fn = console.error.bind(console)) => {
|
|
29633
29637
|
lines = ["* * * infinite-table.com * * *", ...lines];
|
|
29634
29638
|
const max = Math.max(Math.max(...lines.map((l) => l.length)) + 4 * 2, 60);
|
|
@@ -29650,6 +29654,15 @@ var checkLicense = (licenseKey = "", packageInfo, fn) => {
|
|
|
29650
29654
|
try {
|
|
29651
29655
|
details = decode(licenseKey);
|
|
29652
29656
|
} catch (ex) {
|
|
29657
|
+
if (!licenseKey) {
|
|
29658
|
+
if (fn) {
|
|
29659
|
+
fn(FREE_USAGE_MESSAGE);
|
|
29660
|
+
} else if (!freeUsageNoteLogged) {
|
|
29661
|
+
freeUsageNoteLogged = true;
|
|
29662
|
+
console.info(FREE_USAGE_MESSAGE);
|
|
29663
|
+
}
|
|
29664
|
+
return "invalid";
|
|
29665
|
+
}
|
|
29653
29666
|
logLicenseError(
|
|
29654
29667
|
[
|
|
29655
29668
|
`You don't have a valid Infinite Table license`,
|
|
@@ -29726,8 +29739,8 @@ function getLicenseStatus(licenseKey = "", options) {
|
|
|
29726
29739
|
return "valid";
|
|
29727
29740
|
}
|
|
29728
29741
|
const result = checkLicense(licenseKey, {
|
|
29729
|
-
publishedAt:
|
|
29730
|
-
version: "11.0.
|
|
29742
|
+
publishedAt: 1796157962491,
|
|
29743
|
+
version: "11.0.3"
|
|
29731
29744
|
});
|
|
29732
29745
|
if (result === "invalid" && !licenseKey) {
|
|
29733
29746
|
return "missing";
|