Commit a2e8cafb authored by patri's avatar patri
Browse files

Test New PC

parent e65a993d
module.exports = function stringifyValidator(validator, nodePrefix) { export default function stringifyValidator(validator, nodePrefix) {
if (validator === undefined) { if (validator === undefined) {
return "any"; return "any";
} }
...@@ -55,7 +55,7 @@ module.exports = function stringifyValidator(validator, nodePrefix) { ...@@ -55,7 +55,7 @@ module.exports = function stringifyValidator(validator, nodePrefix) {
} }
return ["any"]; return ["any"];
}; }
/** /**
* Heuristic to decide whether or not the given type is a value type (eg. "null") * Heuristic to decide whether or not the given type is a value type (eg. "null")
......
module.exports = function toFunctionName(typeName) { export default function toFunctionName(typeName) {
const _ = typeName.replace(/^TS/, "ts").replace(/^JSX/, "jsx"); const _ = typeName.replace(/^TS/, "ts").replace(/^JSX/, "jsx");
return _.slice(0, 1).toLowerCase() + _.slice(1); return _.slice(0, 1).toLowerCase() + _.slice(1);
}; }
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
# Installation
> `npm install --save @types/caseless`
# Summary
This package contains type definitions for caseless ( https://github.com/mikeal/caseless ).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/caseless
Additional Details
* Last updated: Mon, 11 Mar 2019 18:30:09 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by downace <https://github.com/downace>, Matt R. Wilson <https://github.com/mastermatt>, Emily Klassen <https://github.com/forivall>.
// Type definitions for caseless 0.12
// Project: https://github.com/mikeal/caseless
// Definitions by: downace <https://github.com/downace>
// Matt R. Wilson <https://github.com/mastermatt>
// Emily Klassen <https://github.com/forivall>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
type KeyType = string;
type ValueType = any;
type RawDict = object;
declare function caseless(dict?: RawDict): caseless.Caseless;
declare namespace caseless {
function httpify(resp: object, headers: RawDict): Caseless;
interface Caseless {
set(name: KeyType, value: ValueType, clobber?: boolean): KeyType | false;
set(dict: RawDict): void;
has(name: KeyType): KeyType | false;
get(name: KeyType): ValueType | undefined;
swap(name: KeyType): void;
del(name: KeyType): boolean;
}
interface Httpified {
headers: RawDict;
setHeader(name: KeyType, value: ValueType, clobber?: boolean): KeyType | false;
setHeader(dict: RawDict): void;
hasHeader(name: KeyType): KeyType | false;
getHeader(name: KeyType): ValueType | undefined;
removeHeader(name: KeyType): boolean;
}
}
export = caseless;
{
"_from": "@types/caseless@*",
"_id": "@types/caseless@0.12.2",
"_inBundle": false,
"_integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==",
"_location": "/@types/caseless",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@types/caseless@*",
"name": "@types/caseless",
"escapedName": "@types%2fcaseless",
"scope": "@types",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/@types/request"
],
"_resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz",
"_shasum": "f65d3d6389e01eeb458bd54dc8f52b95a9463bc8",
"_spec": "@types/caseless@*",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\dev\\node_modules\\@types\\request",
"bugs": {
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "downace",
"url": "https://github.com/downace"
},
{
"name": "Matt R. Wilson",
"url": "https://github.com/mastermatt"
},
{
"name": "Emily Klassen",
"url": "https://github.com/forivall"
}
],
"dependencies": {},
"deprecated": false,
"description": "TypeScript definitions for caseless",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
"license": "MIT",
"main": "",
"name": "@types/caseless",
"repository": {
"type": "git",
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/caseless"
},
"scripts": {},
"typeScriptVersion": "2.2",
"types": "index",
"typesPublisherContentHash": "6c31853516bc415abdc2e298beda9673951015730429d225f6ff938b0549b9a6",
"version": "0.12.2"
}
MIT License MIT License
Copyright (c) Microsoft Corporation. All rights reserved. Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE SOFTWARE
# Installation # Installation
> `npm install --save @types/node` > `npm install --save @types/node`
# Summary # Summary
This package contains type definitions for Node.js (http://nodejs.org/). This package contains type definitions for Node.js (http://nodejs.org/).
# Details # Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
### Additional Details ### Additional Details
* Last updated: Tue, 11 Feb 2020 17:16:28 GMT * Last updated: Tue, 11 Feb 2020 17:16:28 GMT
* Dependencies: none * Dependencies: none
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
# Credits # Credits
These definitions were written by Microsoft TypeScript (https://github.com/Microsoft), DefinitelyTyped (https://github.com/DefinitelyTyped), Alberto Schiabel (https://github.com/jkomyno), Alexander T. (https://github.com/a-tarasyuk), Alvis HT Tang (https://github.com/alvis), Andrew Makarov (https://github.com/r3nya), Benjamin Toueg (https://github.com/btoueg), Bruno Scheufler (https://github.com/brunoscheufler), Chigozirim C. (https://github.com/smac89), Christian Vaagland Tellnes (https://github.com/tellnes), David Junger (https://github.com/touffy), Deividas Bakanas (https://github.com/DeividasBakanas), Eugene Y. Q. Shen (https://github.com/eyqs), Flarna (https://github.com/Flarna), Hannes Magnusson (https://github.com/Hannes-Magnusson-CK), Hoàng Văn Khải (https://github.com/KSXGitHub), Huw (https://github.com/hoo29), Kelvin Jin (https://github.com/kjin), Klaus Meinhardt (https://github.com/ajafff), Lishude (https://github.com/islishude), Mariusz Wiktorczyk (https://github.com/mwiktorczyk), Mohsen Azimi (https://github.com/mohsen1), Nicolas Even (https://github.com/n-e), Nicolas Voigt (https://github.com/octo-sniffle), Nikita Galkin (https://github.com/galkin), Parambir Singh (https://github.com/parambirs), Sebastian Silbermann (https://github.com/eps1lon), Simon Schick (https://github.com/SimonSchick), Thomas den Hollander (https://github.com/ThomasdenH), Wilco Bakker (https://github.com/WilcoBakker), wwwy3y3 (https://github.com/wwwy3y3), Zane Hannan AU (https://github.com/ZaneHannanAU), Samuel Ainsworth (https://github.com/samuela), Kyle Uehlein (https://github.com/kuehlein), Jordi Oliveras Rovira (https://github.com/j-oliveras), Thanik Bhongbhibhat (https://github.com/bhongy), Marcin Kopacz (https://github.com/chyzwar), Trivikram Kamat (https://github.com/trivikr), Minh Son Nguyen (https://github.com/nguymin4), Junxiao Shi (https://github.com/yoursunny), and Ilia Baryshnikov (https://github.com/qwelias). These definitions were written by Microsoft TypeScript (https://github.com/Microsoft), DefinitelyTyped (https://github.com/DefinitelyTyped), Alberto Schiabel (https://github.com/jkomyno), Alexander T. (https://github.com/a-tarasyuk), Alvis HT Tang (https://github.com/alvis), Andrew Makarov (https://github.com/r3nya), Benjamin Toueg (https://github.com/btoueg), Bruno Scheufler (https://github.com/brunoscheufler), Chigozirim C. (https://github.com/smac89), Christian Vaagland Tellnes (https://github.com/tellnes), David Junger (https://github.com/touffy), Deividas Bakanas (https://github.com/DeividasBakanas), Eugene Y. Q. Shen (https://github.com/eyqs), Flarna (https://github.com/Flarna), Hannes Magnusson (https://github.com/Hannes-Magnusson-CK), Hoàng Văn Khải (https://github.com/KSXGitHub), Huw (https://github.com/hoo29), Kelvin Jin (https://github.com/kjin), Klaus Meinhardt (https://github.com/ajafff), Lishude (https://github.com/islishude), Mariusz Wiktorczyk (https://github.com/mwiktorczyk), Mohsen Azimi (https://github.com/mohsen1), Nicolas Even (https://github.com/n-e), Nicolas Voigt (https://github.com/octo-sniffle), Nikita Galkin (https://github.com/galkin), Parambir Singh (https://github.com/parambirs), Sebastian Silbermann (https://github.com/eps1lon), Simon Schick (https://github.com/SimonSchick), Thomas den Hollander (https://github.com/ThomasdenH), Wilco Bakker (https://github.com/WilcoBakker), wwwy3y3 (https://github.com/wwwy3y3), Zane Hannan AU (https://github.com/ZaneHannanAU), Samuel Ainsworth (https://github.com/samuela), Kyle Uehlein (https://github.com/kuehlein), Jordi Oliveras Rovira (https://github.com/j-oliveras), Thanik Bhongbhibhat (https://github.com/bhongy), Marcin Kopacz (https://github.com/chyzwar), Trivikram Kamat (https://github.com/trivikr), Minh Son Nguyen (https://github.com/nguymin4), Junxiao Shi (https://github.com/yoursunny), and Ilia Baryshnikov (https://github.com/qwelias).
{ {
"_from": "@types/node@*",
"_id": "@types/node@13.7.1",
"_inBundle": false,
"_integrity": "sha512-Zq8gcQGmn4txQEJeiXo/KiLpon8TzAl0kmKH4zdWctPj05nWwp1ClMdAVEloqrQKfaC48PNLdgN/aVaLqUrluA==",
"_location": "/@types/node",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@types/node@*",
"name": "@types/node", "name": "@types/node",
"escapedName": "@types%2fnode", "version": "13.7.1",
"scope": "@types", "description": "TypeScript definitions for Node.js",
"rawSpec": "*", "license": "MIT",
"saveSpec": null, "contributors": [
"fetchSpec": "*" {
}, "name": "Microsoft TypeScript",
"_requiredBy": [ "url": "https://github.com/Microsoft",
"/@types/request" "githubUsername": "Microsoft"
], },
"_resolved": "https://registry.npmjs.org/@types/node/-/node-13.7.1.tgz", {
"_shasum": "238eb34a66431b71d2aaddeaa7db166f25971a0d", "name": "DefinitelyTyped",
"_spec": "@types/node@*", "url": "https://github.com/DefinitelyTyped",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\dev\\node_modules\\@types\\request", "githubUsername": "DefinitelyTyped"
"bugs": { },
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" {
}, "name": "Alberto Schiabel",
"bundleDependencies": false, "url": "https://github.com/jkomyno",
"contributors": [ "githubUsername": "jkomyno"
{ },
"name": "Microsoft TypeScript", {
"url": "https://github.com/Microsoft" "name": "Alexander T.",
}, "url": "https://github.com/a-tarasyuk",
{ "githubUsername": "a-tarasyuk"
"name": "DefinitelyTyped", },
"url": "https://github.com/DefinitelyTyped" {
}, "name": "Alvis HT Tang",
{ "url": "https://github.com/alvis",
"name": "Alberto Schiabel", "githubUsername": "alvis"
"url": "https://github.com/jkomyno" },
}, {
{ "name": "Andrew Makarov",
"name": "Alexander T.", "url": "https://github.com/r3nya",
"url": "https://github.com/a-tarasyuk" "githubUsername": "r3nya"
}, },
{ {
"name": "Alvis HT Tang", "name": "Benjamin Toueg",
"url": "https://github.com/alvis" "url": "https://github.com/btoueg",
}, "githubUsername": "btoueg"
{ },
"name": "Andrew Makarov", {
"url": "https://github.com/r3nya" "name": "Bruno Scheufler",
}, "url": "https://github.com/brunoscheufler",
{ "githubUsername": "brunoscheufler"
"name": "Benjamin Toueg", },
"url": "https://github.com/btoueg" {
}, "name": "Chigozirim C.",
{ "url": "https://github.com/smac89",
"name": "Bruno Scheufler", "githubUsername": "smac89"
"url": "https://github.com/brunoscheufler" },
}, {
{ "name": "Christian Vaagland Tellnes",
"name": "Chigozirim C.", "url": "https://github.com/tellnes",
"url": "https://github.com/smac89" "githubUsername": "tellnes"
}, },
{ {
"name": "Christian Vaagland Tellnes", "name": "David Junger",
"url": "https://github.com/tellnes" "url": "https://github.com/touffy",
}, "githubUsername": "touffy"
{ },
"name": "David Junger", {
"url": "https://github.com/touffy" "name": "Deividas Bakanas",
}, "url": "https://github.com/DeividasBakanas",
{ "githubUsername": "DeividasBakanas"
"name": "Deividas Bakanas", },
"url": "https://github.com/DeividasBakanas" {
}, "name": "Eugene Y. Q. Shen",
{ "url": "https://github.com/eyqs",
"name": "Eugene Y. Q. Shen", "githubUsername": "eyqs"
"url": "https://github.com/eyqs" },
}, {
{ "name": "Flarna",
"name": "Flarna", "url": "https://github.com/Flarna",
"url": "https://github.com/Flarna" "githubUsername": "Flarna"
}, },
{ {
"name": "Hannes Magnusson", "name": "Hannes Magnusson",
"url": "https://github.com/Hannes-Magnusson-CK" "url": "https://github.com/Hannes-Magnusson-CK",
}, "githubUsername": "Hannes-Magnusson-CK"
{ },
"name": "Hoàng Văn Khải", {
"url": "https://github.com/KSXGitHub" "name": "Hoàng Văn Khải",
}, "url": "https://github.com/KSXGitHub",
{ "githubUsername": "KSXGitHub"
"name": "Huw", },
"url": "https://github.com/hoo29" {
}, "name": "Huw",
{ "url": "https://github.com/hoo29",
"name": "Kelvin Jin", "githubUsername": "hoo29"
"url": "https://github.com/kjin" },
}, {
{ "name": "Kelvin Jin",
"name": "Klaus Meinhardt", "url": "https://github.com/kjin",
"url": "https://github.com/ajafff" "githubUsername": "kjin"
}, },
{ {
"name": "Lishude", "name": "Klaus Meinhardt",
"url": "https://github.com/islishude" "url": "https://github.com/ajafff",
}, "githubUsername": "ajafff"
{ },
"name": "Mariusz Wiktorczyk", {
"url": "https://github.com/mwiktorczyk" "name": "Lishude",
}, "url": "https://github.com/islishude",
{ "githubUsername": "islishude"
"name": "Mohsen Azimi", },
"url": "https://github.com/mohsen1" {
}, "name": "Mariusz Wiktorczyk",
{ "url": "https://github.com/mwiktorczyk",
"name": "Nicolas Even", "githubUsername": "mwiktorczyk"
"url": "https://github.com/n-e" },
}, {
{ "name": "Mohsen Azimi",
"name": "Nicolas Voigt", "url": "https://github.com/mohsen1",
"url": "https://github.com/octo-sniffle" "githubUsername": "mohsen1"
}, },
{ {
"name": "Nikita Galkin", "name": "Nicolas Even",
"url": "https://github.com/galkin" "url": "https://github.com/n-e",
}, "githubUsername": "n-e"
{ },
"name": "Parambir Singh", {
"url": "https://github.com/parambirs" "name": "Nicolas Voigt",
}, "url": "https://github.com/octo-sniffle",
{ "githubUsername": "octo-sniffle"
"name": "Sebastian Silbermann", },
"url": "https://github.com/eps1lon" {
}, "name": "Nikita Galkin",
{ "url": "https://github.com/galkin",
"name": "Simon Schick", "githubUsername": "galkin"
"url": "https://github.com/SimonSchick" },
}, {
{ "name": "Parambir Singh",
"name": "Thomas den Hollander", "url": "https://github.com/parambirs",
"url": "https://github.com/ThomasdenH" "githubUsername": "parambirs"
}, },
{ {
"name": "Wilco Bakker", "name": "Sebastian Silbermann",
"url": "https://github.com/WilcoBakker" "url": "https://github.com/eps1lon",
}, "githubUsername": "eps1lon"
{ },
"name": "wwwy3y3", {
"url": "https://github.com/wwwy3y3" "name": "Simon Schick",
}, "url": "https://github.com/SimonSchick",
{ "githubUsername": "SimonSchick"
"name": "Zane Hannan AU", },
"url": "https://github.com/ZaneHannanAU" {
}, "name": "Thomas den Hollander",
{ "url": "https://github.com/ThomasdenH",
"name": "Samuel Ainsworth", "githubUsername": "ThomasdenH"
"url": "https://github.com/samuela" },
}, {
{ "name": "Wilco Bakker",
"name": "Kyle Uehlein", "url": "https://github.com/WilcoBakker",
"url": "https://github.com/kuehlein" "githubUsername": "WilcoBakker"
}, },
{ {
"name": "Jordi Oliveras Rovira", "name": "wwwy3y3",
"url": "https://github.com/j-oliveras" "url": "https://github.com/wwwy3y3",
}, "githubUsername": "wwwy3y3"
{ },
"name": "Thanik Bhongbhibhat", {
"url": "https://github.com/bhongy" "name": "Zane Hannan AU",
}, "url": "https://github.com/ZaneHannanAU",
{ "githubUsername": "ZaneHannanAU"
"name": "Marcin Kopacz", },
"url": "https://github.com/chyzwar" {
}, "name": "Samuel Ainsworth",
{ "url": "https://github.com/samuela",
"name": "Trivikram Kamat", "githubUsername": "samuela"
"url": "https://github.com/trivikr" },
}, {
{ "name": "Kyle Uehlein",
"name": "Minh Son Nguyen", "url": "https://github.com/kuehlein",
"url": "https://github.com/nguymin4" "githubUsername": "kuehlein"
}, },
{ {
"name": "Junxiao Shi", "name": "Jordi Oliveras Rovira",
"url": "https://github.com/yoursunny" "url": "https://github.com/j-oliveras",
}, "githubUsername": "j-oliveras"
{ },
"name": "Ilia Baryshnikov", {
"url": "https://github.com/qwelias" "name": "Thanik Bhongbhibhat",
} "url": "https://github.com/bhongy",
], "githubUsername": "bhongy"
"dependencies": {}, },
"deprecated": false, {
"description": "TypeScript definitions for Node.js", "name": "Marcin Kopacz",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme", "url": "https://github.com/chyzwar",
"license": "MIT", "githubUsername": "chyzwar"
"main": "", },
"name": "@types/node", {
"repository": { "name": "Trivikram Kamat",
"type": "git", "url": "https://github.com/trivikr",
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git", "githubUsername": "trivikr"
"directory": "types/node" },
}, {
"scripts": {}, "name": "Minh Son Nguyen",
"typeScriptVersion": "2.8", "url": "https://github.com/nguymin4",
"types": "index.d.ts", "githubUsername": "nguymin4"
"typesPublisherContentHash": "8b99aa0031fac941d520282519c47b0255109858a20251313b1210c28769f463", },
"typesVersions": { {
">=3.5.0-0": { "name": "Junxiao Shi",
"*": [ "url": "https://github.com/yoursunny",
"ts3.5/*" "githubUsername": "yoursunny"
] },
} {
}, "name": "Ilia Baryshnikov",
"version": "13.7.1" "url": "https://github.com/qwelias",
} "githubUsername": "qwelias"
}
],
"main": "",
"types": "index.d.ts",
"typesVersions": {
">=3.5.0-0": {
"*": [
"ts3.5/*"
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/node"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "8b99aa0031fac941d520282519c47b0255109858a20251313b1210c28769f463",
"typeScriptVersion": "2.8"
}
\ No newline at end of file
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
# Installation
> `npm install --save @types/request`
# Summary
This package contains type definitions for request (https://github.com/request/request).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/request.
### Additional Details
* Last updated: Tue, 17 Dec 2019 14:01:10 GMT
* Dependencies: [@types/caseless](https://npmjs.com/package/@types/caseless), [@types/form-data](https://npmjs.com/package/@types/form-data), [@types/tough-cookie](https://npmjs.com/package/@types/tough-cookie), [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Carlos Ballesteros Velasco (https://github.com/soywiz), bonnici (https://github.com/bonnici), Bart van der Schoor (https://github.com/Bartvds), Joe Skeen (https://github.com/joeskeen), Christopher Currens (https://github.com/ccurrens), Jon Stevens (https://github.com/lookfirst), Matt R. Wilson (https://github.com/mastermatt), Jose Colella (https://github.com/josecolella), and Marek Urbanowicz (https://github.com/murbanowicz).
// Type definitions for request 2.48
// Project: https://github.com/request/request
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>,
// bonnici <https://github.com/bonnici>,
// Bart van der Schoor <https://github.com/Bartvds>,
// Joe Skeen <https://github.com/joeskeen>,
// Christopher Currens <https://github.com/ccurrens>,
// Jon Stevens <https://github.com/lookfirst>,
// Matt R. Wilson <https://github.com/mastermatt>
// Jose Colella <https://github.com/josecolella>
// Marek Urbanowicz <https://github.com/murbanowicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// Imported from: https://github.com/soywiz/typescript-node-definitions/d.ts
/// <reference types="node" />
import caseless = require('caseless');
import stream = require('stream');
import http = require('http');
import https = require('https');
import fs = require('fs');
import FormData = require('form-data');
import net = require('net');
import tough = require('tough-cookie');
import { Url } from 'url';
import { SecureContextOptions } from 'tls';
declare namespace request {
interface RequestAPI<TRequest extends Request, TOptions extends CoreOptions, TUriUrlOptions> {
defaults(options: TOptions): RequestAPI<TRequest, TOptions, RequiredUriUrl>;
defaults(options: RequiredUriUrl & TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>;
(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
(uri: string, callback?: RequestCallback): TRequest;
(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
get(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
get(uri: string, callback?: RequestCallback): TRequest;
get(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
post(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
post(uri: string, callback?: RequestCallback): TRequest;
post(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
put(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
put(uri: string, callback?: RequestCallback): TRequest;
put(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
head(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
head(uri: string, callback?: RequestCallback): TRequest;
head(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
patch(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
patch(uri: string, callback?: RequestCallback): TRequest;
patch(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
del(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
del(uri: string, callback?: RequestCallback): TRequest;
del(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
delete(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
delete(uri: string, callback?: RequestCallback): TRequest;
delete(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
initParams(uri: string, options?: TOptions, callback?: RequestCallback): RequiredUriUrl & TOptions;
initParams(uriOrOpts: string | RequiredUriUrl & TOptions, callback?: RequestCallback): RequiredUriUrl & TOptions;
forever(agentOptions: any, optionsArg: any): TRequest;
jar(store?: any): CookieJar;
cookie(str: string): Cookie | undefined;
debug: boolean;
}
interface DefaultUriUrlRequestApi<TRequest extends Request,
TOptions extends CoreOptions,
TUriUrlOptions> extends RequestAPI<TRequest, TOptions, TUriUrlOptions> {
defaults(options: TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>;
(callback?: RequestCallback): TRequest;
get(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
get(uri: string, callback?: RequestCallback): TRequest;
get(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
get(callback?: RequestCallback): TRequest;
post(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
post(uri: string, callback?: RequestCallback): TRequest;
post(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
post(callback?: RequestCallback): TRequest;
put(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
put(uri: string, callback?: RequestCallback): TRequest;
put(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
put(callback?: RequestCallback): TRequest;
head(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
head(uri: string, callback?: RequestCallback): TRequest;
head(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
head(callback?: RequestCallback): TRequest;
patch(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
patch(uri: string, callback?: RequestCallback): TRequest;
patch(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
patch(callback?: RequestCallback): TRequest;
del(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
del(uri: string, callback?: RequestCallback): TRequest;
del(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
del(callback?: RequestCallback): TRequest;
delete(uri: string, options?: TOptions, callback?: RequestCallback): TRequest;
delete(uri: string, callback?: RequestCallback): TRequest;
delete(options: TUriUrlOptions & TOptions, callback?: RequestCallback): TRequest;
delete(callback?: RequestCallback): TRequest;
}
interface CoreOptions {
baseUrl?: string;
callback?: RequestCallback;
jar?: CookieJar | boolean;
formData?: { [key: string]: any };
form?: { [key: string]: any } | string;
auth?: AuthOptions;
oauth?: OAuthOptions;
aws?: AWSOptions;
hawk?: HawkOptions;
qs?: any;
qsStringifyOptions?: any;
qsParseOptions?: any;
json?: any;
jsonReviver?: (key: string, value: any) => any;
jsonReplacer?: (key: string, value: any) => any;
multipart?: RequestPart[] | Multipart;
agent?: http.Agent | https.Agent;
agentOptions?: http.AgentOptions | https.AgentOptions;
agentClass?: any;
forever?: any;
host?: string;
port?: number;
method?: string;
headers?: Headers;
body?: any;
family?: 4 | 6;
followRedirect?: boolean | ((response: http.IncomingMessage) => boolean);
followAllRedirects?: boolean;
followOriginalHttpMethod?: boolean;
maxRedirects?: number;
removeRefererHeader?: boolean;
encoding?: string | null;
pool?: PoolOptions;
timeout?: number;
localAddress?: string;
proxy?: any;
tunnel?: boolean;
strictSSL?: boolean;
rejectUnauthorized?: boolean;
time?: boolean;
gzip?: boolean;
preambleCRLF?: boolean;
postambleCRLF?: boolean;
withCredentials?: boolean;
key?: Buffer;
cert?: Buffer;
passphrase?: string;
ca?: string | Buffer | string[] | Buffer[];
har?: HttpArchiveRequest;
useQuerystring?: boolean;
}
interface UriOptions {
uri: string | Url;
}
interface UrlOptions {
url: string | Url;
}
type RequiredUriUrl = UriOptions | UrlOptions;
type OptionalUriUrl = RequiredUriUrl | {};
type OptionsWithUri = UriOptions & CoreOptions;
type OptionsWithUrl = UrlOptions & CoreOptions;
type Options = OptionsWithUri | OptionsWithUrl;
type MultipartBody = string | Buffer | ArrayBuffer | Uint8Array;
type RequestCallback = (error: any, response: Response, body: any) => void;
interface HttpArchiveRequest {
url?: string;
method?: string;
headers?: NameValuePair[];
postData?: {
mimeType?: string;
params?: NameValuePair[];
};
}
interface ExtraPoolOptions {
maxSockets?: number;
}
type PoolOptions = false | { [key: string]: http.Agent | https.Agent } & ExtraPoolOptions | ExtraPoolOptions;
interface NameValuePair {
name: string;
value: string;
}
interface Multipart {
chunked?: boolean;
data?: Array<{
'content-type'?: string,
body: MultipartBody
}>;
}
interface RequestPart {
headers?: Headers;
body: any;
}
interface Request extends caseless.Httpified, stream.Stream {
readable: boolean;
writable: boolean;
explicitMethod?: true;
debug(...args: any[]): void;
pipeDest(dest: any): void;
qs(q: object, clobber?: boolean): Request;
form(): FormData;
form(form: any): Request;
multipart(multipart: RequestPart[]): Request;
json(val: any): Request;
aws(opts: AWSOptions, now?: boolean): Request;
hawk(opts: HawkOptions): void;
auth(username: string, password: string, sendImmediately?: boolean, bearer?: string): Request;
oauth(oauth: OAuthOptions): Request;
jar(jar: CookieJar): Request;
on(event: string, listener: (...args: any[]) => void): this;
on(event: 'request', listener: (req: http.ClientRequest) => void): this;
on(event: 'response', listener: (resp: Response) => void): this;
on(event: 'data', listener: (data: Buffer | string) => void): this;
on(event: 'error', listener: (e: Error) => void): this;
on(event: 'complete', listener: (resp: Response, body?: string | Buffer) => void): this;
on(event: 'pipe', listener: (src: stream.Readable) => void): this;
on(event: 'socket', listener: (src: net.Socket) => void): this;
write(buffer: Buffer | string, cb?: (err?: Error) => void): boolean;
write(str: string, encoding?: string, cb?: (err?: Error) => void): boolean;
end(cb?: () => void): void;
end(chunk: string | Buffer, cb?: () => void): void;
end(str: string, encoding?: string, cb?: () => void): void;
pause(): void;
resume(): void;
abort(): void;
destroy(): void;
toJSON(): RequestAsJSON;
// several of the CoreOptions are copied onto the request instance
host?: string;
port?: number;
followAllRedirects?: boolean;
followOriginalHttpMethod?: boolean;
maxRedirects?: number;
removeRefererHeader?: boolean;
encoding?: string | null;
timeout?: number;
localAddress?: string;
strictSSL?: boolean;
rejectUnauthorized?: boolean;
time?: boolean;
gzip?: boolean;
preambleCRLF?: boolean;
postambleCRLF?: boolean;
withCredentials?: boolean;
key?: Buffer;
cert?: Buffer;
passphrase?: string;
ca?: string | Buffer | string[] | Buffer[];
har?: HttpArchiveRequest;
// set in `Request.prototype.init`
headers: Headers;
method: string;
pool: PoolOptions;
dests: stream.Readable[];
callback?: RequestCallback;
uri: Url & { href: string, pathname: string };
proxy: null | string | Url;
tunnel: boolean;
setHost: boolean;
path: string;
agent: false | http.Agent | https.Agent;
body: Buffer | Buffer[] | string | string[] | stream.Readable;
timing?: boolean;
src?: stream.Readable;
// set in `Request.prototype.start`
href: string;
startTime?: number;
startTimeNow?: number;
timings?: {
socket: number;
lookup: number;
connect: number;
response: number;
end: number;
};
// set in `Request.prototype.onRequestResponse`
elapsedTime?: number;
response?: Response;
}
interface Response extends http.IncomingMessage {
statusCode: number;
statusMessage: string;
request: Request;
body: any; // Buffer, string, stream.Readable, or a plain object if `json` was truthy
caseless: caseless.Caseless; // case-insensitive access to headers
toJSON(): ResponseAsJSON;
timingStart?: number;
elapsedTime?: number;
timings?: {
socket: number;
lookup: number;
connect: number;
response: number;
end: number;
};
timingPhases?: {
wait: number;
dns: number;
tcp: number;
firstByte: number;
download: number;
total: number;
};
}
// aliases for backwards compatibility
type ResponseRequest = Request;
type RequestResponse = Response;
interface Headers {
[key: string]: any;
}
interface AuthOptions {
user?: string;
username?: string;
pass?: string;
password?: string;
sendImmediately?: boolean;
bearer?: string | (() => string);
}
interface OAuthOptions {
callback?: string;
consumer_key?: string;
consumer_secret?: string;
token?: string;
token_secret?: string;
transport_method?: 'body' | 'header' | 'query';
verifier?: string;
body_hash?: true | string;
}
interface HawkOptions {
credentials: any;
}
interface AWSOptions {
secret: string;
bucket?: string;
}
interface RequestAsJSON {
uri: Url;
method: string;
headers: Headers;
}
interface ResponseAsJSON {
statusCode: number;
body: any;
headers: Headers;
request: RequestAsJSON;
}
type Cookie = tough.Cookie;
interface CookieJar {
setCookie(cookieOrStr: Cookie | string, uri: string | Url, options?: tough.CookieJar.SetCookieOptions): void;
getCookieString(uri: string | Url): string;
getCookies(uri: string | Url): Cookie[];
}
}
declare var request: request.RequestAPI<request.Request, request.CoreOptions, request.RequiredUriUrl>;
export = request;
{
"_from": "@types/request@^2.48.1",
"_id": "@types/request@2.48.4",
"_inBundle": false,
"_integrity": "sha512-W1t1MTKYR8PxICH+A4HgEIPuAC3sbljoEVfyZbeFJJDbr30guDspJri2XOaM2E+Un7ZjrihaDi7cf6fPa2tbgw==",
"_location": "/@types/request",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@types/request@^2.48.1",
"name": "@types/request",
"escapedName": "@types%2frequest",
"scope": "@types",
"rawSpec": "^2.48.1",
"saveSpec": null,
"fetchSpec": "^2.48.1"
},
"_requiredBy": [
"/soap"
],
"_resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.4.tgz",
"_shasum": "df3d43d7b9ed3550feaa1286c6eabf0738e6cf7e",
"_spec": "@types/request@^2.48.1",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\dev\\node_modules\\soap",
"bugs": {
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Carlos Ballesteros Velasco",
"url": "https://github.com/soywiz"
},
{
"name": "bonnici",
"url": "https://github.com/bonnici"
},
{
"name": "Bart van der Schoor",
"url": "https://github.com/Bartvds"
},
{
"name": "Joe Skeen",
"url": "https://github.com/joeskeen"
},
{
"name": "Christopher Currens",
"url": "https://github.com/ccurrens"
},
{
"name": "Jon Stevens",
"url": "https://github.com/lookfirst"
},
{
"name": "Matt R. Wilson",
"url": "https://github.com/mastermatt"
},
{
"name": "Jose Colella",
"url": "https://github.com/josecolella"
},
{
"name": "Marek Urbanowicz",
"url": "https://github.com/murbanowicz"
}
],
"dependencies": {
"@types/caseless": "*",
"@types/node": "*",
"@types/tough-cookie": "*",
"form-data": "^2.5.0"
},
"deprecated": false,
"description": "TypeScript definitions for request",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
"license": "MIT",
"main": "",
"name": "@types/request",
"repository": {
"type": "git",
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/request"
},
"scripts": {},
"typeScriptVersion": "2.8",
"types": "index.d.ts",
"typesPublisherContentHash": "59c361ef94f60a86c6d4454105f32e02b1df890315240bc6104baa2dce2e59d0",
"version": "2.48.4"
}
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
# Installation
> `npm install --save @types/tough-cookie`
# Summary
This package contains type definitions for tough-cookie (https://github.com/salesforce/tough-cookie).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tough-cookie.
### Additional Details
* Last updated: Fri, 06 Dec 2019 06:02:13 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by Leonard Thieu (https://github.com/leonard-thieu), LiJinyao (https://github.com/LiJinyao), and Michael Wei (https://github.com/no2chem).
// Type definitions for tough-cookie 2.3
// Project: https://github.com/salesforce/tough-cookie
// Definitions by: Leonard Thieu <https://github.com/leonard-thieu>
// LiJinyao <https://github.com/LiJinyao>
// Michael Wei <https://github.com/no2chem>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/**
* Parse a cookie date string into a Date.
* Parses according to RFC6265 Section 5.1.1, not Date.parse().
*/
export function parseDate(string: string): Date;
/**
* Format a Date into a RFC1123 string (the RFC6265-recommended format).
*/
export function formatDate(date: Date): string;
/**
* Transforms a domain-name into a canonical domain-name.
* The canonical domain-name is a trimmed, lowercased, stripped-of-leading-dot
* and optionally punycode-encoded domain-name (Section 5.1.2 of RFC6265).
* For the most part, this function is idempotent (can be run again on its output without ill effects).
*/
export function canonicalDomain(str: string): string;
/**
* Answers "does this real domain match the domain in a cookie?".
* The str is the "current" domain-name and the domStr is the "cookie" domain-name.
* Matches according to RFC6265 Section 5.1.3, but it helps to think of it as a "suffix match".
*
* The canonicalize parameter will run the other two parameters through canonicalDomain or not.
*/
export function domainMatch(str: string, domStr: string, canonicalize?: boolean): boolean;
/**
* Given a current request/response path, gives the Path apropriate for storing in a cookie.
* This is basically the "directory" of a "file" in the path, but is specified by Section 5.1.4 of the RFC.
*
* The path parameter MUST be only the pathname part of a URI (i.e. excludes the hostname, query, fragment, etc.).
* This is the .pathname property of node's uri.parse() output.
*/
export function defaultPath(path: string): string;
/**
* Answers "does the request-path path-match a given cookie-path?" as per RFC6265 Section 5.1.4.
* Returns a boolean.
*
* This is essentially a prefix-match where cookiePath is a prefix of reqPath.
*/
export function pathMatch(reqPath: string, cookiePath: string): boolean;
/**
* alias for Cookie.fromJSON(string)
*/
export function fromJSON(string: string): Cookie;
export function getPublicSuffix(hostname: string): string | null;
export function cookieCompare(a: Cookie, b: Cookie): number;
export function permuteDomain(domain: string): string[];
export function permutePath(path: string): string[];
// region Cookie
export class Cookie {
static parse(cookieString: string, options?: Cookie.ParseOptions): Cookie | undefined;
static fromJSON(strOrObj: string | object): Cookie | null;
constructor(properties?: Cookie.Properties);
key: string;
value: string;
expires: Date | 'Infinity';
maxAge: number | 'Infinity' | '-Infinity';
domain: string | null;
path: string | null;
secure: boolean;
httpOnly: boolean;
extensions: string[] | null;
creation: Date | null;
creationIndex: number;
hostOnly: boolean | null;
pathIsDefault: boolean | null;
lastAccessed: Date | null;
toString(): string;
cookieString(): string;
setExpires(String: string): void;
setMaxAge(number: number): void;
expiryTime(now?: number): number | typeof Infinity;
expiryDate(now?: number): Date;
TTL(now?: Date): number | typeof Infinity;
canonicalizedDomain(): string;
cdomain(): string;
toJSON(): { [key: string]: any; };
clone(): Cookie;
validate(): boolean | string;
}
export namespace Cookie {
interface ParseOptions {
loose?: boolean;
}
interface Properties {
key?: string;
value?: string;
expires?: Date;
maxAge?: number | 'Infinity' | '-Infinity';
domain?: string;
path?: string;
secure?: boolean;
httpOnly?: boolean;
extensions?: string[];
creation?: Date;
creationIndex?: number;
hostOnly?: boolean;
pathIsDefault?: boolean;
lastAccessed?: Date;
}
interface Serialized {
[key: string]: any;
}
}
// endregion
// region CookieJar
export class CookieJar {
static deserialize(serialized: CookieJar.Serialized | string, store: Store, cb: (err: Error | null, object: CookieJar) => void): void;
static deserialize(serialized: CookieJar.Serialized | string, cb: (err: Error | null, object: CookieJar) => void): void;
static deserializeSync(serialized: CookieJar.Serialized | string, store?: Store): CookieJar;
static fromJSON(string: string): CookieJar;
constructor(store?: Store, options?: CookieJar.Options);
setCookie(cookieOrString: Cookie | string, currentUrl: string, options: CookieJar.SetCookieOptions, cb: (err: Error | null, cookie: Cookie) => void): void;
setCookie(cookieOrString: Cookie | string, currentUrl: string, cb: (err: Error, cookie: Cookie) => void): void;
setCookieSync(cookieOrString: Cookie | string, currentUrl: string, options?: CookieJar.SetCookieOptions): void;
getCookies(currentUrl: string, options: CookieJar.GetCookiesOptions, cb: (err: Error | null, cookies: Cookie[]) => void): void;
getCookies(currentUrl: string, cb: (err: Error | null, cookies: Cookie[]) => void): void;
getCookiesSync(currentUrl: string, options?: CookieJar.GetCookiesOptions): Cookie[];
getCookieString(currentUrl: string, options: CookieJar.GetCookiesOptions, cb: (err: Error | null, cookies: string) => void): void;
getCookieString(currentUrl: string, cb: (err: Error | null, cookies: string) => void): void;
getCookieStringSync(currentUrl: string, options?: CookieJar.GetCookiesOptions): string;
getSetCookieStrings(currentUrl: string, options: CookieJar.GetCookiesOptions, cb: (err: Error | null, cookies: string) => void): void;
getSetCookieStrings(currentUrl: string, cb: (err: Error | null, cookies: string) => void): void;
getSetCookieStringsSync(currentUrl: string, options?: CookieJar.GetCookiesOptions): string;
serialize(cb: (err: Error | null, serializedObject: CookieJar.Serialized) => void): void;
serializeSync(): CookieJar.Serialized;
toJSON(): CookieJar.Serialized;
clone(store: Store, cb: (err: Error | null, newJar: CookieJar) => void): void;
clone(cb: (err: Error | null, newJar: CookieJar) => void): void;
cloneSync(store: Store): CookieJar;
}
export namespace CookieJar {
interface Options {
rejectPublicSuffixes?: boolean;
looseMode?: boolean;
}
interface SetCookieOptions {
http?: boolean;
secure?: boolean;
now?: Date;
ignoreError?: boolean;
}
interface GetCookiesOptions {
http?: boolean;
secure?: boolean;
now?: Date;
expire?: boolean;
allPaths?: boolean;
}
interface Serialized {
version: string;
storeType: string;
rejectPublicSuffixes: boolean;
cookies: Cookie.Serialized[];
}
}
// endregion
// region Store
export abstract class Store {
findCookie(domain: string, path: string, key: string, cb: (err: Error | null, cookie: Cookie | null) => void): void;
findCookies(domain: string, path: string, cb: (err: Error | null, cookie: Cookie[]) => void): void;
putCookie(cookie: Cookie, cb: (err: Error | null) => void): void;
updateCookie(oldCookie: Cookie, newCookie: Cookie, cb: (err: Error | null) => void): void;
removeCookie(domain: string, path: string, key: string, cb: (err: Error | null) => void): void;
removeCookies(domain: string, path: string, cb: (err: Error | null) => void): void;
getAllCookies(cb: (err: Error | null, cookie: Cookie[]) => void): void;
}
export class MemoryCookieStore extends Store { }
// endregion
{
"_from": "@types/tough-cookie@*",
"_id": "@types/tough-cookie@2.3.6",
"_inBundle": false,
"_integrity": "sha512-wHNBMnkoEBiRAd3s8KTKwIuO9biFtTf0LehITzBhSco+HQI0xkXZbLOD55SW3Aqw3oUkHstkm5SPv58yaAdFPQ==",
"_location": "/@types/tough-cookie",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@types/tough-cookie@*",
"name": "@types/tough-cookie",
"escapedName": "@types%2ftough-cookie",
"scope": "@types",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/@types/request"
],
"_resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.6.tgz",
"_shasum": "c880579e087d7a0db13777ff8af689f4ffc7b0d5",
"_spec": "@types/tough-cookie@*",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\dev\\node_modules\\@types\\request",
"bugs": {
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Leonard Thieu",
"url": "https://github.com/leonard-thieu"
},
{
"name": "LiJinyao",
"url": "https://github.com/LiJinyao"
},
{
"name": "Michael Wei",
"url": "https://github.com/no2chem"
}
],
"dependencies": {},
"deprecated": false,
"description": "TypeScript definitions for tough-cookie",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme",
"license": "MIT",
"main": "",
"name": "@types/tough-cookie",
"repository": {
"type": "git",
"url": "git+https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/tough-cookie"
},
"scripts": {},
"typeScriptVersion": "2.8",
"types": "index.d.ts",
"typesPublisherContentHash": "f99963c45ef837887ac7831d070f874eb7ced3aded2d0a245b0d5cb7b7bf937e",
"version": "2.3.6"
}
{ {
"_from": "@vue/babel-helper-vue-jsx-merge-props@^1.0.0", "name": "@vue/babel-helper-vue-jsx-merge-props",
"_id": "@vue/babel-helper-vue-jsx-merge-props@1.0.0", "version": "1.0.0",
"_inBundle": false,
"_integrity": "sha512-6tyf5Cqm4m6v7buITuwS+jHzPlIPxbFzEhXR5JGZpbrvOcp1hiQKckd305/3C7C36wFekNTQSxAtgeM0j0yoUw==",
"_location": "/@vue/babel-helper-vue-jsx-merge-props",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@vue/babel-helper-vue-jsx-merge-props@^1.0.0",
"name": "@vue/babel-helper-vue-jsx-merge-props",
"escapedName": "@vue%2fbabel-helper-vue-jsx-merge-props",
"scope": "@vue",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/@vue/babel-plugin-transform-vue-jsx",
"/@vue/babel-preset-jsx",
"/@vue/babel-sugar-v-model"
],
"_resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.0.0.tgz",
"_shasum": "048fe579958da408fb7a8b2a3ec050b50a661040",
"_spec": "@vue/babel-helper-vue-jsx-merge-props@^1.0.0",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\LAFJLBmf939XYm5gj\\dev\\node_modules\\@vue\\babel-preset-jsx",
"author": {
"name": "Evan You"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Babel helper for Vue JSX spread", "description": "Babel helper for Vue JSX spread",
"main": "dist/helper.js",
"repository": "https://github.com/vuejs/jsx/tree/master/packages/babel-helper-vue-jsx-merge-props",
"author": "Evan You",
"license": "MIT",
"private": false,
"files": [],
"scripts": {
"build:testing": "rollup -c rollup.config.testing.js",
"build": "rollup -c",
"pretest": "yarn build:testing",
"test": "nyc --reporter=html --reporter=text-summary ava -v test/test.js",
"prepublish": "yarn build"
},
"devDependencies": { "devDependencies": {
"@babel/core": "^7.2.0", "@babel/core": "^7.2.0",
"@babel/preset-env": "^7.2.0", "@babel/preset-env": "^7.2.0",
...@@ -41,28 +25,11 @@ ...@@ -41,28 +25,11 @@
"rollup-plugin-babel-minify": "^6.2.0", "rollup-plugin-babel-minify": "^6.2.0",
"rollup-plugin-istanbul": "^2.0.1" "rollup-plugin-istanbul": "^2.0.1"
}, },
"files": [],
"gitHead": "32ab59219d8c6fef6ba8ff399132872bc7fff477",
"license": "MIT",
"main": "dist/helper.js",
"name": "@vue/babel-helper-vue-jsx-merge-props",
"nyc": { "nyc": {
"exclude": [ "exclude": [
"dist", "dist",
"test" "test"
] ]
}, },
"private": false, "gitHead": "32ab59219d8c6fef6ba8ff399132872bc7fff477"
"repository": {
"type": "git",
"url": "https://github.com/vuejs/jsx/tree/master/packages/babel-helper-vue-jsx-merge-props"
},
"scripts": {
"build": "rollup -c",
"build:testing": "rollup -c rollup.config.testing.js",
"prepublish": "yarn build",
"pretest": "yarn build:testing",
"test": "nyc --reporter=html --reporter=text-summary ava -v test/test.js"
},
"version": "1.0.0"
} }
{ {
"_from": "@vue/babel-plugin-transform-vue-jsx@^1.1.2", "name": "@vue/babel-plugin-transform-vue-jsx",
"_id": "@vue/babel-plugin-transform-vue-jsx@1.1.2", "version": "1.1.2",
"_inBundle": false,
"_integrity": "sha512-YfdaoSMvD1nj7+DsrwfTvTnhDXI7bsuh+Y5qWwvQXlD24uLgnsoww3qbiZvWf/EoviZMrvqkqN4CBw0W3BWUTQ==",
"_location": "/@vue/babel-plugin-transform-vue-jsx",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@vue/babel-plugin-transform-vue-jsx@^1.1.2",
"name": "@vue/babel-plugin-transform-vue-jsx",
"escapedName": "@vue%2fbabel-plugin-transform-vue-jsx",
"scope": "@vue",
"rawSpec": "^1.1.2",
"saveSpec": null,
"fetchSpec": "^1.1.2"
},
"_requiredBy": [
"/@vue/babel-preset-jsx",
"/@vue/babel-sugar-v-model",
"/@vue/babel-sugar-v-on"
],
"_resolved": "https://registry.npmjs.org/@vue/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-1.1.2.tgz",
"_shasum": "c0a3e6efc022e75e4247b448a8fc6b86f03e91c0",
"_spec": "@vue/babel-plugin-transform-vue-jsx@^1.1.2",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\LAFJLBmf939XYm5gj\\dev\\node_modules\\@vue\\babel-preset-jsx",
"author": {
"name": "Evan You"
},
"bundleDependencies": false,
"dependencies": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
"html-tags": "^2.0.0",
"lodash.kebabcase": "^4.1.1",
"svg-tags": "^1.0.0"
},
"deprecated": false,
"description": "Babel plugin for Vue 2.0 JSX", "description": "Babel plugin for Vue 2.0 JSX",
"main": "dist/plugin.js",
"repository": "https://github.com/vuejs/jsx/tree/master/packages/babel-plugin-transform-vue-jsx",
"author": "Evan You",
"license": "MIT",
"private": false,
"files": [],
"scripts": {
"pretest:snapshot": "yarn build:test",
"test:snapshot": "nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js",
"pretest:functional": "yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js --out-file test/functional-compiled.js",
"test:functional": "ava -v test/functional-compiled.js",
"build": "rollup -c",
"build:test": "rollup -c rollup.config.testing.js",
"test": "rm -rf coverage* && yarn test:snapshot && mv coverage coverage-snapshot && yarn test:functional && mv coverage coverage-functional",
"prepublish": "yarn build"
},
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.2.0", "@babel/cli": "^7.2.0",
"@babel/core": "^7.2.0", "@babel/core": "^7.2.0",
...@@ -55,34 +34,22 @@ ...@@ -55,34 +34,22 @@
"vue": "^2.5.17", "vue": "^2.5.17",
"vue-template-compiler": "^2.5.17" "vue-template-compiler": "^2.5.17"
}, },
"files": [], "dependencies": {
"gitHead": "67d6d39beab9f853118b4e0bbe901f5899ae7245", "@babel/helper-module-imports": "^7.0.0",
"license": "MIT", "@babel/plugin-syntax-jsx": "^7.2.0",
"main": "dist/plugin.js", "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
"name": "@vue/babel-plugin-transform-vue-jsx", "html-tags": "^2.0.0",
"lodash.kebabcase": "^4.1.1",
"svg-tags": "^1.0.0"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"nyc": { "nyc": {
"exclude": [ "exclude": [
"dist", "dist",
"test" "test"
] ]
}, },
"peerDependencies": { "gitHead": "67d6d39beab9f853118b4e0bbe901f5899ae7245"
"@babel/core": "^7.0.0-0"
},
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/vuejs/jsx/tree/master/packages/babel-plugin-transform-vue-jsx"
},
"scripts": {
"build": "rollup -c",
"build:test": "rollup -c rollup.config.testing.js",
"prepublish": "yarn build",
"pretest:functional": "yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js --out-file test/functional-compiled.js",
"pretest:snapshot": "yarn build:test",
"test": "rm -rf coverage* && yarn test:snapshot && mv coverage coverage-snapshot && yarn test:functional && mv coverage coverage-functional",
"test:functional": "ava -v test/functional-compiled.js",
"test:snapshot": "nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js"
},
"version": "1.1.2"
} }
{ {
"_from": "@vue/babel-preset-app@^3.9.2", "name": "@vue/babel-preset-app",
"_id": "@vue/babel-preset-app@3.12.1", "version": "3.12.1",
"_inBundle": false, "description": "babel-preset-app for vue-cli",
"_integrity": "sha512-Zjy5jQaikV1Pz+ri0YgXFS7q4/5wCxB5tRkDOEIt5+4105u0Feb/pvH20nVL6nx9GyXrECFfcm7Yxr/z++OaPQ==", "main": "index.js",
"_location": "/@vue/babel-preset-app", "publishConfig": {
"_phantomChildren": {}, "access": "public"
"_requested": {
"type": "range",
"registry": true,
"raw": "@vue/babel-preset-app@^3.9.2",
"name": "@vue/babel-preset-app",
"escapedName": "@vue%2fbabel-preset-app",
"scope": "@vue",
"rawSpec": "^3.9.2",
"saveSpec": null,
"fetchSpec": "^3.9.2"
}, },
"_requiredBy": [ "repository": {
"#DEV:/" "type": "git",
], "url": "git+https://github.com/vuejs/vue-cli.git",
"_resolved": "https://registry.npmjs.org/@vue/babel-preset-app/-/babel-preset-app-3.12.1.tgz", "directory": "packages/@vue/babel-preset-app"
"_shasum": "24c477052f078f30fdb7735103b14dd1fa2cbfe1",
"_spec": "@vue/babel-preset-app@^3.9.2",
"_where": "C:\\Work\\OneDrive - bwstaff\\M4_Lab\\TV3\\NewVersion01\\LAFJLBmf939XYm5gj\\dev",
"author": {
"name": "Evan You"
}, },
"keywords": [
"vue",
"cli"
],
"author": "Evan You",
"license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/vuejs/vue-cli/issues" "url": "https://github.com/vuejs/vue-cli/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/babel-preset-app#readme",
"dependencies": { "dependencies": {
"@babel/helper-module-imports": "^7.0.0", "@babel/helper-module-imports": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0",
...@@ -44,24 +35,5 @@ ...@@ -44,24 +35,5 @@
"babel-plugin-dynamic-import-node": "^2.2.0", "babel-plugin-dynamic-import-node": "^2.2.0",
"babel-plugin-module-resolver": "3.2.0", "babel-plugin-module-resolver": "3.2.0",
"core-js": "^2.6.5" "core-js": "^2.6.5"
}, }
"deprecated": false,
"description": "babel-preset-app for vue-cli",
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/babel-preset-app#readme",
"keywords": [
"vue",
"cli"
],
"license": "MIT",
"main": "index.js",
"name": "@vue/babel-preset-app",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue-cli.git",
"directory": "packages/@vue/babel-preset-app"
},
"version": "3.12.1"
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment