@commercetools-frontend/browser-history 27.5.2 → 27.5.3
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.
|
@@ -6,19 +6,19 @@ var history = require('history');
|
|
|
6
6
|
var withQuery = require('history-query-enhancer');
|
|
7
7
|
var qss = require('qss');
|
|
8
8
|
|
|
9
|
-
function _interopDefault (e) { return e && e.__esModule ? e : {
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
|
|
11
11
|
var withQuery__default = /*#__PURE__*/_interopDefault(withQuery);
|
|
12
12
|
|
|
13
13
|
// NOTE: This string will be replaced on build time with the package version.
|
|
14
|
-
var version = "27.5.
|
|
14
|
+
var version = "27.5.3";
|
|
15
15
|
|
|
16
16
|
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
17
17
|
function parse(search) {
|
|
18
18
|
// Note: the "?" needs to be removed.
|
|
19
19
|
return qss.decode(search.substring(1));
|
|
20
20
|
}
|
|
21
|
-
const createEnhancedHistory = withQuery__default
|
|
21
|
+
const createEnhancedHistory = withQuery__default.default({
|
|
22
22
|
parse,
|
|
23
23
|
stringify: qss.encode
|
|
24
24
|
});
|
|
@@ -27,5 +27,5 @@ const browserHistory = createEnhancedHistory(
|
|
|
27
27
|
canUseDOM ? history.createBrowserHistory() : history.createMemoryHistory());
|
|
28
28
|
|
|
29
29
|
exports.createEnhancedHistory = createEnhancedHistory;
|
|
30
|
-
exports
|
|
30
|
+
exports.default = browserHistory;
|
|
31
31
|
exports.version = version;
|
|
@@ -6,19 +6,19 @@ var history = require('history');
|
|
|
6
6
|
var withQuery = require('history-query-enhancer');
|
|
7
7
|
var qss = require('qss');
|
|
8
8
|
|
|
9
|
-
function _interopDefault (e) { return e && e.__esModule ? e : {
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
|
|
11
11
|
var withQuery__default = /*#__PURE__*/_interopDefault(withQuery);
|
|
12
12
|
|
|
13
13
|
// NOTE: This string will be replaced on build time with the package version.
|
|
14
|
-
var version = "27.5.
|
|
14
|
+
var version = "27.5.3";
|
|
15
15
|
|
|
16
16
|
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
17
17
|
function parse(search) {
|
|
18
18
|
// Note: the "?" needs to be removed.
|
|
19
19
|
return qss.decode(search.substring(1));
|
|
20
20
|
}
|
|
21
|
-
const createEnhancedHistory = withQuery__default
|
|
21
|
+
const createEnhancedHistory = withQuery__default.default({
|
|
22
22
|
parse,
|
|
23
23
|
stringify: qss.encode
|
|
24
24
|
});
|
|
@@ -27,5 +27,5 @@ const browserHistory = createEnhancedHistory(
|
|
|
27
27
|
canUseDOM ? history.createBrowserHistory() : history.createMemoryHistory());
|
|
28
28
|
|
|
29
29
|
exports.createEnhancedHistory = createEnhancedHistory;
|
|
30
|
-
exports
|
|
30
|
+
exports.default = browserHistory;
|
|
31
31
|
exports.version = version;
|
|
@@ -3,7 +3,7 @@ import withQuery from 'history-query-enhancer';
|
|
|
3
3
|
import { encode, decode } from 'qss';
|
|
4
4
|
|
|
5
5
|
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
-
var version = "27.5.
|
|
6
|
+
var version = "27.5.3";
|
|
7
7
|
|
|
8
8
|
const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
9
9
|
function parse(search) {
|
package/package.json
CHANGED