@livechat/url-utils
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -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": { |
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
10245
200
Updated@livechat/data-utils@^0.2.9