whatwg-url
Advanced tools
Comparing version 8.1.0 to 8.2.0
"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; |
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
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
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
90733
17
2480
8
1
+ Addedwebidl-conversions@6.1.0(transitive)
- Removedwebidl-conversions@5.0.0(transitive)
Updatedwebidl-conversions@^6.1.0