rahad-media-downloader 2.1.8 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/modules/{nodejs-20:v32-20240401-269b323.res → nodejs-20:v36-20240502-f4453db.res} +1 -1
- package/.cache/replit/modules/{replit:v8-20240329-787bc7d.res → replit:v9-20240429-0325cbb.res} +1 -1
- package/.cache/typescript/5.3/node_modules/.package-lock.json +60 -0
- package/.cache/typescript/5.3/node_modules/@types/cookie/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/cookie/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/cookie/index.d.ts +154 -0
- package/.cache/typescript/5.3/node_modules/@types/cookie/package.json +30 -0
- package/.cache/typescript/5.3/node_modules/@types/domhandler/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/domhandler/README.md +92 -0
- package/.cache/typescript/5.3/node_modules/@types/domhandler/index.d.ts +73 -0
- package/.cache/typescript/5.3/node_modules/@types/domhandler/package.json +25 -0
- package/.cache/typescript/5.3/node_modules/@types/domutils/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/domutils/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/domutils/index.d.ts +124 -0
- package/.cache/typescript/5.3/node_modules/@types/domutils/package.json +27 -0
- package/.cache/typescript/5.3/node_modules/@types/htmlparser2/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/htmlparser2/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/htmlparser2/index.d.ts +120 -0
- package/.cache/typescript/5.3/node_modules/@types/htmlparser2/package.json +45 -0
- package/.cache/typescript/5.3/node_modules/@types/psl/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/psl/README.md +52 -0
- package/.cache/typescript/5.3/node_modules/@types/psl/index.d.ts +33 -0
- package/.cache/typescript/5.3/node_modules/@types/psl/package.json +25 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.3/node_modules/domelementtype/LICENSE +11 -0
- package/.cache/typescript/5.3/node_modules/domelementtype/index.js +15 -0
- package/.cache/typescript/5.3/node_modules/domelementtype/package.json +16 -0
- package/.cache/typescript/5.3/node_modules/domelementtype/readme.md +1 -0
- package/.cache/typescript/5.3/node_modules/domhandler/.travis.yml +6 -0
- package/.cache/typescript/5.3/node_modules/domhandler/LICENSE +11 -0
- package/.cache/typescript/5.3/node_modules/domhandler/index.js +217 -0
- package/.cache/typescript/5.3/node_modules/domhandler/lib/element.js +20 -0
- package/.cache/typescript/5.3/node_modules/domhandler/lib/node.js +44 -0
- package/.cache/typescript/5.3/node_modules/domhandler/package.json +41 -0
- package/.cache/typescript/5.3/node_modules/domhandler/readme.md +116 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/01-basic.json +57 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/02-single_tag_1.json +21 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/03-single_tag_2.json +21 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/04-unescaped_in_script.json +27 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/05-tags_in_comment.json +18 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/06-comment_in_script.json +18 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/07-unescaped_in_style.json +20 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +20 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/09-unquoted_attrib.json +20 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/10-singular_attribute.json +15 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/11-text_outside_tags.json +40 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/12-text_only.json +11 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/13-comment_in_text.json +19 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +18 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/15-non-verbose.json +22 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/16-normalize_whitespace.json +47 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/17-xml_namespace.json +18 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +16 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +20 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/20-template_script_tags.json +20 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/21-conditional_comments.json +15 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/22-lowercase_tags.json +41 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/23-dom-lvl1.json +131 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/24-with-start-indices.json +85 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/cases/25-with-end-indices.json +86 -0
- package/.cache/typescript/5.3/node_modules/domhandler/test/tests.js +60 -0
- package/.cache/typescript/5.3/package-lock.json +64 -0
- package/.cache/typescript/5.3/package.json +1 -1
- package/README.md +103 -18
- package/index.js +1 -1
- package/package.json +34 -4
- package/test.js +0 -35
@@ -0,0 +1,124 @@
|
|
1
|
+
import { DomElement } from "domhandler";
|
2
|
+
/***
|
3
|
+
* Append an element after another
|
4
|
+
*
|
5
|
+
* @argument elem The element to append to
|
6
|
+
* @argument next The element be added
|
7
|
+
*/
|
8
|
+
export function append(elem: DomElement, next: DomElement): void;
|
9
|
+
/***
|
10
|
+
* Append a child to an element
|
11
|
+
*
|
12
|
+
* @argument elem The element to append to
|
13
|
+
* @argument child The element to be added as a child
|
14
|
+
*/
|
15
|
+
export function appendChild(elem: DomElement, child: DomElement): void;
|
16
|
+
/***
|
17
|
+
* Compare the position of one node against another node in any other document.
|
18
|
+
* The return value is a bitmask with the following values:
|
19
|
+
*
|
20
|
+
* document order:
|
21
|
+
* > There is an ordering, document order, defined on all the nodes in the
|
22
|
+
* > document corresponding to the order in which the first character of the
|
23
|
+
* > XML representation of each node occurs in the XML representation of the
|
24
|
+
* > document after expansion of general entities. Thus, the document element
|
25
|
+
* > node will be the first node. Element nodes occur before their children.
|
26
|
+
* > Thus, document order orders element nodes in order of the occurrence of
|
27
|
+
* > their start-tag in the XML (after expansion of entities). The attribute
|
28
|
+
* > nodes of an element occur after the element and before its children. The
|
29
|
+
* > relative order of attribute nodes is implementation-dependent./
|
30
|
+
*
|
31
|
+
* Source:
|
32
|
+
* http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
|
33
|
+
* @argument nodaA The first node to use in the comparison
|
34
|
+
* @argument nodeB The second node to use in the comparison
|
35
|
+
*
|
36
|
+
* @return A bitmask describing the input nodes' relative position.
|
37
|
+
*
|
38
|
+
* See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for
|
39
|
+
* a description of these values.
|
40
|
+
*/
|
41
|
+
export function compareDocumentPosition(nodeA: DomElement, nodeB: DomElement): number;
|
42
|
+
export function existsOne(test: any, elems: DomElement[]): boolean;
|
43
|
+
export function filter(test: any, element: DomElement, recurse: boolean, limit: number): DomElement[];
|
44
|
+
export function find(test: any, elems: DomElement[], recurse: boolean, limit: number): DomElement[];
|
45
|
+
export function findAll(test: any, rootElems: DomElement[]): DomElement[];
|
46
|
+
export function findOne(test: any, elems: DomElement[]): DomElement;
|
47
|
+
export function findOneChild(test: any, elems: DomElement[]): DomElement;
|
48
|
+
export function getAttributeValue(elem: DomElement, name: string): string;
|
49
|
+
export function getChildren(elem: DomElement): DomElement[];
|
50
|
+
/***
|
51
|
+
* Legacy
|
52
|
+
*/
|
53
|
+
export function getElementById(id: any, element: any, recurse?: any): any;
|
54
|
+
/***
|
55
|
+
* Legacy
|
56
|
+
*/
|
57
|
+
export function getElements(options: any, element: any, recurse?: any, limit?: any): any;
|
58
|
+
/***
|
59
|
+
* Legacy
|
60
|
+
*/
|
61
|
+
export function getElementsByTagName(name: any, element: any, recurse?: any, limit?: any): any;
|
62
|
+
/***
|
63
|
+
* Legacy
|
64
|
+
*/
|
65
|
+
export function getElementsByTagType(type: any, element: any, recurse?: any, limit?: any): any;
|
66
|
+
export function getInnerHTML(elem: DomElement, opts: any): string;
|
67
|
+
/***
|
68
|
+
* Returns the name property of an element
|
69
|
+
*
|
70
|
+
* @argument elem The element to get the name for
|
71
|
+
*/
|
72
|
+
export function getName(elem: DomElement): string;
|
73
|
+
/***
|
74
|
+
* Returns a string representing the array of DomElements
|
75
|
+
*
|
76
|
+
* @argument dom An array of DomElement that should be stringified
|
77
|
+
* @argument [opts] Optional options object
|
78
|
+
*/
|
79
|
+
export function getOuterHTML(
|
80
|
+
dom: DomElement[],
|
81
|
+
opts?: { decodeEntities?: boolean | undefined; xmlMode?: boolean | undefined },
|
82
|
+
): string;
|
83
|
+
export function getParent(elem: DomElement): DomElement;
|
84
|
+
export function getSiblings(elem: DomElement): DomElement[];
|
85
|
+
export function getText(elem: DomElement): string;
|
86
|
+
export function hasAttrib(elem: DomElement, name: string): boolean;
|
87
|
+
export function isTag(elem: DomElement): boolean;
|
88
|
+
/***
|
89
|
+
* Prepend an element before another
|
90
|
+
*
|
91
|
+
* @argument elem The element to append to
|
92
|
+
* @argument prev The element be added
|
93
|
+
*/
|
94
|
+
export function prepend(elem: DomElement, prev: DomElement): void;
|
95
|
+
/***
|
96
|
+
* Remove an element from the dom
|
97
|
+
*
|
98
|
+
* @argument elem The element to be removed
|
99
|
+
*/
|
100
|
+
export function removeElement(elem: DomElement): void;
|
101
|
+
/***
|
102
|
+
* Given an array of nodes, remove any member that is contained by another.
|
103
|
+
*/
|
104
|
+
export function removeSubsets(nodes: DomElement[]): DomElement[];
|
105
|
+
/***
|
106
|
+
* Replace an element in the dom
|
107
|
+
*
|
108
|
+
* @argument elem The element to be replaced
|
109
|
+
* @argument replacement The element to be added
|
110
|
+
*/
|
111
|
+
export function replaceElement(elem: DomElement, replacement: DomElement): void;
|
112
|
+
/***
|
113
|
+
* Legacy
|
114
|
+
*/
|
115
|
+
export function testElement(options: any, element: any): any;
|
116
|
+
/***
|
117
|
+
* Sort an array of nodes based on their relative position in the document and
|
118
|
+
* remove any duplicate nodes. If the array contains nodes that do not belong
|
119
|
+
* to the same document, sort order is unspecified.
|
120
|
+
*
|
121
|
+
* @argument nodes Array of DOM nodes
|
122
|
+
* @returns collection of unique nodes, sorted in document order
|
123
|
+
*/
|
124
|
+
export function uniqueSort(nodes: DomElement[]): DomElement[];
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/domutils",
|
3
|
+
"version": "1.7.8",
|
4
|
+
"description": "TypeScript definitions for domutils",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/domutils",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "Johan Davidsson",
|
10
|
+
"githubUsername": "johandavidson",
|
11
|
+
"url": "https://github.com/johandavidson"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"main": "",
|
15
|
+
"types": "index.d.ts",
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
19
|
+
"directory": "types/domutils"
|
20
|
+
},
|
21
|
+
"scripts": {},
|
22
|
+
"dependencies": {
|
23
|
+
"@types/domhandler": "^2.4.0"
|
24
|
+
},
|
25
|
+
"typesPublisherContentHash": "47b4f35bd1ab60f1f9aa1d01b90bbd9df04900a53578910effa2218c147ff8aa",
|
26
|
+
"typeScriptVersion": "4.5"
|
27
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/htmlparser2`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for htmlparser2 (https://github.com/fb55/htmlparser2/).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlparser2.
|
9
|
+
|
10
|
+
### Additional Details
|
11
|
+
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
|
12
|
+
* Dependencies: [@types/domhandler](https://npmjs.com/package/@types/domhandler), [@types/domutils](https://npmjs.com/package/@types/domutils), [@types/node](https://npmjs.com/package/@types/node), [domhandler](https://npmjs.com/package/domhandler)
|
13
|
+
|
14
|
+
# Credits
|
15
|
+
These definitions were written by [James Roland Cabresos](https://github.com/staticfunction), [Linus Unnebäck](https://github.com/LinusU), [Johan Davidsson](https://github.com/johandavidson), and [GP](https://github.com/paambaati).
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/// <reference types="node"/>
|
2
|
+
/// <reference types="domhandler"/>
|
3
|
+
/// <reference types="domutils"/>
|
4
|
+
|
5
|
+
import { DomHandler } from "domhandler";
|
6
|
+
import * as DomUtils from "domutils";
|
7
|
+
import { Writable } from "stream";
|
8
|
+
export { DomElement, DomHandler, DomHandlerOptions, Element, Node } from "domhandler";
|
9
|
+
|
10
|
+
export interface ParserOptions {
|
11
|
+
/***
|
12
|
+
* Indicates whether special tags (<script> and <style>) should get special treatment
|
13
|
+
* and if "empty" tags (eg. <br>) can have children. If false, the content of special tags
|
14
|
+
* will be text only. For feeds and other XML content (documents that don't consist of HTML),
|
15
|
+
* set this to true. Default: false.
|
16
|
+
*/
|
17
|
+
xmlMode?: boolean | undefined;
|
18
|
+
|
19
|
+
/***
|
20
|
+
* If set to true, entities within the document will be decoded. Defaults to false.
|
21
|
+
*/
|
22
|
+
decodeEntities?: boolean | undefined;
|
23
|
+
|
24
|
+
/***
|
25
|
+
* If set to true, all tags will be lowercased. If xmlMode is disabled, this defaults to true.
|
26
|
+
*/
|
27
|
+
lowerCaseTags?: boolean | undefined;
|
28
|
+
|
29
|
+
/***
|
30
|
+
* If set to true, all attribute names will be lowercased. This has noticeable impact on speed, so it defaults to false.
|
31
|
+
*/
|
32
|
+
lowerCaseAttributeNames?: boolean | undefined;
|
33
|
+
|
34
|
+
/***
|
35
|
+
* If set to true, CDATA sections will be recognized as text even if the xmlMode option is not enabled.
|
36
|
+
* NOTE: If xmlMode is set to true then CDATA sections will always be recognized as text.
|
37
|
+
*/
|
38
|
+
recognizeCDATA?: boolean | undefined;
|
39
|
+
|
40
|
+
/***
|
41
|
+
* If set to true, self-closing tags will trigger the onclosetag event even if xmlMode is not set to true.
|
42
|
+
* NOTE: If xmlMode is set to true then self-closing tags will always be recognized.
|
43
|
+
*/
|
44
|
+
recognizeSelfClosing?: boolean | undefined;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* @deprecated
|
48
|
+
*/
|
49
|
+
export type Options = ParserOptions;
|
50
|
+
|
51
|
+
export declare class WritableStream extends Writable {
|
52
|
+
constructor(handler: DomHandler, options?: ParserOptions);
|
53
|
+
}
|
54
|
+
|
55
|
+
export declare class Parser {
|
56
|
+
constructor(handler: Partial<DomHandler>, options?: ParserOptions);
|
57
|
+
|
58
|
+
/***
|
59
|
+
* Parses a chunk of data and calls the corresponding callbacks.
|
60
|
+
* @param input
|
61
|
+
*/
|
62
|
+
write(input: string): void;
|
63
|
+
|
64
|
+
/***
|
65
|
+
* alias for backwards compat
|
66
|
+
*/
|
67
|
+
parseChunk(chunk: string): void;
|
68
|
+
|
69
|
+
/***
|
70
|
+
* Parses the end of the buffer and clears the stack, calls onend.
|
71
|
+
*/
|
72
|
+
end(): void;
|
73
|
+
|
74
|
+
/***
|
75
|
+
* Parses the end of the buffer and clears the stack, calls onend.
|
76
|
+
*/
|
77
|
+
end(chunk: string): void;
|
78
|
+
|
79
|
+
/***
|
80
|
+
* alias for backwards compat
|
81
|
+
*/
|
82
|
+
done(): void;
|
83
|
+
|
84
|
+
/***
|
85
|
+
* Pauses the parser
|
86
|
+
*/
|
87
|
+
pause(): void;
|
88
|
+
|
89
|
+
/***
|
90
|
+
* Resumes the parser
|
91
|
+
*/
|
92
|
+
resume(): void;
|
93
|
+
|
94
|
+
/***
|
95
|
+
* Resets the parser, parses the data & calls end.
|
96
|
+
* @param input
|
97
|
+
*/
|
98
|
+
parseComplete(input: string): void;
|
99
|
+
|
100
|
+
/***
|
101
|
+
* Resets buffer & stack, calls onreset.
|
102
|
+
*/
|
103
|
+
reset(): void;
|
104
|
+
|
105
|
+
ontext(data: any): void;
|
106
|
+
onopentagname(name: string): void;
|
107
|
+
onopentagend(): void;
|
108
|
+
onclosetag(name: string): void;
|
109
|
+
onselfclosingtag(): void;
|
110
|
+
onattribname(name: string): void;
|
111
|
+
onattribend(): void;
|
112
|
+
ondeclaration(): void;
|
113
|
+
onprocessinginstruction(value: string): void;
|
114
|
+
oncomment(value: string): void;
|
115
|
+
oncdata(value: string): void;
|
116
|
+
onerror(err: Error): void;
|
117
|
+
onend(): void;
|
118
|
+
}
|
119
|
+
|
120
|
+
export { DomUtils };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/htmlparser2",
|
3
|
+
"version": "3.10.7",
|
4
|
+
"description": "TypeScript definitions for htmlparser2",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlparser2",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "James Roland Cabresos",
|
10
|
+
"githubUsername": "staticfunction",
|
11
|
+
"url": "https://github.com/staticfunction"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"name": "Linus Unnebäck",
|
15
|
+
"githubUsername": "LinusU",
|
16
|
+
"url": "https://github.com/LinusU"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"name": "Johan Davidsson",
|
20
|
+
"githubUsername": "johandavidson",
|
21
|
+
"url": "https://github.com/johandavidson"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"name": "GP",
|
25
|
+
"githubUsername": "paambaati",
|
26
|
+
"url": "https://github.com/paambaati"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"main": "",
|
30
|
+
"types": "index.d.ts",
|
31
|
+
"repository": {
|
32
|
+
"type": "git",
|
33
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
34
|
+
"directory": "types/htmlparser2"
|
35
|
+
},
|
36
|
+
"scripts": {},
|
37
|
+
"dependencies": {
|
38
|
+
"@types/domhandler": "^2.4.3",
|
39
|
+
"@types/domutils": "*",
|
40
|
+
"@types/node": "*",
|
41
|
+
"domhandler": "^2.4.0"
|
42
|
+
},
|
43
|
+
"typesPublisherContentHash": "7570ab2cb2f14acf512a1ef3bba9d03939e5d09f4c1e62cc1ac7072be9276c51",
|
44
|
+
"typeScriptVersion": "4.5"
|
45
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/psl`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for psl (https://github.com/wrangr/psl#readme).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/psl.
|
9
|
+
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/psl/index.d.ts)
|
10
|
+
````ts
|
11
|
+
export as namespace psl;
|
12
|
+
|
13
|
+
export function parse(domain: string): ParsedDomain | ParseError;
|
14
|
+
|
15
|
+
export function get(domain: null | undefined): null;
|
16
|
+
export function get(domain: string): string | null;
|
17
|
+
|
18
|
+
export function isValid(domain: string): boolean;
|
19
|
+
|
20
|
+
export interface ParsedDomain {
|
21
|
+
tld: string | null;
|
22
|
+
sld: string | null;
|
23
|
+
domain: string | null;
|
24
|
+
subdomain: string | null;
|
25
|
+
listed: boolean;
|
26
|
+
input: string;
|
27
|
+
error: undefined;
|
28
|
+
}
|
29
|
+
|
30
|
+
export interface ParseError {
|
31
|
+
input: string;
|
32
|
+
error: {
|
33
|
+
code:
|
34
|
+
| "DOMAIN_TOO_SHORT"
|
35
|
+
| "DOMAIN_TOO_LONG"
|
36
|
+
| "LABEL_STARTS_WITH_DASH"
|
37
|
+
| "LABEL_ENDS_WITH_DASH"
|
38
|
+
| "LABEL_TOO_LONG"
|
39
|
+
| "LABEL_TOO_SHORT"
|
40
|
+
| "LABEL_INVALID_CHARS";
|
41
|
+
message: string;
|
42
|
+
};
|
43
|
+
}
|
44
|
+
|
45
|
+
````
|
46
|
+
|
47
|
+
### Additional Details
|
48
|
+
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
|
49
|
+
* Dependencies: none
|
50
|
+
|
51
|
+
# Credits
|
52
|
+
These definitions were written by [BendingBender](https://github.com/BendingBender).
|
@@ -0,0 +1,33 @@
|
|
1
|
+
export as namespace psl;
|
2
|
+
|
3
|
+
export function parse(domain: string): ParsedDomain | ParseError;
|
4
|
+
|
5
|
+
export function get(domain: null | undefined): null;
|
6
|
+
export function get(domain: string): string | null;
|
7
|
+
|
8
|
+
export function isValid(domain: string): boolean;
|
9
|
+
|
10
|
+
export interface ParsedDomain {
|
11
|
+
tld: string | null;
|
12
|
+
sld: string | null;
|
13
|
+
domain: string | null;
|
14
|
+
subdomain: string | null;
|
15
|
+
listed: boolean;
|
16
|
+
input: string;
|
17
|
+
error: undefined;
|
18
|
+
}
|
19
|
+
|
20
|
+
export interface ParseError {
|
21
|
+
input: string;
|
22
|
+
error: {
|
23
|
+
code:
|
24
|
+
| "DOMAIN_TOO_SHORT"
|
25
|
+
| "DOMAIN_TOO_LONG"
|
26
|
+
| "LABEL_STARTS_WITH_DASH"
|
27
|
+
| "LABEL_ENDS_WITH_DASH"
|
28
|
+
| "LABEL_TOO_LONG"
|
29
|
+
| "LABEL_TOO_SHORT"
|
30
|
+
| "LABEL_INVALID_CHARS";
|
31
|
+
message: string;
|
32
|
+
};
|
33
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/psl",
|
3
|
+
"version": "1.1.3",
|
4
|
+
"description": "TypeScript definitions for psl",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/psl",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "BendingBender",
|
10
|
+
"githubUsername": "BendingBender",
|
11
|
+
"url": "https://github.com/BendingBender"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"main": "",
|
15
|
+
"types": "index.d.ts",
|
16
|
+
"repository": {
|
17
|
+
"type": "git",
|
18
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
19
|
+
"directory": "types/psl"
|
20
|
+
},
|
21
|
+
"scripts": {},
|
22
|
+
"dependencies": {},
|
23
|
+
"typesPublisherContentHash": "2ac885b5f54b365a7da61c11266487ec8d0f8aa45863110a485cf4b868dde10e",
|
24
|
+
"typeScriptVersion": "4.5"
|
25
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Installation
|
2
|
+
> `npm install --save @types/qs`
|
3
|
+
|
4
|
+
# Summary
|
5
|
+
This package contains type definitions for qs (https://github.com/ljharb/qs).
|
6
|
+
|
7
|
+
# Details
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs.
|
9
|
+
|
10
|
+
### Additional Details
|
11
|
+
* Last updated: Tue, 16 Apr 2024 04:07:43 GMT
|
12
|
+
* Dependencies: none
|
13
|
+
|
14
|
+
# Credits
|
15
|
+
These definitions were written by [Roman Korneev](https://github.com/RWander), [Leon Yu](https://github.com/leonyu), [Belinda Teh](https://github.com/tehbelinda), [Melvin Lee](https://github.com/zyml), [Arturs Vonda](https://github.com/artursvonda), [Carlos Bonetti](https://github.com/CarlosBonetti), [Dan Smith](https://github.com/dpsmith3), [Hunter Perrin](https://github.com/hperrin), and [Jordan Harband](https://github.com/ljharb).
|
@@ -0,0 +1,79 @@
|
|
1
|
+
export = QueryString;
|
2
|
+
export as namespace qs;
|
3
|
+
|
4
|
+
declare namespace QueryString {
|
5
|
+
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string;
|
6
|
+
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string;
|
7
|
+
|
8
|
+
type BooleanOptional = boolean | undefined;
|
9
|
+
|
10
|
+
interface IStringifyBaseOptions {
|
11
|
+
delimiter?: string | undefined;
|
12
|
+
strictNullHandling?: boolean | undefined;
|
13
|
+
skipNulls?: boolean | undefined;
|
14
|
+
encode?: boolean | undefined;
|
15
|
+
encoder?:
|
16
|
+
| ((str: any, defaultEncoder: defaultEncoder, charset: string, type: "key" | "value") => string)
|
17
|
+
| undefined;
|
18
|
+
filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined;
|
19
|
+
arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined;
|
20
|
+
indices?: boolean | undefined;
|
21
|
+
sort?: ((a: string, b: string) => number) | undefined;
|
22
|
+
serializeDate?: ((d: Date) => string) | undefined;
|
23
|
+
format?: "RFC1738" | "RFC3986" | undefined;
|
24
|
+
encodeValuesOnly?: boolean | undefined;
|
25
|
+
addQueryPrefix?: boolean | undefined;
|
26
|
+
charset?: "utf-8" | "iso-8859-1" | undefined;
|
27
|
+
charsetSentinel?: boolean | undefined;
|
28
|
+
allowEmptyArrays?: boolean | undefined;
|
29
|
+
}
|
30
|
+
|
31
|
+
type IStringifyDynamicOptions<AllowDots extends BooleanOptional> = AllowDots extends true
|
32
|
+
? { allowDots?: AllowDots; encodeDotInKeys?: boolean }
|
33
|
+
: { allowDots?: boolean; encodeDotInKeys?: false };
|
34
|
+
|
35
|
+
type IStringifyOptions<AllowDots extends BooleanOptional = undefined> =
|
36
|
+
& IStringifyBaseOptions
|
37
|
+
& IStringifyDynamicOptions<AllowDots>;
|
38
|
+
|
39
|
+
interface IParseBaseOptions {
|
40
|
+
comma?: boolean | undefined;
|
41
|
+
delimiter?: string | RegExp | undefined;
|
42
|
+
depth?: number | false | undefined;
|
43
|
+
decoder?:
|
44
|
+
| ((str: string, defaultDecoder: defaultDecoder, charset: string, type: "key" | "value") => any)
|
45
|
+
| undefined;
|
46
|
+
arrayLimit?: number | undefined;
|
47
|
+
parseArrays?: boolean | undefined;
|
48
|
+
plainObjects?: boolean | undefined;
|
49
|
+
allowPrototypes?: boolean | undefined;
|
50
|
+
allowSparse?: boolean | undefined;
|
51
|
+
parameterLimit?: number | undefined;
|
52
|
+
strictNullHandling?: boolean | undefined;
|
53
|
+
ignoreQueryPrefix?: boolean | undefined;
|
54
|
+
charset?: "utf-8" | "iso-8859-1" | undefined;
|
55
|
+
charsetSentinel?: boolean | undefined;
|
56
|
+
interpretNumericEntities?: boolean | undefined;
|
57
|
+
allowEmptyArrays?: boolean | undefined;
|
58
|
+
duplicates?: "combine" | "first" | "last" | undefined;
|
59
|
+
}
|
60
|
+
|
61
|
+
type IParseDynamicOptions<AllowDots extends BooleanOptional> = AllowDots extends true
|
62
|
+
? { allowDots?: AllowDots; decodeDotInKeys?: boolean }
|
63
|
+
: { allowDots?: boolean; decodeDotInKeys?: false };
|
64
|
+
|
65
|
+
type IParseOptions<AllowDots extends BooleanOptional = undefined> =
|
66
|
+
& IParseBaseOptions
|
67
|
+
& IParseDynamicOptions<AllowDots>;
|
68
|
+
|
69
|
+
interface ParsedQs {
|
70
|
+
[key: string]: undefined | string | string[] | ParsedQs | ParsedQs[];
|
71
|
+
}
|
72
|
+
|
73
|
+
function stringify(obj: any, options?: IStringifyOptions<BooleanOptional>): string;
|
74
|
+
function parse(str: string, options?: IParseOptions<BooleanOptional> & { decoder?: never | undefined }): ParsedQs;
|
75
|
+
function parse(
|
76
|
+
str: string | Record<string, string>,
|
77
|
+
options?: IParseOptions<BooleanOptional>,
|
78
|
+
): { [key: string]: unknown };
|
79
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"name": "@types/qs",
|
3
|
+
"version": "6.9.15",
|
4
|
+
"description": "TypeScript definitions for qs",
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs",
|
6
|
+
"license": "MIT",
|
7
|
+
"contributors": [
|
8
|
+
{
|
9
|
+
"name": "Roman Korneev",
|
10
|
+
"githubUsername": "RWander",
|
11
|
+
"url": "https://github.com/RWander"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"name": "Leon Yu",
|
15
|
+
"githubUsername": "leonyu",
|
16
|
+
"url": "https://github.com/leonyu"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"name": "Belinda Teh",
|
20
|
+
"githubUsername": "tehbelinda",
|
21
|
+
"url": "https://github.com/tehbelinda"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"name": "Melvin Lee",
|
25
|
+
"githubUsername": "zyml",
|
26
|
+
"url": "https://github.com/zyml"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"name": "Arturs Vonda",
|
30
|
+
"githubUsername": "artursvonda",
|
31
|
+
"url": "https://github.com/artursvonda"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"name": "Carlos Bonetti",
|
35
|
+
"githubUsername": "CarlosBonetti",
|
36
|
+
"url": "https://github.com/CarlosBonetti"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"name": "Dan Smith",
|
40
|
+
"githubUsername": "dpsmith3",
|
41
|
+
"url": "https://github.com/dpsmith3"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"name": "Hunter Perrin",
|
45
|
+
"githubUsername": "hperrin",
|
46
|
+
"url": "https://github.com/hperrin"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "Jordan Harband",
|
50
|
+
"githubUsername": "ljharb",
|
51
|
+
"url": "https://github.com/ljharb"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"main": "",
|
55
|
+
"types": "index.d.ts",
|
56
|
+
"repository": {
|
57
|
+
"type": "git",
|
58
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
59
|
+
"directory": "types/qs"
|
60
|
+
},
|
61
|
+
"scripts": {},
|
62
|
+
"dependencies": {},
|
63
|
+
"typesPublisherContentHash": "1f1cbc913fb092d4ffa9230a21894f18d2826d04431244517086c6fc477dbf12",
|
64
|
+
"typeScriptVersion": "4.7"
|
65
|
+
}
|