shadcn-studio-extension-cli 0.2.0 → 0.2.1

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.
@@ -1,6 +1,6 @@
1
1
  # Third-Party Licenses
2
2
 
3
- ## shadcn-studio-extension-cli@0.1.11
3
+ ## shadcn-studio-extension-cli@0.2.1
4
4
  - License: AGPL-3.0-only
5
5
  - Repository: https://github.com/stagewise-io/stagewise
6
6
  - Publisher: stagewise GmbH
@@ -14157,7 +14157,7 @@
14157
14157
  "bytesInOutput": 1582
14158
14158
  },
14159
14159
  "src/utils/banner.ts": {
14160
- "bytesInOutput": 1864
14160
+ "bytesInOutput": 1863
14161
14161
  },
14162
14162
  "src/utils/command-executor.ts": {
14163
14163
  "bytesInOutput": 3729
@@ -14166,7 +14166,7 @@
14166
14166
  "bytesInOutput": 7825
14167
14167
  }
14168
14168
  },
14169
- "bytes": 3808083
14169
+ "bytes": 3808082
14170
14170
  }
14171
14171
  }
14172
14172
  }
package/dist/index.cjs CHANGED
@@ -97067,7 +97067,7 @@ var __dirname4 = (0, import_node_path10.dirname)((0, import_node_url5.fileURLToP
97067
97067
  function getVersion() {
97068
97068
  try {
97069
97069
  if (true) {
97070
- return "0.1.11";
97070
+ return "0.2.1";
97071
97071
  }
97072
97072
  const packageJsonPath = (0, import_node_path10.join)(__dirname4, "../../package.json");
97073
97073
  const packageJson = JSON.parse((0, import_node_fs9.readFileSync)(packageJsonPath, "utf-8"));
@@ -7121,7 +7121,7 @@ const performLocalSearch = (blocks, query) => {
7121
7121
  var _a;
7122
7122
  return ((_a = block.meta) == null ? void 0 : _a.isBasic) === !1;
7123
7123
  }), checkPlan$1 = async (licenseKey, email) => {
7124
- const fetchPlanUrl = `http://localhost:3000/api/ide-extension/plan-variant?email=${email}&license_key=${licenseKey}`;
7124
+ const fetchPlanUrl = `https://shadcnstudio.com/api/ide-extension/plan-variant?email=${email}&license_key=${licenseKey}`;
7125
7125
  try {
7126
7126
  return (await (await fetch(fetchPlanUrl, { method: "GET" })).json()).plan_variant;
7127
7127
  } catch (error2) {
@@ -7257,7 +7257,7 @@ function useLicenseKey() {
7257
7257
  return { isValid: !1, message: "Invalid license key" };
7258
7258
  if (!email || typeof email != "string" || !email.includes("@"))
7259
7259
  return { isValid: !1, message: "Invalid email" };
7260
- const trimmedLicenseKey = licensekey.trim(), validateUrl = `http://localhost:3000/api/ide-extension/validate-user?email=${email.trim()}&license_key=${trimmedLicenseKey}`, response = await fetch(validateUrl, {
7260
+ const trimmedLicenseKey = licensekey.trim(), validateUrl = `https://shadcnstudio.com/api/ide-extension/validate-user?email=${email.trim()}&license_key=${trimmedLicenseKey}`, response = await fetch(validateUrl, {
7261
7261
  method: "GET",
7262
7262
  headers: {
7263
7263
  "Content-Type": "application/json"
@@ -8057,14 +8057,14 @@ const fetchGenericThemesFromAPI = async () => {
8057
8057
  const { email, licenseKey } = getLicenseDataFromStorage();
8058
8058
  if (!email || !licenseKey)
8059
8059
  return "basic";
8060
- const fetchPlanUrl = `http://localhost:3000/api/ide-extension/plan-variant?email=${email}&license_key=${licenseKey}`;
8060
+ const fetchPlanUrl = `https://shadcnstudio.com/api/ide-extension/plan-variant?email=${email}&license_key=${licenseKey}`;
8061
8061
  try {
8062
8062
  return (await (await fetch(fetchPlanUrl, { method: "GET" })).json()).plan_variant;
8063
8063
  } catch (error2) {
8064
8064
  console.error("Failed to fetch plan variant:", error2);
8065
8065
  }
8066
8066
  }, fetchUserThemesFromAPI = async () => {
8067
- const { email, licenseKey } = getLicenseDataFromStorage(), fetchThemesUrl = `http://localhost:3000/api/ide-extension/user-themes?email=${email}&license_key=${licenseKey}&is_extension=true`;
8067
+ const { email, licenseKey } = getLicenseDataFromStorage(), fetchThemesUrl = `https://shadcnstudio.com/api/ide-extension/user-themes?email=${email}&license_key=${licenseKey}&is_extension=true`;
8068
8068
  try {
8069
8069
  const response = await fetch(fetchThemesUrl, { method: "GET" });
8070
8070
  return response.ok ? (await response.json()).themes.map((theme) => ({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "shadcn-studio-extension-cli",
3
3
  "module": "src/index.ts",
4
4
  "type": "module",
5
- "version": "0.2.0",
5
+ "version": "0.2.1",
6
6
  "description": "Shadcn/Studio Extension CLI",
7
7
  "author": "stagewise GmbH",
8
8
  "license": "AGPL-3.0-only",