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 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("./server/licenseUtils.cjs")));
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("./server/licenseUtils.cjs")));
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("./server/licenseUtils.mjs");
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("./server/licenseUtils.mjs");
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/server/licenseUtils.ts
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");
@@ -1,4 +1,4 @@
1
- // src/server/licenseUtils.ts
1
+ // src/internal/licenseUtils.ts
2
2
  import fs from "fs";
3
3
  import path from "path";
4
4
  var USAGE_FILE_PATH = path.join(process.cwd(), ".tetrons-usage.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tetrons",
3
- "version": "2.3.45",
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"
@@ -1,4 +0,0 @@
1
- declare function getOrCreateInstallDate(): Date;
2
- declare function getRemainingDays(installedAt: Date, validityDays: number): number;
3
-
4
- export { getOrCreateInstallDate, getRemainingDays };
@@ -1,4 +0,0 @@
1
- declare function getOrCreateInstallDate(): Date;
2
- declare function getRemainingDays(installedAt: Date, validityDays: number): number;
3
-
4
- export { getOrCreateInstallDate, getRemainingDays };