You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

whatwg-url-without-unicode

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatwg-url-without-unicode - npm Package Compare versions

Comparing version

to
8.0.0-1

52

lib/URL.js

@@ -74,5 +74,5 @@ "use strict";

value: new Impl.implementation(globalObject, constructorArgs, privateData),
configurable: true
});
configurable: true });
obj[impl][utils.wrapperSymbol] = obj;

@@ -90,4 +90,4 @@ if (Impl.init) {

throw new TypeError(
"Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present."
);
"Failed to construct 'URL': 1 argument required, but only " + arguments.length + " present.");
}

@@ -107,3 +107,3 @@ const args = [];

}
return iface.setup(Object.create(new.target.prototype), globalObject, args);
return iface.setup(Object.create(this.constructor.prototype), globalObject, args);
}

@@ -166,5 +166,5 @@

V = conversions["USVString"](V, {
context: "Failed to set the 'protocol' property on 'URL': The provided value"
});
context: "Failed to set the 'protocol' property on 'URL': The provided value" });
this[impl]["protocol"] = V;

@@ -187,5 +187,5 @@ }

V = conversions["USVString"](V, {
context: "Failed to set the 'username' property on 'URL': The provided value"
});
context: "Failed to set the 'username' property on 'URL': The provided value" });
this[impl]["username"] = V;

@@ -208,5 +208,5 @@ }

V = conversions["USVString"](V, {
context: "Failed to set the 'password' property on 'URL': The provided value"
});
context: "Failed to set the 'password' property on 'URL': The provided value" });
this[impl]["password"] = V;

@@ -247,5 +247,5 @@ }

V = conversions["USVString"](V, {
context: "Failed to set the 'hostname' property on 'URL': The provided value"
});
context: "Failed to set the 'hostname' property on 'URL': The provided value" });
this[impl]["hostname"] = V;

@@ -286,5 +286,5 @@ }

V = conversions["USVString"](V, {
context: "Failed to set the 'pathname' property on 'URL': The provided value"
});
context: "Failed to set the 'pathname' property on 'URL': The provided value" });
this[impl]["pathname"] = V;

@@ -307,5 +307,5 @@ }

V = conversions["USVString"](V, {
context: "Failed to set the 'search' property on 'URL': The provided value"
});
context: "Failed to set the 'search' property on 'URL': The provided value" });
this[impl]["search"] = V;

@@ -340,4 +340,4 @@ }

this[impl]["hash"] = V;
}
}
}}
Object.defineProperties(URL.prototype, {

@@ -358,4 +358,4 @@ toJSON: { enumerable: true },

hash: { enumerable: true },
[Symbol.toStringTag]: { value: "URL", configurable: true }
});
[Symbol.toStringTag]: { value: "URL", configurable: true } });
if (globalObject[ctorRegistry] === undefined) {

@@ -369,8 +369,8 @@ globalObject[ctorRegistry] = Object.create(null);

writable: true,
value: URL
});
}
}; // iface
value: URL });
} };
// iface
module.exports = iface;
const Impl = require("./URL-impl.js");
const Impl = require("./URL-impl.js");

@@ -34,4 +34,4 @@ "use strict";

result = [key, value];
break;
}
break;}
return { value: result, done: false };

@@ -41,10 +41,10 @@ },

enumerable: true,
configurable: true
},
configurable: true },
[Symbol.toStringTag]: {
value: "URLSearchParams Iterator",
configurable: true
}
});
configurable: true } });
const iface = {

@@ -94,4 +94,4 @@ // When an interface-module that implements this interface as a mixin is loaded, it will append its own `.is()`

value: { target, kind, index: 0 },
configurable: true
});
configurable: true });
return iterator;

@@ -125,5 +125,5 @@ },

value: new Impl.implementation(globalObject, constructorArgs, privateData),
configurable: true
});
configurable: true });
obj[impl][utils.wrapperSymbol] = obj;

@@ -147,4 +147,4 @@ if (Impl.init) {

throw new TypeError(
"Failed to construct 'URLSearchParams': parameter 1" + " sequence" + " is not an iterable object."
);
"Failed to construct 'URLSearchParams': parameter 1" + " sequence" + " is not an iterable object.");
} else {

@@ -156,7 +156,7 @@ const V = [];

throw new TypeError(
"Failed to construct 'URLSearchParams': parameter 1" +
" sequence" +
"'s element" +
" is not an iterable object."
);
"Failed to construct 'URLSearchParams': parameter 1" +
" sequence" +
"'s element" +
" is not an iterable object.");
} else {

@@ -168,8 +168,8 @@ const V = [];

context:
"Failed to construct 'URLSearchParams': parameter 1" +
" sequence" +
"'s element" +
"'s element"
});
"Failed to construct 'URLSearchParams': parameter 1" +
" sequence" +
"'s element" +
"'s element" });
V.push(nextItem);

@@ -187,4 +187,4 @@ }

throw new TypeError(
"Failed to construct 'URLSearchParams': parameter 1" + " record" + " is not an object."
);
"Failed to construct 'URLSearchParams': parameter 1" + " record" + " is not an object.");
} else {

@@ -198,11 +198,11 @@ const result = Object.create(null);

typedKey = conversions["USVString"](typedKey, {
context: "Failed to construct 'URLSearchParams': parameter 1" + " record" + "'s key"
});
context: "Failed to construct 'URLSearchParams': parameter 1" + " record" + "'s key" });
let typedValue = curArg[key];
typedValue = conversions["USVString"](typedValue, {
context: "Failed to construct 'URLSearchParams': parameter 1" + " record" + "'s value"
});
context: "Failed to construct 'URLSearchParams': parameter 1" + " record" + "'s value" });
result[typedKey] = typedValue;

