Socket
Socket
Sign inDemoInstall

whatwg-url

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatwg-url - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

dist/encoding.js

8

index.js
"use strict";
const { URL, URLSearchParams } = require("./webidl2js-wrapper");
const urlStateMachine = require("./lib/url-state-machine");
const urlEncoded = require("./lib/urlencoded");
const urlStateMachine = require("./dist/url-state-machine");
const urlEncoded = require("./dist/urlencoded");
const sharedGlobalObject = {};
URL.install(sharedGlobalObject);
URLSearchParams.install(sharedGlobalObject);
URL.install(sharedGlobalObject, ["Window"]);
URLSearchParams.install(sharedGlobalObject, ["Window"]);

@@ -11,0 +11,0 @@ exports.URL = sharedGlobalObject.URL;

{
"name": "whatwg-url",
"version": "8.1.0",
"version": "8.2.0",
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",

@@ -9,3 +9,3 @@ "main": "index.js",

"webidl2js-wrapper.js",
"lib/"
"dist/"
],

@@ -18,12 +18,13 @@ "author": "Sebastian Mayr <github@smayr.name>",

"tr46": "^2.0.2",
"webidl-conversions": "^5.0.0"
"webidl-conversions": "^6.1.0"
},
"devDependencies": {
"browserify": "^16.5.0",
"browserify": "^16.5.2",
"domexception": "^2.0.1",
"eslint": "^6.8.0",
"got": "^10.6.0",
"jest": "^25.1.0",
"recast": "^0.18.7",
"webidl2js": "^14.0.0"
"eslint": "^7.7.0",
"glob": "^7.1.6",
"got": "^11.5.2",
"jest": "^26.4.2",
"recast": "^0.20.2",
"webidl2js": "^16.2.0"
},

@@ -34,7 +35,6 @@ "engines": {

"scripts": {
"build": "node scripts/transform.js && node scripts/convert-idl.js",
"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": "node scripts/transform.js",
"pretest": "node scripts/get-latest-platform-tests.js && node scripts/transform.js",
"build-live-viewer": "browserify index.js --standalone whatwgURL > live-viewer/whatwg-url.js",

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

# whatwg-url
whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spec.whatwg.org/). It can be used standalone, but it also exposes a lot of the internal algorithms that are useful for integrating a URL parser into a project like [jsdom](https://github.com/tmpvar/jsdom).
whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spec.whatwg.org/). It can be used standalone, but it also exposes a lot of the internal algorithms that are useful for integrating a URL parser into a project like [jsdom](https://github.com/jsdom/jsdom).
## Specification conformance
whatwg-url is currently up to date with the URL spec up to commit [cceb435](https://github.com/whatwg/url/commit/cceb4356cca233b6dfdaabd888263157b2204e44).
whatwg-url is currently up to date with the URL spec up to commit [83adf0c](https://github.com/whatwg/url/commit/83adf0c9ca9a88948e1e5d93374ffded04eec727).

@@ -92,3 +92,3 @@ For `file:` URLs, whose [origin is left unspecified](https://url.spec.whatwg.org/#concept-url-origin), whatwg-url chooses to use a new opaque origin (which serializes to `"null"`).

npm run build
npm run prepare
npm run build-live-viewer

@@ -95,0 +95,0 @@

"use strict";
const URL = require("./lib/URL");
const URLSearchParams = require("./lib/URLSearchParams");
const URL = require("./dist/URL");
const URLSearchParams = require("./dist/URLSearchParams");
exports.URL = URL;
exports.URLSearchParams = URLSearchParams;
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