@commercetools-frontend/browser-history 20.9.0 → 20.12.1

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.
@@ -10,20 +10,20 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
10
10
 
11
11
  var withQuery__default = /*#__PURE__*/_interopDefault(withQuery);
12
12
 
13
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
14
- var version = '20.9.0';
13
+ // NOTE: This string will be replaced on build time with the package version.
14
+ var version = "20.12.1";
15
15
 
16
16
  function parse(search) {
17
17
  // Note: the "?" needs to be removed.
18
18
  return qss.decode(search.substring(1));
19
19
  }
20
20
 
21
- var createEnhancedHistory = withQuery__default['default']({
21
+ var createEnhancedHistory = withQuery__default["default"]({
22
22
  parse: parse,
23
23
  stringify: qss.encode
24
24
  });
25
25
  var browserHistory = createEnhancedHistory(history.createBrowserHistory());
26
26
 
27
27
  exports.createEnhancedHistory = createEnhancedHistory;
28
- exports['default'] = browserHistory;
28
+ exports["default"] = browserHistory;
29
29
  exports.version = version;
@@ -10,20 +10,20 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
10
10
 
11
11
  var withQuery__default = /*#__PURE__*/_interopDefault(withQuery);
12
12
 
13
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
14
- var version = '20.9.0';
13
+ // NOTE: This string will be replaced on build time with the package version.
14
+ var version = "20.12.1";
15
15
 
16
16
  function parse(search) {
17
17
  // Note: the "?" needs to be removed.
18
18
  return qss.decode(search.substring(1));
19
19
  }
20
20
 
21
- var createEnhancedHistory = withQuery__default['default']({
21
+ var createEnhancedHistory = withQuery__default["default"]({
22
22
  parse: parse,
23
23
  stringify: qss.encode
24
24
  });
25
25
  var browserHistory = createEnhancedHistory(history.createBrowserHistory());
26
26
 
27
27
  exports.createEnhancedHistory = createEnhancedHistory;
28
- exports['default'] = browserHistory;
28
+ exports["default"] = browserHistory;
29
29
  exports.version = version;
@@ -2,8 +2,8 @@ import { createBrowserHistory } from 'history';
2
2
  import withQuery from 'history-query-enhancer';
3
3
  import { encode, decode } from 'qss';
4
4
 
5
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
6
- var version = '20.9.0';
5
+ // NOTE: This string will be replaced on build time with the package version.
6
+ var version = "20.12.1";
7
7
 
8
8
  function parse(search) {
9
9
  // Note: the "?" needs to be removed.
@@ -1,3 +1,3 @@
1
- export declare const createEnhancedHistory: (history: import("history").History<unknown>) => import("history-query-enhancer").EnhancedHistory;
2
- declare const browserHistory: import("history-query-enhancer").EnhancedHistory;
3
- export default browserHistory;
1
+ export declare const createEnhancedHistory: (history: import("history").History<unknown>) => import("history-query-enhancer").EnhancedHistory;
2
+ declare const browserHistory: import("history-query-enhancer").EnhancedHistory;
3
+ export default browserHistory;
@@ -1,2 +1,2 @@
1
- import type { EnhancedLocation } from 'history-query-enhancer';
2
- export declare type TEnhancedLocation<Q extends {}> = EnhancedLocation<Q>;
1
+ import type { EnhancedLocation } from 'history-query-enhancer';
2
+ export declare type TEnhancedLocation<Q extends {}> = EnhancedLocation<Q>;
@@ -1,3 +1,3 @@
1
- export { default as version } from './version';
2
- export * from './export-types';
3
- export { default, createEnhancedHistory } from './enhanced-history';
1
+ export { default as version } from './version';
2
+ export * from './export-types';
3
+ export { default, createEnhancedHistory } from './enhanced-history';
@@ -1,2 +1,2 @@
1
- declare const _default: "20.9.0";
2
- export default _default;
1
+ declare const _default: "__@APPLICATION_KIT_PACKAGE/VERSION_OF_RELEASE__";
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/browser-history",
3
- "version": "20.9.0",
3
+ "version": "20.12.1",
4
4
  "description": "Enhances browser history",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -11,19 +11,15 @@
11
11
  "homepage": "https://docs.commercetools.com/custom-applications",
12
12
  "keywords": ["javascript", "frontend", "react", "toolkit"],
13
13
  "license": "MIT",
14
- "private": false,
15
14
  "publishConfig": {
16
15
  "access": "public"
17
16
  },
18
17
  "main": "dist/commercetools-frontend-browser-history.cjs.js",
19
18
  "module": "dist/commercetools-frontend-browser-history.esm.js",
20
19
  "files": ["dist", "package.json", "LICENSE", "README.md"],
21
- "scripts": {
22
- "prepare": "./../../scripts/version.js replace"
23
- },
24
20
  "dependencies": {
25
- "@babel/runtime": "7.14.8",
26
- "@babel/runtime-corejs3": "7.14.8",
21
+ "@babel/runtime": "7.16.3",
22
+ "@babel/runtime-corejs3": "7.16.3",
27
23
  "@types/history": "4.7.9",
28
24
  "history": "4.10.1",
29
25
  "history-query-enhancer": "1.0.4",