tetrons 2.3.43 → 2.3.44

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
@@ -17017,6 +17017,9 @@ function EditorContent({ apiKey }) {
17017
17017
  var API_VALID = false;
17018
17018
  var API_VERSION = "";
17019
17019
  async function initializeTetrons(apiKey) {
17020
+ if (typeof window !== "undefined") {
17021
+ throw new Error("initializeTetrons must be called server-side");
17022
+ }
17020
17023
  const res = await fetch("https://staging.tetrons.com/api/validate", {
17021
17024
  method: "POST",
17022
17025
  headers: {
@@ -17034,9 +17037,6 @@ async function initializeTetrons(apiKey) {
17034
17037
  if (!API_VALID) {
17035
17038
  throw new Error("API Key is not valid.");
17036
17039
  }
17037
- if (typeof window !== "undefined") {
17038
- throw new Error("initializeTetrons must be called server-side");
17039
- }
17040
17040
  const { getOrCreateInstallDate: getOrCreateInstallDate2, getRemainingDays: getRemainingDays2 } = await Promise.resolve().then(() => (init_licenseUtils(), licenseUtils_exports));
17041
17041
  const validityDays = API_VERSION === "free" ? 14 : 30;
17042
17042
  const installedAt = getOrCreateInstallDate2();
package/dist/index.mjs CHANGED
@@ -17030,6 +17030,9 @@ function EditorContent({ apiKey }) {
17030
17030
  var API_VALID = false;
17031
17031
  var API_VERSION = "";
17032
17032
  async function initializeTetrons(apiKey) {
17033
+ if (typeof window !== "undefined") {
17034
+ throw new Error("initializeTetrons must be called server-side");
17035
+ }
17033
17036
  const res = await fetch("https://staging.tetrons.com/api/validate", {
17034
17037
  method: "POST",
17035
17038
  headers: {
@@ -17047,9 +17050,6 @@ async function initializeTetrons(apiKey) {
17047
17050
  if (!API_VALID) {
17048
17051
  throw new Error("API Key is not valid.");
17049
17052
  }
17050
- if (typeof window !== "undefined") {
17051
- throw new Error("initializeTetrons must be called server-side");
17052
- }
17053
17053
  const { getOrCreateInstallDate: getOrCreateInstallDate2, getRemainingDays: getRemainingDays2 } = await Promise.resolve().then(() => (init_licenseUtils(), licenseUtils_exports));
17054
17054
  const validityDays = API_VERSION === "free" ? 14 : 30;
17055
17055
  const installedAt = getOrCreateInstallDate2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tetrons",
3
- "version": "2.3.43",
3
+ "version": "2.3.44",
4
4
  "description": "A Next.js project written in TypeScript",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",