sales-frontend-debug 0.0.48 → 0.0.49
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 +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1096,6 +1096,9 @@ var DebugTool = ({
|
|
|
1096
1096
|
);
|
|
1097
1097
|
};
|
|
1098
1098
|
function addRequestLog(config) {
|
|
1099
|
+
if (!salesFrontendUtils.isClient()) {
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1099
1102
|
const env = salesFrontendUtils.getEnvironmentFromHostname(location.hostname);
|
|
1100
1103
|
if (env !== "prd") {
|
|
1101
1104
|
const { addRequest, isHold, holdRequest } = salesFrontendStores.useDebugStore.getState();
|
|
@@ -1118,6 +1121,9 @@ function addRequestLog(config) {
|
|
|
1118
1121
|
}
|
|
1119
1122
|
}
|
|
1120
1123
|
function addResponseLog(response) {
|
|
1124
|
+
if (!salesFrontendUtils.isClient()) {
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1121
1127
|
const env = salesFrontendUtils.getEnvironmentFromHostname(location.hostname);
|
|
1122
1128
|
if (env !== "prd") {
|
|
1123
1129
|
const { addResponse, isHold, holdResponse } = salesFrontendStores.useDebugStore.getState();
|