131 lines
8.7 KiB
JSON
131 lines
8.7 KiB
JSON
|
{
|
|||
|
"_args": [
|
|||
|
[
|
|||
|
{
|
|||
|
"raw": "whatwg-url@^6.4.0",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "whatwg-url",
|
|||
|
"name": "whatwg-url",
|
|||
|
"rawSpec": "^6.4.0",
|
|||
|
"spec": ">=6.4.0 <7.0.0",
|
|||
|
"type": "range"
|
|||
|
},
|
|||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/jsdom"
|
|||
|
]
|
|||
|
],
|
|||
|
"_from": "whatwg-url@>=6.4.0 <7.0.0",
|
|||
|
"_id": "whatwg-url@6.4.0",
|
|||
|
"_inCache": true,
|
|||
|
"_location": "/whatwg-url",
|
|||
|
"_nodeVersion": "8.2.1",
|
|||
|
"_npmOperationalInternal": {
|
|||
|
"host": "s3://npm-registry-packages",
|
|||
|
"tmp": "tmp/whatwg-url-6.4.0.tgz_1512513561005_0.5477508250623941"
|
|||
|
},
|
|||
|
"_npmUser": {
|
|||
|
"name": "domenic",
|
|||
|
"email": "d@domenic.me"
|
|||
|
},
|
|||
|
"_npmVersion": "5.3.0",
|
|||
|
"_phantomChildren": {},
|
|||
|
"_requested": {
|
|||
|
"raw": "whatwg-url@^6.4.0",
|
|||
|
"scope": null,
|
|||
|
"escapedName": "whatwg-url",
|
|||
|
"name": "whatwg-url",
|
|||
|
"rawSpec": "^6.4.0",
|
|||
|
"spec": ">=6.4.0 <7.0.0",
|
|||
|
"type": "range"
|
|||
|
},
|
|||
|
"_requiredBy": [
|
|||
|
"/jsdom"
|
|||
|
],
|
|||
|
"_resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.4.0.tgz",
|
|||
|
"_shasum": "08fdf2b9e872783a7a1f6216260a1d66cc722e08",
|
|||
|
"_shrinkwrap": null,
|
|||
|
"_spec": "whatwg-url@^6.4.0",
|
|||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/jsdom",
|
|||
|
"author": {
|
|||
|
"name": "Sebastian Mayr",
|
|||
|
"email": "github@smayr.name"
|
|||
|
},
|
|||
|
"bugs": {
|
|||
|
"url": "https://github.com/jsdom/whatwg-url/issues"
|
|||
|
},
|
|||
|
"dependencies": {
|
|||
|
"lodash.sortby": "^4.7.0",
|
|||
|
"tr46": "^1.0.0",
|
|||
|
"webidl-conversions": "^4.0.1"
|
|||
|
},
|
|||
|
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",
|
|||
|
"devDependencies": {
|
|||
|
"domexception": "^1.0.0",
|
|||
|
"eslint": "^4.1.1",
|
|||
|
"istanbul": "~0.4.3",
|
|||
|
"jest": "^21.0.2",
|
|||
|
"jsdom": "^11.0.0",
|
|||
|
"recast": "~0.12.6",
|
|||
|
"request": "^2.55.0",
|
|||
|
"webidl2js": "^7.1.0"
|
|||
|
},
|
|||
|
"directories": {},
|
|||
|
"dist": {
|
|||
|
"integrity": "sha512-Z0CVh/YE217Foyb488eo+iBv+r7eAQ0wSTyApi9n06jhcA3z6Nidg/EGvl0UFkg7kMdKxfBzzr+o9JF+cevgMg==",
|
|||
|
"shasum": "08fdf2b9e872783a7a1f6216260a1d66cc722e08",
|
|||
|
"tarball": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.4.0.tgz"
|
|||
|
},
|
|||
|
"files": [
|
|||
|
"lib/"
|
|||
|
],
|
|||
|
"gitHead": "6bb04c76f48ff5d6eee9776edbc66c648d840179",
|
|||
|
"homepage": "https://github.com/jsdom/whatwg-url#readme",
|
|||
|
"jest": {
|
|||
|
"collectCoverageFrom": [
|
|||
|
"lib/**/*.js",
|
|||
|
"!lib/utils.js"
|
|||
|
],
|
|||
|
"coverageDirectory": "coverage",
|
|||
|
"coverageReporters": [
|
|||
|
"lcov",
|
|||
|
"text-summary"
|
|||
|
],
|
|||
|
"testEnvironment": "node",
|
|||
|
"testMatch": [
|
|||
|
"<rootDir>/test/**/*.js"
|
|||
|
],
|
|||
|
"testPathIgnorePatterns": [
|
|||
|
"^<rootDir>/test/testharness.js$",
|
|||
|
"^<rootDir>/test/web-platform-tests/"
|
|||
|
]
|
|||
|
},
|
|||
|
"license": "MIT",
|
|||
|
"main": "lib/public-api.js",
|
|||
|
"maintainers": [
|
|||
|
{
|
|||
|
"name": "domenic",
|
|||
|
"email": "d@domenic.me"
|
|||
|
},
|
|||
|
{
|
|||
|
"name": "sebmaster",
|
|||
|
"email": "sebmaster16@gmail.com"
|
|||
|
}
|
|||
|
],
|
|||
|
"name": "whatwg-url",
|
|||
|
"optionalDependencies": {},
|
|||
|
"readme": "# whatwg-url\n\nwhatwg-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).\n\n## Current status\n\nwhatwg-url is currently up to date with the URL spec up to commit [7a3c69f](https://github.com/whatwg/url/commit/7a3c69f8a1583b33e730c3fea85141a618e7c697).\n\n## API\n\n### The `URL` and `URLSearchParams` classes\n\nThe main API is provided by the [`URL`](https://url.spec.whatwg.org/#url-class) and [`URLSearchParams`](https://url.spec.whatwg.org/#interface-urlsearchparams) exports, which follows the spec's behavior in all ways (including e.g. `USVString` conversion). Most consumers of this library will want to use these.\n\n### Low-level URL Standard API\n\nThe following methods are exported for use by places like jsdom that need to implement things like [`HTMLHyperlinkElementUtils`](https://html.spec.whatwg.org/#htmlhyperlinkelementutils). They mostly operate on or return an \"internal URL\" or [\"URL record\"](https://url.spec.whatwg.org/#concept-url) type.\n\n- [URL parser](https://url.spec.whatwg.org/#concept-url-parser): `parseURL(input, { baseURL, encodingOverride })`\n- [Basic URL parser](https://url.spec.whatwg.org/#concept-basic-url-parser): `basicURLParse(input, { baseURL, encodingOverride, url, stateOverride })`\n- [URL serializer](https://url.spec.whatwg.org/#concept-url-serializer): `serializeURL(urlRecord, excludeFragment)`\n- [Host serializer](https://url.spec.whatwg.org/#concept-host-serializer): `serializeHost(hostFromURLRecord)`\n- [Serialize an integer](https://url.spec.whatwg.org/#serialize-an-integer): `serializeInteger(number)`\n- [Origin](https://url.spec.whatwg.org/#concept-url-origin) [serializer](https://html.spec.whatwg.org/multipage/browsers.html#serialization-of-an-origin): `serializeURLOrigin(urlRecord)`\n- [Set the username](https://url.spec.whatwg.org/#set-the-username): `setTheUsername(urlRecord, usernameString)`\n- [Set the password](https://url.spec.whatwg.org/#set-the-password): `setThePassword(urlRecord, passwordString)`\n- [Cannot have a username/password/port](https://url.spec.whatwg.org/#cannot-have-a-username-password-port): `cannotHaveAUsernamePasswordPort(urlRecord)`\n- [Percent decode](https://url.spec.whatwg.org/#percent-decode): `percentDecode(buffer)`\n\nThe `stateOverride` parameter is one of the following strings:\n\n- [`\"scheme start\"`](https://url.spec.whatwg.org/#scheme-start-state)\n- [`\"scheme\"`](https://url.spec.whatwg.org/#scheme-state)\n- [`\"no scheme\"`](https://url.spec.whatwg.org/#no-scheme-state)\n- [`\"special relative or authority\"`](https://url.spec.whatwg.org/#special-relative-or-authority-state)\n- [`\"path or authority\"`](https://url.spec.whatwg.org/#path-or-authority-state)\n- [`\"relative\"`](https://url.spec.whatwg.org/#relative-state)\n- [`\"relative slash\"`](https://url.spec.whatwg.org/#relative-slash-state)\n- [`\"special authority slashes\"`](https://url.spec.whatwg.org/#special-authority-slashes-state)\n- [`\"special authority ignore slashes\"`](https://url.spec.whatwg.org/#special-authority-ignore-slashes-state)\n- [`\"authority\"`](https://url.spec.whatwg.org/#authority-state)\n- [`\"host\"`](https://url.spec.whatwg.org/#host-state)\n- [`\"hostname\"`](https://url.spec.whatwg.org/#hostname-state)\n- [`\"port\"`](https://url.spec.whatwg.org/#port-state)\n- [`\"file\"`](https://url.spec.whatwg.org/#file-state)\n- [`\"file slash\"`](https://url.spec.whatwg.org/#file-slash-state)\n- [`\"file host\"`](https://url.spec.whatwg.org/#file-host-state)\n- [`\"path start\"`](https://url.spec.whatwg.org/#path-start-state)\n- [`\"path\"`](https://url.spec.whatwg.org/#path-state)\n- [`\"cannot-be-a-base-URL path\"`](https://url.spec.whatwg.org/#cannot-be-a-base-url-path-state)\n- [`\"query\"`](https://url.spec.whatwg.org/#query-state)\n- [`\"fragment\"`](https://url.spec.whatwg.org/#fragment-state)\n\nThe URL record ty
|
|||
|
"readmeFilename": "README.md",
|
|||
|
"repository": {
|
|||
|
"type": "git",
|
|||
|
"url": "git+https://github.com/jsdom/whatwg-url.git"
|
|||
|
},
|
|||
|
"scripts": {
|
|||
|
"build": "node scripts/transform.js && node scripts/convert-idl.js",
|
|||
|
"coverage": "jest --coverage",
|
|||
|
"lint": "eslint .",
|
|||
|
"prepublish": "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",
|
|||
|
"test": "jest"
|
|||
|
},
|
|||
|
"version": "6.4.0"
|
|||
|
}
|