url-lib
Advanced tools
Comparing version 3.0.0 to 3.0.1
"use strict"; | ||
require("core-js/modules/es.symbol"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
require("core-js/modules/es.symbol.description"); | ||
require("core-js/modules/es.symbol.iterator"); | ||
require("core-js/modules/es.array.concat"); | ||
require("core-js/modules/es.array.from"); | ||
require("core-js/modules/es.array.iterator"); | ||
require("core-js/modules/es.array.join"); | ||
require("core-js/modules/es.object.assign"); | ||
require("core-js/modules/es.object.keys"); | ||
require("core-js/modules/es.object.to-string"); | ||
require("core-js/modules/es.regexp.to-string"); | ||
require("core-js/modules/es.string.iterator"); | ||
require("core-js/modules/web.dom-collections.iterator"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -34,12 +10,7 @@ value: true | ||
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); | ||
var _utils = require("./utils"); | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
// Adapted from the Uize.Url module, a part of the UIZE JavaScript Framework. | ||
var IMMUTABLE_EMPTY_OBJECT = {}; | ||
@@ -56,3 +27,3 @@ /** | ||
if (Array.isArray(paramsObj)) { | ||
paramsObj = paramsObj.length < 2 ? paramsObj[0] : Object.assign.apply(Object, [{}].concat(_toConsumableArray(paramsObj))); | ||
paramsObj = paramsObj.length < 2 ? paramsObj[0] : Object.assign.apply(Object, [{}].concat((0, _toConsumableArray2.default)(paramsObj))); | ||
} | ||
@@ -59,0 +30,0 @@ |
"use strict"; | ||
require("core-js/modules/es.symbol"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
require("core-js/modules/es.symbol.description"); | ||
require("core-js/modules/es.symbol.iterator"); | ||
require("core-js/modules/es.array.concat"); | ||
require("core-js/modules/es.array.from"); | ||
require("core-js/modules/es.array.iterator"); | ||
require("core-js/modules/es.array.slice"); | ||
require("core-js/modules/es.object.to-string"); | ||
require("core-js/modules/es.regexp.to-string"); | ||
require("core-js/modules/es.string.iterator"); | ||
require("core-js/modules/web.dom-collections.iterator"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -30,2 +10,6 @@ value: true | ||
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); | ||
var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray")); | ||
var _parseQuery = _interopRequireDefault(require("./parseQuery")); | ||
@@ -37,18 +21,3 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
// Adapted from the Uize.Url module, a part of the UIZE JavaScript Framework. | ||
var IMMUTABLE_EMPTY_ARRAY = []; | ||
@@ -70,3 +39,3 @@ /** | ||
var _formattedUrl = formattedUrl, | ||
_formattedUrl2 = _toArray(_formattedUrl), | ||
_formattedUrl2 = (0, _toArray2.default)(_formattedUrl), | ||
url = _formattedUrl2[0], | ||
@@ -84,3 +53,3 @@ _urlParamsList = _formattedUrl2.slice(1); | ||
var queryString = (0, _formatQuery.default)([parsedQueryParamsFromUrl].concat(_toConsumableArray(normalizedQueryParams))); // Finally build the URL by stripping out any query string from the URL and | ||
var queryString = (0, _formatQuery.default)([parsedQueryParamsFromUrl].concat((0, _toConsumableArray2.default)(normalizedQueryParams))); // Finally build the URL by stripping out any query string from the URL and | ||
// appending the query string | ||
@@ -87,0 +56,0 @@ |
"use strict"; | ||
require("core-js/modules/es.array.concat"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -6,0 +4,0 @@ value: true |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -45,4 +47,2 @@ value: true | ||
var _formatUrl = _interopRequireDefault(require("./formatUrl")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _formatUrl = _interopRequireDefault(require("./formatUrl")); |
"use strict"; | ||
require("core-js/modules/es.symbol"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
require("core-js/modules/es.symbol.description"); | ||
require("core-js/modules/es.symbol.iterator"); | ||
require("core-js/modules/es.array.iterator"); | ||
require("core-js/modules/es.object.to-string"); | ||
require("core-js/modules/es.string.iterator"); | ||
require("core-js/modules/es.string.split"); | ||
require("core-js/modules/web.dom-collections.iterator"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -24,12 +10,6 @@ value: true | ||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
var _utils = require("./utils"); | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
/** | ||
@@ -54,3 +34,3 @@ * Parses query parameters from a string, returning the query parameters as an object. | ||
var _serializedUrlParamPa = serializedUrlParamPair.split('='), | ||
_serializedUrlParamPa2 = _slicedToArray(_serializedUrlParamPa, 2), | ||
_serializedUrlParamPa2 = (0, _slicedToArray2.default)(_serializedUrlParamPa, 2), | ||
urlParamNameEncoded = _serializedUrlParamPa2[0], | ||
@@ -57,0 +37,0 @@ urlParamValueEncoded = _serializedUrlParamPa2[1]; |
"use strict"; | ||
require("core-js/modules/es.string.match"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -6,0 +4,0 @@ value: true |
"use strict"; | ||
require("core-js/modules/es.array.index-of"); | ||
require("core-js/modules/es.array.slice"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -8,0 +4,0 @@ value: true |
@@ -1,23 +0,2 @@ | ||
import "core-js/modules/es.symbol"; | ||
import "core-js/modules/es.symbol.description"; | ||
import "core-js/modules/es.symbol.iterator"; | ||
import "core-js/modules/es.array.concat"; | ||
import "core-js/modules/es.array.from"; | ||
import "core-js/modules/es.array.iterator"; | ||
import "core-js/modules/es.array.join"; | ||
import "core-js/modules/es.object.assign"; | ||
import "core-js/modules/es.object.keys"; | ||
import "core-js/modules/es.object.to-string"; | ||
import "core-js/modules/es.regexp.to-string"; | ||
import "core-js/modules/es.string.iterator"; | ||
import "core-js/modules/web.dom-collections.iterator"; | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
// Adapted from the Uize.Url module, a part of the UIZE JavaScript Framework. | ||
@@ -24,0 +3,0 @@ import { encode } from './utils'; |
@@ -1,27 +0,3 @@ | ||
import "core-js/modules/es.symbol"; | ||
import "core-js/modules/es.symbol.description"; | ||
import "core-js/modules/es.symbol.iterator"; | ||
import "core-js/modules/es.array.concat"; | ||
import "core-js/modules/es.array.from"; | ||
import "core-js/modules/es.array.iterator"; | ||
import "core-js/modules/es.array.slice"; | ||
import "core-js/modules/es.object.to-string"; | ||
import "core-js/modules/es.regexp.to-string"; | ||
import "core-js/modules/es.string.iterator"; | ||
import "core-js/modules/web.dom-collections.iterator"; | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
import _toArray from "@babel/runtime/helpers/toArray"; | ||
// Adapted from the Uize.Url module, a part of the UIZE JavaScript Framework. | ||
@@ -28,0 +4,0 @@ import parseQuery from './parseQuery'; |
@@ -1,2 +0,1 @@ | ||
import "core-js/modules/es.array.concat"; | ||
// Adapted from the Uize.Url module, a part of the UIZE JavaScript Framework. | ||
@@ -3,0 +2,0 @@ var cacheDefeatStrCallCount = 0; |
@@ -1,18 +0,2 @@ | ||
import "core-js/modules/es.symbol"; | ||
import "core-js/modules/es.symbol.description"; | ||
import "core-js/modules/es.symbol.iterator"; | ||
import "core-js/modules/es.array.iterator"; | ||
import "core-js/modules/es.object.to-string"; | ||
import "core-js/modules/es.string.iterator"; | ||
import "core-js/modules/es.string.split"; | ||
import "core-js/modules/web.dom-collections.iterator"; | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; | ||
import { splitOnQuery, decode } from './utils'; | ||
@@ -19,0 +3,0 @@ |
@@ -1,2 +0,1 @@ | ||
import "core-js/modules/es.string.match"; | ||
// Adapted from the Uize.Url module, a part of the UIZE JavaScript Framework. | ||
@@ -3,0 +2,0 @@ // eslint-disable-next-line no-useless-escape |
@@ -1,3 +0,1 @@ | ||
import "core-js/modules/es.array.index-of"; | ||
import "core-js/modules/es.array.slice"; | ||
export var splitOnQuery = function splitOnQuery() { | ||
@@ -4,0 +2,0 @@ var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; |
{ | ||
"name": "url-lib", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A simple, lightweight string utility for Node and browsers that supports serializing and parsing URLs and query strings.", | ||
@@ -34,6 +34,7 @@ "main": "lib/cjs/index.js", | ||
"test": "benmvp test", | ||
"build": "benmvp build" | ||
"build": "benmvp build", | ||
"integrate": "benmvp integrate" | ||
}, | ||
"devDependencies": { | ||
"@benmvp/cli": "^2.0.0" | ||
"@benmvp/cli": "^4.0.3" | ||
}, | ||
@@ -40,0 +41,0 @@ "engines": { |
@@ -30,12 +30,12 @@ # url-lib | ||
Install via [Yarn](https://yarnpkg.com/lang/en/docs/managing-dependencies/): | ||
Install via [npm](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): | ||
```sh | ||
yarn add url-lib | ||
npm install --save url-lib | ||
``` | ||
Install via [NPM](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): | ||
Install via [Yarn](https://yarnpkg.com/lang/en/docs/managing-dependencies/): | ||
```sh | ||
npm install --save url-lib | ||
yarn add url-lib | ||
``` | ||
@@ -42,0 +42,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31329
28
466