tradly 1.1.99 → 1.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/Helper/APIParam.js +20 -16
- package/package.json +1 -1
package/Helper/APIParam.js
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import {DEV, PRO, SANDBOX } from "../Constants/PathConstant.js"
|
|
1
|
+
import { DEV, PRO, SANDBOX } from "../Constants/PathConstant.js";
|
|
2
2
|
|
|
3
3
|
export var EVN = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export var UserParameter = {data:{}}
|
|
4
|
+
DEV: "development",
|
|
5
|
+
PRO: "production",
|
|
6
|
+
SANDBOX: "sandbox",
|
|
7
|
+
};
|
|
8
|
+
export var UserParameter = { data: {} };
|
|
9
9
|
export default function Environment(evn) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
switch (evn) {
|
|
11
|
+
case EVN.DEV:
|
|
12
|
+
return DEV;
|
|
13
|
+
case EVN.SANDBOX:
|
|
14
|
+
return SANDBOX;
|
|
15
|
+
case EVN.PRO:
|
|
16
|
+
return PRO;
|
|
17
|
+
default:
|
|
18
|
+
return PRO;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export var ImageConfig = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
+
signedUrl: "",
|
|
24
|
+
mime: "",
|
|
25
|
+
blob_body: "",
|
|
26
|
+
};
|