@commercetools-frontend/url-utils 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.
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
6
4
|
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : {
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
6
|
|
|
9
7
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
10
8
|
|
|
11
9
|
// NOTE: This string will be replaced on build time with the package version.
|
|
12
|
-
var version = "27.5.
|
|
10
|
+
var version = "27.5.3";
|
|
13
11
|
|
|
14
12
|
const matchLeadingAndTrailingSlashes = /^\/|\/$/g;
|
|
15
13
|
const trimLeadingAndTrailingSlashes = url => url.replace(matchLeadingAndTrailingSlashes, '');
|
|
@@ -17,7 +15,7 @@ const joinPaths = function () {
|
|
|
17
15
|
for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18
16
|
paths[_key] = arguments[_key];
|
|
19
17
|
}
|
|
20
|
-
const joint = _mapInstanceProperty__default
|
|
18
|
+
const joint = _mapInstanceProperty__default.default(paths).call(paths, path => {
|
|
21
19
|
if (typeof path !== 'string') throw new Error(`Expected path "${path}" to be a "string", but got "${typeof path}"`);
|
|
22
20
|
// Trim leading and trailing slash for each single path
|
|
23
21
|
return trimLeadingAndTrailingSlashes(path);
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
6
4
|
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : {
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
6
|
|
|
9
7
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
10
8
|
|
|
11
9
|
// NOTE: This string will be replaced on build time with the package version.
|
|
12
|
-
var version = "27.5.
|
|
10
|
+
var version = "27.5.3";
|
|
13
11
|
|
|
14
12
|
const matchLeadingAndTrailingSlashes = /^\/|\/$/g;
|
|
15
13
|
const trimLeadingAndTrailingSlashes = url => url.replace(matchLeadingAndTrailingSlashes, '');
|
|
@@ -17,7 +15,7 @@ const joinPaths = function () {
|
|
|
17
15
|
for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18
16
|
paths[_key] = arguments[_key];
|
|
19
17
|
}
|
|
20
|
-
const joint = _mapInstanceProperty__default
|
|
18
|
+
const joint = _mapInstanceProperty__default.default(paths).call(paths, path => {
|
|
21
19
|
if (typeof path !== 'string') throw new Error(`Expected path "${path}" to be a "string", but got "${typeof path}"`);
|
|
22
20
|
// Trim leading and trailing slash for each single path
|
|
23
21
|
return trimLeadingAndTrailingSlashes(path);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
2
2
|
|
|
3
3
|
// NOTE: This string will be replaced on build time with the package version.
|
|
4
|
-
var version = "27.5.
|
|
4
|
+
var version = "27.5.3";
|
|
5
5
|
|
|
6
6
|
const matchLeadingAndTrailingSlashes = /^\/|\/$/g;
|
|
7
7
|
const trimLeadingAndTrailingSlashes = url => url.replace(matchLeadingAndTrailingSlashes, '');
|
package/package.json
CHANGED