sales-frontend-utils 0.0.23 → 0.0.25
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.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var getSubdomain = (hostname) => {
|
|
|
51
51
|
};
|
|
52
52
|
var getEnvironmentFromHostname = (hostname) => {
|
|
53
53
|
const subDomain = getSubdomain(hostname);
|
|
54
|
-
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("localhost
|
|
54
|
+
if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("localhost")) {
|
|
55
55
|
return "local";
|
|
56
56
|
}
|
|
57
57
|
if (subDomain.includes(`dev`)) {
|
|
@@ -105,6 +105,9 @@ var isStorybookEnv = () => {
|
|
|
105
105
|
return false;
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
+
var getBusinessWorkDivisionCode = () => {
|
|
109
|
+
return location.pathname.split("/")[1] ?? "";
|
|
110
|
+
};
|
|
108
111
|
|
|
109
112
|
// src/utils/user-agent-utils.ts
|
|
110
113
|
var getDspExecutionEnvironment = () => {
|
|
@@ -738,6 +741,7 @@ exports.fileToBase64 = fileToBase64;
|
|
|
738
741
|
exports.getApiHostNameFromEnvironment = getApiHostNameFromEnvironment;
|
|
739
742
|
exports.getBrowserName = getBrowserName;
|
|
740
743
|
exports.getBrowserVersion = getBrowserVersion;
|
|
744
|
+
exports.getBusinessWorkDivisionCode = getBusinessWorkDivisionCode;
|
|
741
745
|
exports.getCdnHostNameFromEnvironment = getCdnHostNameFromEnvironment;
|
|
742
746
|
exports.getCookie = getCookie;
|
|
743
747
|
exports.getCurrentBrowserName = getCurrentBrowserName;
|