@@ -216,4 +216,4 @@ }

curArg = conversions["USVString"](curArg, {
context: "Failed to construct 'URLSearchParams': parameter 1"
});
context: "Failed to construct 'URLSearchParams': parameter 1" });
}

@@ -225,3 +225,3 @@ } else {

}
return iface.setup(Object.create(new.target.prototype), globalObject, args);
return iface.setup(Object.create(this.constructor.prototype), globalObject, args);
}

@@ -236,6 +236,6 @@

throw new TypeError(
"Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only " +
arguments.length +
" present."
);
"Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only " +
arguments.length +
" present.");
}

@@ -246,4 +246,4 @@ const args = [];

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'append' on 'URLSearchParams': parameter 1"
});
context: "Failed to execute 'append' on 'URLSearchParams': parameter 1" });
args.push(curArg);

@@ -254,4 +254,4 @@ }

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'append' on 'URLSearchParams': parameter 2"
});
context: "Failed to execute 'append' on 'URLSearchParams': parameter 2" });
args.push(curArg);

@@ -269,6 +269,6 @@ }

throw new TypeError(
"Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present."
);
"Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present.");
}

@@ -279,4 +279,4 @@ const args = [];

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'delete' on 'URLSearchParams': parameter 1"
});
context: "Failed to execute 'delete' on 'URLSearchParams': parameter 1" });
args.push(curArg);

@@ -294,6 +294,6 @@ }

throw new TypeError(
"Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present."
);
"Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present.");
}

@@ -304,4 +304,4 @@ const args = [];

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'get' on 'URLSearchParams': parameter 1"
});
context: "Failed to execute 'get' on 'URLSearchParams': parameter 1" });
args.push(curArg);

@@ -319,6 +319,6 @@ }

throw new TypeError(
"Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present."
);
"Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present.");
}

@@ -329,4 +329,4 @@ const args = [];

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'getAll' on 'URLSearchParams': parameter 1"
});
context: "Failed to execute 'getAll' on 'URLSearchParams': parameter 1" });
args.push(curArg);

@@ -344,6 +344,6 @@ }

throw new TypeError(
"Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present."
);
"Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only " +
arguments.length +
" present.");
}

@@ -354,4 +354,4 @@ const args = [];

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'has' on 'URLSearchParams': parameter 1"
});
context: "Failed to execute 'has' on 'URLSearchParams': parameter 1" });
args.push(curArg);

@@ -369,6 +369,6 @@ }

throw new TypeError(
"Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only " +
arguments.length +
" present."
);
"Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only " +
arguments.length +
" present.");
}

@@ -379,4 +379,4 @@ const args = [];

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'set' on 'URLSearchParams': parameter 1"
});
context: "Failed to execute 'set' on 'URLSearchParams': parameter 1" });
args.push(curArg);

@@ -387,4 +387,4 @@ }

curArg = conversions["USVString"](curArg, {
context: "Failed to execute 'set' on 'URLSearchParams': parameter 2"
});
context: "Failed to execute 'set' on 'URLSearchParams': parameter 2" });
args.push(curArg);

@@ -438,9 +438,9 @@ }

throw new TypeError(
"Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present."
);
"Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
}
if (typeof callback !== "function") {
throw new TypeError(
"Failed to execute 'forEach' on 'iterable': The callback provided " + "as parameter 1 is not a function."
);
"Failed to execute 'forEach' on 'iterable': The callback provided " + "as parameter 1 is not a function.");
}

@@ -456,4 +456,4 @@ const thisArg = arguments[1];

}
}
}
}}
Object.defineProperties(URLSearchParams.prototype, {

@@ -473,4 +473,4 @@ append: { enumerable: true },

[Symbol.toStringTag]: { value: "URLSearchParams", configurable: true },
[Symbol.iterator]: { value: URLSearchParams.prototype.entries, configurable: true, writable: true }
});
[Symbol.iterator]: { value: URLSearchParams.prototype.entries, configurable: true, writable: true } });
if (globalObject[ctorRegistry] === undefined) {

@@ -484,8 +484,8 @@ globalObject[ctorRegistry] = Object.create(null);

writable: true,
value: URLSearchParams
});
}
}; // iface
value: URLSearchParams });
} };
// iface
module.exports = iface;
const Impl = require("./URLSearchParams-impl.js");
const Impl = require("./URLSearchParams-impl.js");
{
"name": "whatwg-url-without-unicode",
"version": "8.0.0-0",
"version": "8.0.0-1",
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery, without unicode support",

@@ -18,2 +18,5 @@ "main": "index.js",

"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/plugin-transform-new-target": "^7.8.3",
"browserify": "^16.5.0",

@@ -31,7 +34,7 @@ "domexception": "^2.0.1",

"scripts": {
"build": "node scripts/transform.js && node scripts/convert-idl.js",
"build": "node scripts/transform.js && node scripts/convert-idl.js && babel lib/URL.js lib/URLSearchParams.js -d lib",
"coverage": "jest --coverage",
"lint": "eslint .",
"prepare": "node scripts/transform.js && node scripts/convert-idl.js",
"pretest": "node scripts/get-latest-platform-tests.js && node scripts/transform.js && node scripts/convert-idl.js",
"prepare": "npm run build",
"pretest": "node scripts/get-latest-platform-tests.js && npm run build",
"build-live-viewer": "browserify index.js --standalone whatwgURL > live-viewer/whatwg-url.js",

@@ -38,0 +41,0 @@ "test": "jest"