@commercetools-frontend/url-utils 21.23.10 → 21.24.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.
@@ -11,18 +11,16 @@ var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstancePro
11
11
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
12
12
 
13
13
  // NOTE: This string will be replaced on build time with the package version.
14
- var version = "21.23.10";
14
+ var version = "21.24.1";
15
15
 
16
- var matchLeadingAndTrailingSlashes = /^\/|\/$/g;
17
- var trimLeadingAndTrailingSlashes = function trimLeadingAndTrailingSlashes(url) {
18
- return url.replace(matchLeadingAndTrailingSlashes, '');
19
- };
20
- var joinPaths = function joinPaths() {
16
+ const matchLeadingAndTrailingSlashes = /^\/|\/$/g;
17
+ const trimLeadingAndTrailingSlashes = url => url.replace(matchLeadingAndTrailingSlashes, '');
18
+ const joinPaths = function () {
21
19
  for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) {
22
20
  paths[_key] = arguments[_key];
23
21
  }
24
22
 
25
- var joint = _mapInstanceProperty__default["default"](paths).call(paths, function (path) {
23
+ const joint = _mapInstanceProperty__default["default"](paths).call(paths, path => {
26
24
  var _context;
27
25
 
28
26
  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
@@ -11,18 +11,16 @@ var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstancePro
11
11
  var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
12
12
 
13
13
  // NOTE: This string will be replaced on build time with the package version.
14
- var version = "21.23.10";
14
+ var version = "21.24.1";
15
15
 
16
- var matchLeadingAndTrailingSlashes = /^\/|\/$/g;
17
- var trimLeadingAndTrailingSlashes = function trimLeadingAndTrailingSlashes(url) {
18
- return url.replace(matchLeadingAndTrailingSlashes, '');
19
- };
20
- var joinPaths = function joinPaths() {
16
+ const matchLeadingAndTrailingSlashes = /^\/|\/$/g;
17
+ const trimLeadingAndTrailingSlashes = url => url.replace(matchLeadingAndTrailingSlashes, '');
18
+ const joinPaths = function () {
21
19
  for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) {
22
20
  paths[_key] = arguments[_key];
23
21
  }
24
22
 
25
- var joint = _mapInstanceProperty__default["default"](paths).call(paths, function (path) {
23
+ const joint = _mapInstanceProperty__default["default"](paths).call(paths, path => {
26
24
  var _context;
27
25
 
28
26
  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
@@ -2,18 +2,16 @@ import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance
2
2
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
3
3
 
4
4
  // NOTE: This string will be replaced on build time with the package version.
5
- var version = "21.23.10";
5
+ var version = "21.24.1";
6
6
 
7
- var matchLeadingAndTrailingSlashes = /^\/|\/$/g;
8
- var trimLeadingAndTrailingSlashes = function trimLeadingAndTrailingSlashes(url) {
9
- return url.replace(matchLeadingAndTrailingSlashes, '');
10
- };
11
- var joinPaths = function joinPaths() {
7
+ const matchLeadingAndTrailingSlashes = /^\/|\/$/g;
8
+ const trimLeadingAndTrailingSlashes = url => url.replace(matchLeadingAndTrailingSlashes, '');
9
+ const joinPaths = function () {
12
10
  for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) {
13
11
  paths[_key] = arguments[_key];
14
12
  }
15
13
 
16
- var joint = _mapInstanceProperty(paths).call(paths, function (path) {
14
+ const joint = _mapInstanceProperty(paths).call(paths, path => {
17
15
  var _context;
18
16
 
19
17
  if (typeof path !== 'string') throw new Error(_concatInstanceProperty(_context = "Expected path \"".concat(path, "\" to be a \"string\", but got \"")).call(_context, typeof path, "\"")); // Trim leading and trailing slash for each single path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/url-utils",
3
- "version": "21.23.10",
3
+ "version": "21.24.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": {