whatwg-url 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/lib/url-state-machine.js +0 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spe
|
|
|
4
4
|
|
|
5
5
|
## Specification conformance
|
|
6
6
|
|
|
7
|
-
whatwg-url is currently up to date with the URL spec up to commit [
|
|
7
|
+
whatwg-url is currently up to date with the URL spec up to commit [7ae1c69](https://github.com/whatwg/url/commit/7ae1c691c96f0d82fafa24c33aa1e8df9ffbf2bc).
|
|
8
8
|
|
|
9
9
|
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"`).
|
|
10
10
|
|
|
@@ -89,3 +89,10 @@ To build and run the live viewer:
|
|
|
89
89
|
npm run build-live-viewer
|
|
90
90
|
|
|
91
91
|
Serve the contents of the `live-viewer` directory using any web server.
|
|
92
|
+
|
|
93
|
+
## Supporting whatwg-url
|
|
94
|
+
|
|
95
|
+
The jsdom project (including whatwg-url) is a community-driven project maintained by a team of [volunteers](https://github.com/orgs/jsdom/people). You could support us by:
|
|
96
|
+
|
|
97
|
+
- [Getting professional support for whatwg-url](https://tidelift.com/subscription/pkg/npm-whatwg-url?utm_source=npm-whatwg-url&utm_medium=referral&utm_campaign=readme) as part of a Tidelift subscription. Tidelift helps making open source sustainable for us while giving teams assurances for maintenance, licensing, and security.
|
|
98
|
+
- Contributing directly to the project.
|
package/lib/url-state-machine.js
CHANGED
|
@@ -8,7 +8,6 @@ const { percentEncode, percentDecode } = require("./urlencoded");
|
|
|
8
8
|
const specialSchemes = {
|
|
9
9
|
ftp: 21,
|
|
10
10
|
file: null,
|
|
11
|
-
gopher: 70,
|
|
12
11
|
http: 80,
|
|
13
12
|
https: 443,
|
|
14
13
|
ws: 80,
|
|
@@ -1233,7 +1232,6 @@ module.exports.serializeURLOrigin = function (url) {
|
|
|
1233
1232
|
return "null";
|
|
1234
1233
|
}
|
|
1235
1234
|
case "ftp":
|
|
1236
|
-
case "gopher":
|
|
1237
1235
|
case "http":
|
|
1238
1236
|
case "https":
|
|
1239
1237
|
case "ws":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "whatwg-url",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",
|
|
5
5
|
"main": "lib/public-api.js",
|
|
6
6
|
"files": [
|
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
"browserify": "^16.2.2",
|
|
19
19
|
"domexception": "^1.0.1",
|
|
20
20
|
"eslint": "^5.4.0",
|
|
21
|
+
"got": "^9.2.2",
|
|
21
22
|
"jest": "^23.5.0",
|
|
22
|
-
"jsdom": "^11.12.0",
|
|
23
23
|
"recast": "^0.15.3",
|
|
24
|
-
"request": "^2.88.0",
|
|
25
24
|
"webidl2js": "^9.0.1"
|
|
26
25
|
},
|
|
27
26
|
"scripts": {
|