whatwg-url 4.1.0 → 4.4.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/.eslintignore +1 -0
- package/.vscode/launch.json +19 -28
- package/README.md +3 -2
- package/coverage/coverage.json +1 -0
- package/coverage/lcov-report/base.css +212 -0
- package/coverage/lcov-report/index.html +93 -0
- package/coverage/lcov-report/lib/URL-impl.js.html +677 -0
- package/coverage/lcov-report/lib/URL.js.html +653 -0
- package/coverage/lcov-report/lib/index.html +145 -0
- package/coverage/lcov-report/lib/public-api.js.html +98 -0
- package/coverage/lcov-report/lib/url-state-machine.js.html +3905 -0
- package/coverage/lcov-report/lib/utils.js.html +125 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +1 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +158 -0
- package/coverage/lcov.info +1883 -0
- package/lib/URL-impl.js +11 -7
- package/lib/URL.js +11 -0
- package/lib/url-state-machine.js +1280 -1173
- package/package.json +1 -1
package/.eslintignore
CHANGED
package/.vscode/launch.json
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"outDir": null
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "Attach",
|
|
25
|
-
"type": "node",
|
|
26
|
-
"request": "attach",
|
|
27
|
-
"port": 5858
|
|
28
|
-
}
|
|
29
|
-
]
|
|
2
|
+
// Use IntelliSense to learn about possible Node.js debug attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "node",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Launch Program",
|
|
11
|
+
"program": "${workspaceRoot}\\test.js",
|
|
12
|
+
"cwd": "${workspaceRoot}"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "node",
|
|
16
|
+
"request": "attach",
|
|
17
|
+
"name": "Attach to Process",
|
|
18
|
+
"port": 5858
|
|
19
|
+
}
|
|
20
|
+
]
|
|
30
21
|
}
|
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
|
## Current Status
|
|
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 [9b2eb1](https://github.com/whatwg/url/commit/9b2eb10eb8436adaf6620b1864b25442152f205b).
|
|
8
8
|
|
|
9
9
|
## API
|
|
10
10
|
|
|
@@ -23,7 +23,8 @@ The following methods are exported for use by places like jsdom that need to imp
|
|
|
23
23
|
- [Serialize an integer](https://url.spec.whatwg.org/#serialize-an-integer): `serializeInteger(number)`
|
|
24
24
|
- [Origin](https://url.spec.whatwg.org/#concept-url-origin) [Unicode serializer](https://html.spec.whatwg.org/multipage/browsers.html#unicode-serialisation-of-an-origin): `serializeURLToUnicodeOrigin(urlRecord)`
|
|
25
25
|
- [Set the username](https://url.spec.whatwg.org/#set-the-username): `setTheUsername(urlRecord, usernameString)`
|
|
26
|
-
- [Set the password](https://url.spec.whatwg.org/#set-the-password): `setThePassword(urlRecord, passwordString)
|
|
26
|
+
- [Set the password](https://url.spec.whatwg.org/#set-the-password): `setThePassword(urlRecord, passwordString)`
|
|
27
|
+
- [Cannot have a username/password/port](https://url.spec.whatwg.org/#cannot-have-a-username-password-port): `cannotHaveAUsernamePasswordPort(urlRecord)`
|
|
27
28
|
|
|
28
29
|
The `stateOverride` parameter is one of the following strings:
|
|
29
30
|
|