tetrons 2.3.45 → 2.3.46
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 +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{server/licenseUtils.cjs → licenseUtils-L7MYHDVW.cjs} +1 -1
- package/dist/{server/licenseUtils.mjs → licenseUtils-NQMXVD6S.mjs} +1 -1
- package/package.json +2 -7
- package/dist/server/licenseUtils.d.mts +0 -4
- package/dist/server/licenseUtils.d.ts +0 -4
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("./
|
|
17011
|
+
const { getOrCreateInstallDate, getRemainingDays } = await Promise.resolve().then(() => _interopRequireWildcard(require("./licenseUtils-L7MYHDVW.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("./
|
|
17025
|
+
const { getOrCreateInstallDate, getRemainingDays } = await Promise.resolve().then(() => _interopRequireWildcard(require("./licenseUtils-L7MYHDVW.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("./
|
|
17011
|
+
const { getOrCreateInstallDate, getRemainingDays } = await import("./licenseUtils-NQMXVD6S.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("./
|
|
17025
|
+
const { getOrCreateInstallDate, getRemainingDays } = await import("./licenseUtils-NQMXVD6S.mjs");
|
|
17026
17026
|
const validityDays = API_VERSION === "free" ? 14 : 30;
|
|
17027
17027
|
const installedAt = getOrCreateInstallDate();
|
|
17028
17028
|
return getRemainingDays(installedAt, validityDays);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/internal/licenseUtils.ts
|
|
2
2
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
3
3
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
4
4
|
var USAGE_FILE_PATH = _path2.default.join(process.cwd(), ".tetrons-usage.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tetrons",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.46",
|
|
4
4
|
"description": "A Next.js project written in TypeScript",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -102,17 +102,12 @@
|
|
|
102
102
|
"./app/api/validate/route": {
|
|
103
103
|
"import": "./dist/app/api/validate/route.mjs",
|
|
104
104
|
"require": "./dist/app/api/validate/route.cjs"
|
|
105
|
-
},
|
|
106
|
-
"./server/licenseUtils": {
|
|
107
|
-
"import": "./dist/server/licenseUtils.js",
|
|
108
|
-
"require": "./dist/server/licenseUtils.js"
|
|
109
105
|
}
|
|
110
106
|
},
|
|
111
107
|
"files": [
|
|
112
108
|
"dist",
|
|
113
109
|
"dist/styles/tetrons.css",
|
|
114
|
-
"dist/components"
|
|
115
|
-
"dist/server"
|
|
110
|
+
"dist/components"
|
|
116
111
|
],
|
|
117
112
|
"bugs": {
|
|
118
113
|
"url": "https://github.com/Finapsys/Tetrons/issues"
|