Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@livechat/url-utils

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livechat/url-utils - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

20

dist/url-utils.cjs.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc