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

fe-utils

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fe-utils - npm Package Compare versions

Comparing version 1.1.5 to 1.1.6

7

fe-utils.js

@@ -145,2 +145,3 @@ (function (global, factory) {

var reg = new RegExp('(^|&)([^&=]+)=([^&]*)(&|$)');
var s = str ? '?' + this._getQueryFromUrl(str) : loc.search;

@@ -153,4 +154,6 @@ var search = s.substr(1);

while (a[i]) {
var kv = a[i].replace(/(#\w+)$/, '').split('=');
result[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]);
var r = a[i].match(reg);
if (r != null) {
result[decodeURIComponent(r[2])] = decodeURIComponent(r[3]);
}
i++;

@@ -157,0 +160,0 @@ }

@@ -15,2 +15,3 @@ const loc = window.location

queryAll (str = '') {
const reg = new RegExp('(^|&)([^&=]+)=([^&]*)(&|$)')
const s = str ? `?${this._getQueryFromUrl(str)}` : loc.search

@@ -23,4 +24,6 @@ const search = s.substr(1)

while (a[i]) {
let kv = a[i].replace(/(#\w+)$/, '').split('=')
result[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1])
let r = a[i].match(reg)
if (r != null) {
result[decodeURIComponent(r[2])] = decodeURIComponent(r[3])
}
i++

@@ -27,0 +30,0 @@ }

{
"name": "fe-utils",
"version": "1.1.5",
"version": "1.1.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "fe-utils.js",

@@ -18,2 +18,3 @@ var loc = window.location;

var reg = new RegExp('(^|&)([^&=]+)=([^&]*)(&|$)');
var s = str ? '?' + this._getQueryFromUrl(str) : loc.search;

@@ -26,4 +27,6 @@ var search = s.substr(1);

while (a[i]) {
var kv = a[i].replace(/(#\w+)$/, '').split('=');
result[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]);
var r = a[i].match(reg);
if (r != null) {
result[decodeURIComponent(r[2])] = decodeURIComponent(r[3]);
}
i++;

@@ -30,0 +33,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