@wetransform/core 0.1.0 → 0.2.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.
- package/dist/index.mjs +2 -6
- package/package.json +3 -2
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**"
|
|
@@ -13,7 +13,7 @@
|
|
|
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
19
|
"test": "vp test run"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"penpal": "^7.0.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
+
"@types/node": "catalog:",
|
|
26
27
|
"jsdom": "^29.0.1",
|
|
27
28
|
"typescript": "catalog:",
|
|
28
29
|
"vite": "catalog:",
|