@neutron.co.id/operasional-interfaces 1.17.17 → 1.17.18
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.
|
@@ -7,14 +7,11 @@ export function apiUrl() {
|
|
|
7
7
|
action: "http://localhost:7021"
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} else {
|
|
16
|
-
action = switchUrl(subDomain, false);
|
|
17
|
-
}
|
|
10
|
+
const isDev = parts[0] === "dev";
|
|
11
|
+
const offset = isDev ? 1 : 0;
|
|
12
|
+
const subParts = parts.slice(offset, parts.length - 3);
|
|
13
|
+
const subDomain = subParts.join(".");
|
|
14
|
+
const action = switchUrl(subDomain, isDev);
|
|
18
15
|
return { action };
|
|
19
16
|
}
|
|
20
17
|
function switchUrl(subdomain, isDev) {
|
|
@@ -35,9 +32,5 @@ function switchUrl(subdomain, isDev) {
|
|
|
35
32
|
default:
|
|
36
33
|
action = "127.0.0.1:7020";
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
return `https://dev.${action}`;
|
|
40
|
-
} else {
|
|
41
|
-
return `https://${action}`;
|
|
42
|
-
}
|
|
35
|
+
return isDev ? `https://dev.${action}` : `https://${action}`;
|
|
43
36
|
}
|
package/build/mock/index.cjs
CHANGED
|
@@ -12969,14 +12969,11 @@ function apiUrl() {
|
|
|
12969
12969
|
action: "http://localhost:7021"
|
|
12970
12970
|
};
|
|
12971
12971
|
}
|
|
12972
|
-
const
|
|
12973
|
-
const
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
} else {
|
|
12978
|
-
action = switchUrl(subDomain, false);
|
|
12979
|
-
}
|
|
12972
|
+
const isDev = parts[0] === "dev";
|
|
12973
|
+
const offset2 = isDev ? 1 : 0;
|
|
12974
|
+
const subParts = parts.slice(offset2, parts.length - 3);
|
|
12975
|
+
const subDomain = subParts.join(".");
|
|
12976
|
+
const action = switchUrl(subDomain, isDev);
|
|
12980
12977
|
return { action };
|
|
12981
12978
|
}
|
|
12982
12979
|
function switchUrl(subdomain, isDev) {
|
|
@@ -12997,11 +12994,7 @@ function switchUrl(subdomain, isDev) {
|
|
|
12997
12994
|
default:
|
|
12998
12995
|
action = "127.0.0.1:7020";
|
|
12999
12996
|
}
|
|
13000
|
-
|
|
13001
|
-
return `https://dev.${action}`;
|
|
13002
|
-
} else {
|
|
13003
|
-
return `https://${action}`;
|
|
13004
|
-
}
|
|
12997
|
+
return isDev ? `https://dev.${action}` : `https://${action}`;
|
|
13005
12998
|
}
|
|
13006
12999
|
const _hoisted_1$z = {
|
|
13007
13000
|
key: 0,
|
package/build/mock/index.mjs
CHANGED
|
@@ -12950,14 +12950,11 @@ function apiUrl() {
|
|
|
12950
12950
|
action: "http://localhost:7021"
|
|
12951
12951
|
};
|
|
12952
12952
|
}
|
|
12953
|
-
const
|
|
12954
|
-
const
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
} else {
|
|
12959
|
-
action = switchUrl(subDomain, false);
|
|
12960
|
-
}
|
|
12953
|
+
const isDev = parts[0] === "dev";
|
|
12954
|
+
const offset2 = isDev ? 1 : 0;
|
|
12955
|
+
const subParts = parts.slice(offset2, parts.length - 3);
|
|
12956
|
+
const subDomain = subParts.join(".");
|
|
12957
|
+
const action = switchUrl(subDomain, isDev);
|
|
12961
12958
|
return { action };
|
|
12962
12959
|
}
|
|
12963
12960
|
function switchUrl(subdomain, isDev) {
|
|
@@ -12978,11 +12975,7 @@ function switchUrl(subdomain, isDev) {
|
|
|
12978
12975
|
default:
|
|
12979
12976
|
action = "127.0.0.1:7020";
|
|
12980
12977
|
}
|
|
12981
|
-
|
|
12982
|
-
return `https://dev.${action}`;
|
|
12983
|
-
} else {
|
|
12984
|
-
return `https://${action}`;
|
|
12985
|
-
}
|
|
12978
|
+
return isDev ? `https://dev.${action}` : `https://${action}`;
|
|
12986
12979
|
}
|
|
12987
12980
|
const _hoisted_1$z = {
|
|
12988
12981
|
key: 0,
|
package/build/module.json
CHANGED
package/build/nuxt.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.18",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -164,5 +164,5 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
|
-
"build":
|
|
167
|
+
"build": 200
|
|
168
168
|
}
|