tetrons 2.3.50 → 2.3.52
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/dist/index.cjs
CHANGED
|
@@ -17008,7 +17008,7 @@ async function initializeTetrons(apiKey) {
|
|
|
17008
17008
|
if (!API_VALID) {
|
|
17009
17009
|
throw new Error("API Key is not valid.");
|
|
17010
17010
|
}
|
|
17011
|
-
const { getOrCreateInstallDate, getRemainingDays } = await Promise.resolve().then(() => _interopRequireWildcard(require("./licenseUtils.server-
|
|
17011
|
+
const { getOrCreateInstallDate, getRemainingDays } = await Promise.resolve().then(() => _interopRequireWildcard(require("./licenseUtils.server-UVEGEAXB.cjs")));
|
|
17012
17012
|
const validityDays = API_VERSION === "free" ? 14 : 30;
|
|
17013
17013
|
const installedAt = getOrCreateInstallDate();
|
|
17014
17014
|
const remainingDays = getRemainingDays(installedAt, validityDays);
|
|
@@ -17022,7 +17022,7 @@ async function initializeTetrons(apiKey) {
|
|
|
17022
17022
|
async function getTetronsRemainingDays() {
|
|
17023
17023
|
if (!API_VALID || !API_VERSION) return null;
|
|
17024
17024
|
if (typeof window !== "undefined") return null;
|
|
17025
|
-
const { getOrCreateInstallDate, getRemainingDays } = await Promise.resolve().then(() => _interopRequireWildcard(require("./licenseUtils.server-
|
|
17025
|
+
const { getOrCreateInstallDate, getRemainingDays } = await Promise.resolve().then(() => _interopRequireWildcard(require("./licenseUtils.server-UVEGEAXB.cjs")));
|
|
17026
17026
|
const validityDays = API_VERSION === "free" ? 14 : 30;
|
|
17027
17027
|
const installedAt = getOrCreateInstallDate();
|
|
17028
17028
|
return getRemainingDays(installedAt, validityDays);
|
package/dist/index.mjs
CHANGED
|
@@ -17008,7 +17008,7 @@ async function initializeTetrons(apiKey) {
|
|
|
17008
17008
|
if (!API_VALID) {
|
|
17009
17009
|
throw new Error("API Key is not valid.");
|
|
17010
17010
|
}
|
|
17011
|
-
const { getOrCreateInstallDate, getRemainingDays } = await import("./licenseUtils.server-
|
|
17011
|
+
const { getOrCreateInstallDate, getRemainingDays } = await import("./licenseUtils.server-7MTJIRHQ.mjs");
|
|
17012
17012
|
const validityDays = API_VERSION === "free" ? 14 : 30;
|
|
17013
17013
|
const installedAt = getOrCreateInstallDate();
|
|
17014
17014
|
const remainingDays = getRemainingDays(installedAt, validityDays);
|
|
@@ -17022,7 +17022,7 @@ async function initializeTetrons(apiKey) {
|
|
|
17022
17022
|
async function getTetronsRemainingDays() {
|
|
17023
17023
|
if (!API_VALID || !API_VERSION) return null;
|
|
17024
17024
|
if (typeof window !== "undefined") return null;
|
|
17025
|
-
const { getOrCreateInstallDate, getRemainingDays } = await import("./licenseUtils.server-
|
|
17025
|
+
const { getOrCreateInstallDate, getRemainingDays } = await import("./licenseUtils.server-7MTJIRHQ.mjs");
|
|
17026
17026
|
const validityDays = API_VERSION === "free" ? 14 : 30;
|
|
17027
17027
|
const installedAt = getOrCreateInstallDate();
|
|
17028
17028
|
return getRemainingDays(installedAt, validityDays);
|
|
@@ -6,7 +6,10 @@ function getOrCreateInstallDate() {
|
|
|
6
6
|
try {
|
|
7
7
|
if (!fs.existsSync(USAGE_FILE_PATH)) {
|
|
8
8
|
const installDate = (/* @__PURE__ */ new Date()).toISOString();
|
|
9
|
-
fs.writeFileSync(
|
|
9
|
+
fs.writeFileSync(
|
|
10
|
+
USAGE_FILE_PATH,
|
|
11
|
+
JSON.stringify({ installedAt: installDate })
|
|
12
|
+
);
|
|
10
13
|
return installDate;
|
|
11
14
|
}
|
|
12
15
|
const content = fs.readFileSync(USAGE_FILE_PATH, "utf-8");
|
|
@@ -6,7 +6,10 @@ function getOrCreateInstallDate() {
|
|
|
6
6
|
try {
|
|
7
7
|
if (!_fs2.default.existsSync(USAGE_FILE_PATH)) {
|
|
8
8
|
const installDate = (/* @__PURE__ */ new Date()).toISOString();
|
|
9
|
-
_fs2.default.writeFileSync(
|
|
9
|
+
_fs2.default.writeFileSync(
|
|
10
|
+
USAGE_FILE_PATH,
|
|
11
|
+
JSON.stringify({ installedAt: installDate })
|
|
12
|
+
);
|
|
10
13
|
return installDate;
|
|
11
14
|
}
|
|
12
15
|
const content = _fs2.default.readFileSync(USAGE_FILE_PATH, "utf-8");
|