tetrons 2.3.84 → 2.3.86
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
|
@@ -17318,13 +17318,14 @@ function EditorContent({ apiKey }) {
|
|
|
17318
17318
|
}
|
|
17319
17319
|
|
|
17320
17320
|
// src/index.ts
|
|
17321
|
+
var import_meta = {};
|
|
17321
17322
|
var API_VALID = false;
|
|
17322
17323
|
var API_VERSION = null;
|
|
17323
17324
|
var API_ADDONS = [];
|
|
17324
17325
|
async function initializeTetrons(apiKey) {
|
|
17325
|
-
const
|
|
17326
|
-
|
|
17327
|
-
);
|
|
17326
|
+
const viteEnv = typeof import_meta !== "undefined" && "env" in import_meta ? import_meta.env : void 0;
|
|
17327
|
+
const API_URL = typeof process !== "undefined" && process.env?.NEXT_PUBLIC_TETRONS_API_URL || viteEnv?.VITE_TETRONS_API_URL || "https://staging.tetrons.com";
|
|
17328
|
+
const res = await fetch(`${API_URL}/api/api-key?apiKey=${apiKey}`);
|
|
17328
17329
|
if (!res.ok) {
|
|
17329
17330
|
const error = await res.json();
|
|
17330
17331
|
throw new Error(`API Key validation failed: ${error.error}`);
|
package/dist/index.mjs
CHANGED
|
@@ -17331,9 +17331,9 @@ var API_VALID = false;
|
|
|
17331
17331
|
var API_VERSION = null;
|
|
17332
17332
|
var API_ADDONS = [];
|
|
17333
17333
|
async function initializeTetrons(apiKey) {
|
|
17334
|
-
const
|
|
17335
|
-
|
|
17336
|
-
);
|
|
17334
|
+
const viteEnv = typeof import.meta !== "undefined" && "env" in import.meta ? import.meta.env : void 0;
|
|
17335
|
+
const API_URL = typeof process !== "undefined" && process.env?.NEXT_PUBLIC_TETRONS_API_URL || viteEnv?.VITE_TETRONS_API_URL || "https://staging.tetrons.com";
|
|
17336
|
+
const res = await fetch(`${API_URL}/api/api-key?apiKey=${apiKey}`);
|
|
17337
17337
|
if (!res.ok) {
|
|
17338
17338
|
const error = await res.json();
|
|
17339
17339
|
throw new Error(`API Key validation failed: ${error.error}`);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tetrons",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.86",
|
|
4
4
|
"description": "A Next.js project written in TypeScript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dev": "next dev --turbo",
|
|
10
|
-
"build": "tsup && copyfiles -u 2 src/styles/*.css dist/styles && copyfiles -u 2 src/components/**/*.tsx dist/components && copyfiles -u 1 public/dictionaries/* dist/
|
|
10
|
+
"build": "tsup && copyfiles -u 2 src/styles/*.css dist/styles && copyfiles -u 2 src/components/**/*.tsx dist/components && copyfiles -u 1 public/dictionaries/* dist/",
|
|
11
11
|
"start": "next start",
|
|
12
12
|
"lint": "next lint"
|
|
13
13
|
},
|
|
File without changes
|
|
File without changes
|