@livechat/url-utils
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -96,14 +96,9 @@ 'use strict'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -119,2 +114,5 @@ | ||
var extendParams = buildQueryString(_extends({}, originalParams, params)); | ||
if (url.indexOf('#') > -1) { | ||
return "" + urlOrigin + urlPath + "?" + extendParams + "#" + url.split('#')[1]; | ||
} | ||
return "" + urlOrigin + urlPath + "?" + extendParams; | ||
@@ -121,0 +119,0 @@ }; |
@@ -92,14 +92,9 @@ import { toPairs, fromPairs, isEmpty } from '@livechat/data-utils'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -115,2 +110,5 @@ | ||
var extendParams = buildQueryString(_extends({}, originalParams, params)); | ||
if (url.indexOf('#') > -1) { | ||
return "" + urlOrigin + urlPath + "?" + extendParams + "#" + url.split('#')[1]; | ||
} | ||
return "" + urlOrigin + urlPath + "?" + extendParams; | ||
@@ -117,0 +115,0 @@ }; |
{ | ||
"name": "@livechat/url-utils", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "URL utility functions", | ||
@@ -23,11 +23,9 @@ "contributors": [ | ||
"dependencies": { | ||
"@livechat/data-utils": "^1.0.1" | ||
"@livechat/data-utils": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.20.7", | ||
"@babel/plugin-proposal-class-properties": "^7.10.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.8.3", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@babel/core": "7.24.7", | ||
"@babel/preset-env": "7.24.7", | ||
"@babel/preset-typescript": "7.24.7", | ||
"@rollup/plugin-babel": "6.0.4", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
@@ -34,0 +32,0 @@ "babel-jest": "^26.6.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11
0
14731
324
Updated@livechat/data-utils@^1.0.2