@searchspring/snap-controller
Advanced tools
Comparing version 0.31.0 to 0.32.0
@@ -117,2 +117,6 @@ "use strict"; | ||
(_c = paramsObj === null || paramsObj === void 0 ? void 0 : paramsObj.search) === null || _c === void 0 ? true : delete _c.redirectResponse; | ||
if ((paramsObj === null || paramsObj === void 0 ? void 0 : paramsObj.search) && Object.keys(paramsObj === null || paramsObj === void 0 ? void 0 : paramsObj.search).length === 0) { | ||
// if redirectResponse was the only key, also delete the empty search object | ||
delete paramsObj.search; | ||
} | ||
} | ||
@@ -119,0 +123,0 @@ if (paramsObj === null || paramsObj === void 0 ? void 0 : paramsObj.personalization) { |
@@ -35,2 +35,6 @@ import deepmerge from 'deepmerge'; | ||
delete paramsObj?.search?.redirectResponse; | ||
if (paramsObj?.search && Object.keys(paramsObj?.search).length === 0) { | ||
// if redirectResponse was the only key, also delete the empty search object | ||
delete paramsObj.search; | ||
} | ||
} | ||
@@ -37,0 +41,0 @@ if (paramsObj?.personalization) { |
{ | ||
"name": "@searchspring/snap-controller", | ||
"version": "0.31.0", | ||
"version": "0.32.0", | ||
"description": "Snap Controllers", | ||
@@ -23,13 +23,13 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@searchspring/snap-toolbox": "^0.31.0", | ||
"@searchspring/snap-toolbox": "^0.32.0", | ||
"deepmerge": "4.2.2" | ||
}, | ||
"devDependencies": { | ||
"@searchspring/snap-client": "^0.31.0", | ||
"@searchspring/snap-event-manager": "^0.31.0", | ||
"@searchspring/snap-logger": "^0.31.0", | ||
"@searchspring/snap-profiler": "^0.31.0", | ||
"@searchspring/snap-store-mobx": "^0.31.0", | ||
"@searchspring/snap-tracker": "^0.31.0", | ||
"@searchspring/snap-url-manager": "^0.31.0" | ||
"@searchspring/snap-client": "^0.32.0", | ||
"@searchspring/snap-event-manager": "^0.32.0", | ||
"@searchspring/snap-logger": "^0.32.0", | ||
"@searchspring/snap-profiler": "^0.32.0", | ||
"@searchspring/snap-store-mobx": "^0.32.0", | ||
"@searchspring/snap-tracker": "^0.32.0", | ||
"@searchspring/snap-url-manager": "^0.32.0" | ||
}, | ||
@@ -40,3 +40,3 @@ "sideEffects": false, | ||
], | ||
"gitHead": "b09e1f5eb179f8ef167d264fab4dc5234ac9f83b" | ||
"gitHead": "d63f3b80dca47a54658a6e61c1311044028ff060" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
243899
4340
+ Added@searchspring/snap-toolbox@0.32.0(transitive)
- Removed@searchspring/snap-toolbox@0.31.0(transitive)