sales-frontend-utils 0.0.29 → 0.0.30

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 CHANGED
@@ -116,6 +116,9 @@ var getServiceCode = () => {
116
116
  }
117
117
  };
118
118
  var getDudApiHostNameFromEnvironment = (hostname) => {
119
+ if (!isClient()) {
120
+ return "";
121
+ }
119
122
  const environment = getEnvironmentFromHostname(hostname || location.hostname);
120
123
  switch (environment) {
121
124
  /**
@@ -139,6 +142,9 @@ var getDudApiHostNameFromEnvironment = (hostname) => {
139
142
  }
140
143
  };
141
144
  var getDspApiHostNameFromEnvironment = (serviceCodeTo, hostname) => {
145
+ if (!isClient()) {
146
+ return "";
147
+ }
142
148
  const environment = getEnvironmentFromHostname(hostname || location.hostname);
143
149
  switch (environment) {
144
150
  /**
@@ -824,6 +830,7 @@ exports.getFormFactorFromUserAgent = getFormFactorFromUserAgent;
824
830
  exports.getOSName = getOSName;
825
831
  exports.getOSVersion = getOSVersion;
826
832
  exports.getOrCreateDeviceId = getOrCreateDeviceId;
833
+ exports.getServiceCode = getServiceCode;
827
834
  exports.getSubdomain = getSubdomain;
828
835
  exports.hasAstx2 = hasAstx2;
829
836
  exports.initASTX2 = initASTX2;