@wetransform/core 0.1.0 → 1.0.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -6
  2. package/package.json +5 -3
package/dist/index.mjs CHANGED
@@ -700,14 +700,10 @@ var UiHost = class {
700
700
  //#endregion
701
701
  //#region src/index.ts
702
702
  function resolveBaseUrl(organizationHandle) {
703
- const envBaseUrl = import.meta.env.VITE_SENDER_BASE_URL;
704
- if (envBaseUrl) return envBaseUrl.replace("{organizationHandle}", organizationHandle);
705
- return window.location.origin;
703
+ return "https://{organizationHandle}.send-a-file.io".replace("{organizationHandle}", organizationHandle);
706
704
  }
707
705
  function resolveApiUrl(organizationHandle, locale) {
708
- const envApiUrl = import.meta.env.VITE_SENDER_API_URL;
709
- if (!envApiUrl) throw new Error("SENDER_API_URL environment variable is not defined.");
710
- return `${envApiUrl}/${locale ?? "en"}/send/${organizationHandle}`;
706
+ return `https://api.wetransform.com/${locale ?? "en"}/send/${organizationHandle}`;
711
707
  }
712
708
  function createWeTransform(config) {
713
709
  if (typeof window === "undefined") throw new Error("WeTransform SDK must run in a browser context.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wetransform/core",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "license": "ISC",
5
5
  "files": [
6
6
  "dist/**"
@@ -13,16 +13,18 @@
13
13
  "access": "public"
14
14
  },
15
15
  "scripts": {
16
- "build": "vp pack",
16
+ "build": "VITE_MODE=production vp pack",
17
17
  "dev": "vp pack --watch",
18
18
  "lint": "vp lint --type-aware --type-check .",
19
- "test": "vp test run"
19
+ "test": "vp test run",
20
+ "publish": "npm publish"
20
21
  },
21
22
  "dependencies": {
22
23
  "focus-trap": "^8.0.1",
23
24
  "penpal": "^7.0.6"
24
25
  },
25
26
  "devDependencies": {
27
+ "@types/node": "catalog:",
26
28
  "jsdom": "^29.0.1",
27
29
  "typescript": "catalog:",
28
30
  "vite": "catalog:",