@commercetools-frontend/url-utils 20.8.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.
- package/dist/commercetools-frontend-url-utils.cjs.dev.js +4 -4
- package/dist/commercetools-frontend-url-utils.cjs.prod.js +4 -4
- package/dist/commercetools-frontend-url-utils.esm.js +2 -2
- package/dist/declarations/src/index.d.ts +2 -2
- package/dist/declarations/src/url.d.ts +2 -2
- package/dist/declarations/src/version.d.ts +2 -2
- package/package.json +3 -7
|
@@ -11,8 +11,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
|
|
|
11
11
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
12
12
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
13
13
|
|
|
14
|
-
// NOTE: This string will be replaced
|
|
15
|
-
var version =
|
|
14
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
15
|
+
var version = "20.12.1";
|
|
16
16
|
|
|
17
17
|
var matchLeadingAndTrailingSlashes = /^\/|\/$/g;
|
|
18
18
|
var trimLeadingAndTrailingSlashes = function trimLeadingAndTrailingSlashes(url) {
|
|
@@ -23,10 +23,10 @@ var joinPaths = function joinPaths() {
|
|
|
23
23
|
paths[_key] = arguments[_key];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
var joint = _mapInstanceProperty__default[
|
|
26
|
+
var joint = _mapInstanceProperty__default["default"](paths).call(paths, function (path) {
|
|
27
27
|
var _context;
|
|
28
28
|
|
|
29
|
-
if (typeof path !== 'string') throw new Error(_concatInstanceProperty__default[
|
|
29
|
+
if (typeof path !== 'string') throw new Error(_concatInstanceProperty__default["default"](_context = "Expected path \"".concat(path, "\" to be a \"string\", but got \"")).call(_context, _typeof(path), "\"")); // Trim leading and trailing slash for each single path
|
|
30
30
|
|
|
31
31
|
return trimLeadingAndTrailingSlashes(path);
|
|
32
32
|
}).join('/');
|
|
@@ -11,8 +11,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
|
|
|
11
11
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
12
12
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
13
13
|
|
|
14
|
-
// NOTE: This string will be replaced
|
|
15
|
-
var version =
|
|
14
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
15
|
+
var version = "20.12.1";
|
|
16
16
|
|
|
17
17
|
var matchLeadingAndTrailingSlashes = /^\/|\/$/g;
|
|
18
18
|
var trimLeadingAndTrailingSlashes = function trimLeadingAndTrailingSlashes(url) {
|
|
@@ -23,10 +23,10 @@ var joinPaths = function joinPaths() {
|
|
|
23
23
|
paths[_key] = arguments[_key];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
var joint = _mapInstanceProperty__default[
|
|
26
|
+
var joint = _mapInstanceProperty__default["default"](paths).call(paths, function (path) {
|
|
27
27
|
var _context;
|
|
28
28
|
|
|
29
|
-
if (typeof path !== 'string') throw new Error(_concatInstanceProperty__default[
|
|
29
|
+
if (typeof path !== 'string') throw new Error(_concatInstanceProperty__default["default"](_context = "Expected path \"".concat(path, "\" to be a \"string\", but got \"")).call(_context, _typeof(path), "\"")); // Trim leading and trailing slash for each single path
|
|
30
30
|
|
|
31
31
|
return trimLeadingAndTrailingSlashes(path);
|
|
32
32
|
}).join('/');
|
|
@@ -2,8 +2,8 @@ import _typeof from '@babel/runtime-corejs3/helpers/esm/typeof';
|
|
|
2
2
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
3
3
|
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
4
4
|
|
|
5
|
-
// NOTE: This string will be replaced
|
|
6
|
-
var version =
|
|
5
|
+
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
+
var version = "20.12.1";
|
|
7
7
|
|
|
8
8
|
var matchLeadingAndTrailingSlashes = /^\/|\/$/g;
|
|
9
9
|
var trimLeadingAndTrailingSlashes = function trimLeadingAndTrailingSlashes(url) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as version } from './version';
|
|
2
|
-
export * from './url';
|
|
1
|
+
export { default as version } from './version';
|
|
2
|
+
export * from './url';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const trimLeadingAndTrailingSlashes: (url: string) => string;
|
|
2
|
-
export declare const joinPaths: (...paths: string[]) => string;
|
|
1
|
+
export declare const trimLeadingAndTrailingSlashes: (url: string) => string;
|
|
2
|
+
export declare const joinPaths: (...paths: string[]) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
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/url-utils",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.12.1",
|
|
4
4
|
"description": "Utility functions to work with URLs",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -11,18 +11,14 @@
|
|
|
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-url-utils.cjs.js",
|
|
19
18
|
"module": "dist/commercetools-frontend-url-utils.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.
|
|
26
|
-
"@babel/runtime-corejs3": "7.
|
|
21
|
+
"@babel/runtime": "7.16.3",
|
|
22
|
+
"@babel/runtime-corejs3": "7.16.3"
|
|
27
23
|
}
|
|
28
24
|
}
|