website hosted
This commit is contained in:
21
node_modules/@types/sax/LICENSE
generated
vendored
Normal file
21
node_modules/@types/sax/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
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
|
||||
15
node_modules/@types/sax/README.md
generated
vendored
Normal file
15
node_modules/@types/sax/README.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/sax`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for sax (https://github.com/isaacs/sax-js).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sax.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 07 Nov 2023 15:11:36 GMT
|
||||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
||||
|
||||
# Credits
|
||||
These definitions were written by [Vincent Siao (Asana, Inc.)](https://github.com/vsiao), [Evert Pot](https://github.com/evert), [Daniel Cassidy](https://github.com/djcsdy), and [Fabian van der Veen](https://github.com/fvanderveen).
|
||||
111
node_modules/@types/sax/index.d.ts
generated
vendored
Normal file
111
node_modules/@types/sax/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
export const EVENTS: string[];
|
||||
|
||||
export interface SAXOptions {
|
||||
trim?: boolean | undefined;
|
||||
normalize?: boolean | undefined;
|
||||
lowercase?: boolean | undefined;
|
||||
xmlns?: boolean | undefined;
|
||||
noscript?: boolean | undefined;
|
||||
position?: boolean | undefined;
|
||||
}
|
||||
|
||||
export interface QualifiedName {
|
||||
name: string;
|
||||
prefix: string;
|
||||
local: string;
|
||||
uri: string;
|
||||
}
|
||||
|
||||
export interface QualifiedAttribute extends QualifiedName {
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface BaseTag {
|
||||
name: string;
|
||||
isSelfClosing: boolean;
|
||||
}
|
||||
|
||||
// Interface used when the xmlns option is set
|
||||
export interface QualifiedTag extends QualifiedName, BaseTag {
|
||||
ns: { [key: string]: string };
|
||||
attributes: { [key: string]: QualifiedAttribute };
|
||||
}
|
||||
|
||||
export interface Tag extends BaseTag {
|
||||
attributes: { [key: string]: string };
|
||||
}
|
||||
|
||||
export function parser(strict?: boolean, opt?: SAXOptions): SAXParser;
|
||||
export class SAXParser {
|
||||
constructor(strict?: boolean, opt?: SAXOptions);
|
||||
|
||||
// Methods
|
||||
end(): void;
|
||||
write(s: string): SAXParser;
|
||||
resume(): SAXParser;
|
||||
close(): SAXParser;
|
||||
flush(): void;
|
||||
|
||||
// Members
|
||||
line: number;
|
||||
column: number;
|
||||
error: Error;
|
||||
position: number;
|
||||
startTagPosition: number;
|
||||
closed: boolean;
|
||||
strict: boolean;
|
||||
opt: SAXOptions;
|
||||
tag: Tag;
|
||||
ENTITIES: { [key: string]: string };
|
||||
|
||||
// Events
|
||||
onerror(e: Error): void;
|
||||
ontext(t: string): void;
|
||||
ondoctype(doctype: string): void;
|
||||
onprocessinginstruction(node: { name: string; body: string }): void;
|
||||
onsgmldeclaration(sgmlDecl: string): void;
|
||||
onopentag(tag: Tag | QualifiedTag): void;
|
||||
onopentagstart(tag: Tag | QualifiedTag): void;
|
||||
onclosetag(tagName: string): void;
|
||||
onattribute(attr: { name: string; value: string }): void;
|
||||
oncomment(comment: string): void;
|
||||
onopencdata(): void;
|
||||
oncdata(cdata: string): void;
|
||||
onclosecdata(): void;
|
||||
onopennamespace(ns: { prefix: string; uri: string }): void;
|
||||
onclosenamespace(ns: { prefix: string; uri: string }): void;
|
||||
onend(): void;
|
||||
onready(): void;
|
||||
onscript(script: string): void;
|
||||
}
|
||||
|
||||
import stream = require("stream");
|
||||
export function createStream(strict?: boolean, opt?: SAXOptions): SAXStream;
|
||||
export class SAXStream extends stream.Duplex {
|
||||
constructor(strict?: boolean, opt?: SAXOptions);
|
||||
_parser: SAXParser;
|
||||
on(event: "text", listener: (this: this, text: string) => void): this;
|
||||
on(event: "doctype", listener: (this: this, doctype: string) => void): this;
|
||||
on(event: "processinginstruction", listener: (this: this, node: { name: string; body: string }) => void): this;
|
||||
on(event: "sgmldeclaration", listener: (this: this, sgmlDecl: string) => void): this;
|
||||
on(event: "opentag" | "opentagstart", listener: (this: this, tag: Tag | QualifiedTag) => void): this;
|
||||
on(event: "closetag", listener: (this: this, tagName: string) => void): this;
|
||||
on(event: "attribute", listener: (this: this, attr: { name: string; value: string }) => void): this;
|
||||
on(event: "comment", listener: (this: this, comment: string) => void): this;
|
||||
on(
|
||||
event: "opencdata" | "closecdata" | "end" | "ready" | "close" | "readable" | "drain" | "finish",
|
||||
listener: (this: this) => void,
|
||||
): this;
|
||||
on(event: "cdata", listener: (this: this, cdata: string) => void): this;
|
||||
on(
|
||||
event: "opennamespace" | "closenamespace",
|
||||
listener: (this: this, ns: { prefix: string; uri: string }) => void,
|
||||
): this;
|
||||
on(event: "script", listener: (this: this, script: string) => void): this;
|
||||
on(event: "data", listener: (this: this, chunk: any) => void): this;
|
||||
on(event: "error", listener: (this: this, err: Error) => void): this;
|
||||
on(event: "pipe" | "unpipe", listener: (this: this, src: stream.Readable) => void): this;
|
||||
on(event: string | symbol, listener: (this: this, ...args: any[]) => void): this;
|
||||
}
|
||||
42
node_modules/@types/sax/package.json
generated
vendored
Normal file
42
node_modules/@types/sax/package.json
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "@types/sax",
|
||||
"version": "1.2.7",
|
||||
"description": "TypeScript definitions for sax",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sax",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Vincent Siao (Asana, Inc.)",
|
||||
"githubUsername": "vsiao",
|
||||
"url": "https://github.com/vsiao"
|
||||
},
|
||||
{
|
||||
"name": "Evert Pot",
|
||||
"githubUsername": "evert",
|
||||
"url": "https://github.com/evert"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Cassidy",
|
||||
"githubUsername": "djcsdy",
|
||||
"url": "https://github.com/djcsdy"
|
||||
},
|
||||
{
|
||||
"name": "Fabian van der Veen",
|
||||
"githubUsername": "fvanderveen",
|
||||
"url": "https://github.com/fvanderveen"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/sax"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {
|
||||
"@types/node": "*"
|
||||
},
|
||||
"typesPublisherContentHash": "30ff89927c6c888d3113b0a9453e6166ca211ed5d328e36eed86e90eae239b88",
|
||||
"typeScriptVersion": "4.5"
|
||||
}
|
||||
Reference in New Issue
Block a user