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

@livechat/url-utils

Package Overview
Dependencies
Maintainers
5
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.1.4 to 0.1.5

8

dist/url-utils.cjs.js

@@ -15,3 +15,5 @@ 'use strict';

var pairs = query.split('&').map(function (pair) {
return pair.split('=').map(decodeURIComponent);
return pair.split('=').map(function (value) {
return decodeURIComponent(value.replace('+', '%20'));
});
});

@@ -99,5 +101,6 @@ var decoded = dataUtils.fromPairs(pairs);

exports.getOrigin = getOrigin;
exports.getPathname = getPathname;
exports.getProtocol = getProtocol;
exports.getQueryParam = getQueryParam;
exports.getQueryParams = getQueryParams;
exports.getPathname = getPathname;
exports.getSearch = getSearch;

@@ -107,2 +110,1 @@ exports.hasUnsafeProtocol = hasUnsafeProtocol;

exports.trimSearch = trimSearch;
exports.getProtocol = getProtocol;

@@ -11,3 +11,5 @@ import { toPairs, fromPairs } from '@livechat/data-utils';

var pairs = query.split('&').map(function (pair) {
return pair.split('=').map(decodeURIComponent);
return pair.split('=').map(function (value) {
return decodeURIComponent(value.replace('+', '%20'));
});
});

@@ -91,2 +93,2 @@ var decoded = fromPairs(pairs);

export { buildQueryString, decodeQueryString, getHostname, getOrigin, getQueryParam, getQueryParams, getPathname, getSearch, hasUnsafeProtocol, removeProtocol, trimSearch, getProtocol };
export { buildQueryString, decodeQueryString, getHostname, getOrigin, getPathname, getProtocol, getQueryParam, getQueryParams, getSearch, hasUnsafeProtocol, removeProtocol, trimSearch };
{
"name": "@livechat/url-utils",
"version": "0.1.4",
"version": "0.1.5",
"description": "URL utility functions",

@@ -23,10 +23,12 @@ "contributors": [

"dependencies": {
"@livechat/data-utils": "^0.2.8"
"@livechat/data-utils": "^0.2.9"
},
"devDependencies": {
"@babel/core": "^7.4.0",
"@babel/plugin-proposal-class-properties": "^7.4.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/preset-env": "^7.4.2",
"@babel/preset-typescript": "^7.3.3",
"@babel/core": "^7.10.5",
"@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.10.4",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-node-resolve": "^9.0.0",
"babel-jest": "^24.9.0",

@@ -36,6 +38,4 @@ "jest": "24.9.0",

"rimraf": "^2.6.1",
"rollup": "^0.63.5",
"rollup-plugin-babel": "^4.0.1",
"rollup-plugin-node-resolve": "^3.0.0",
"typescript": "^3.6.4"
"rollup": "^2.27.1",
"typescript": "^3.9.7"
},

@@ -42,0 +42,0 @@ "scripts": {

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