parse5-sax-parser 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
  <br>
17
17
 
18
18
  <p align="center">
19
- 📖 <a href="https://parse5.js.org/modules/parse5_sax_parser.html"><b>Documentation</b></a> 📖
19
+ 📖 <a href="https://parse5.js.org/modules/parse5-sax-parser.html"><b>Documentation</b></a> 📖
20
20
  </p>
21
21
 
22
22
  ---
@@ -1,6 +1,4 @@
1
- /// <reference types="node" />
2
1
  import { Writable } from 'node:stream';
3
2
  export declare class DevNullStream extends Writable {
4
3
  _write(_chunk: string, _encoding: string, cb: () => void): void;
5
4
  }
6
- //# sourceMappingURL=dev-null-stream.d.ts.map
@@ -4,4 +4,3 @@ export class DevNullStream extends Writable {
4
4
  cb();
5
5
  }
6
6
  }
7
- //# sourceMappingURL=dev-null-stream.js.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Transform } from 'node:stream';
3
2
  import type { Tokenizer, TokenHandler, Token } from 'parse5';
4
3
  import { ParserFeedbackSimulator } from './parser-feedback-simulator.js';
@@ -39,6 +38,7 @@ export interface SAXParserOptions {
39
38
  */
40
39
  export declare class SAXParser extends Transform implements TokenHandler {
41
40
  protected options: SAXParserOptions;
41
+ /** @internal */
42
42
  protected parserFeedbackSimulator: ParserFeedbackSimulator;
43
43
  private pendingText;
44
44
  private lastChunkWritten;
@@ -151,4 +151,3 @@ export interface SAXParser {
151
151
  */
152
152
  on(event: string, handler: (...args: any[]) => void): this;
153
153
  }
154
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -189,4 +189,3 @@ export class SAXParser extends Transform {
189
189
  }
190
190
  }
191
191
  }
192
- //# sourceMappingURL=index.js.map
@@ -29,4 +29,3 @@ export declare class ParserFeedbackSimulator implements TokenHandler {
29
29
  /** @internal */
30
30
  onEndTag(token: Token.TagToken): void;
31
31
  }
32
- //# sourceMappingURL=parser-feedback-simulator.d.ts.map
@@ -181,4 +181,3 @@ export class ParserFeedbackSimulator {
181
181
  this.handler.onEndTag(token);
182
182
  }
183
183
  }
184
- //# sourceMappingURL=parser-feedback-simulator.js.map
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "name": "parse5-sax-parser",
3
3
  "type": "module",
4
4
  "description": "Streaming SAX-style HTML parser.",
5
- "version": "7.0.0",
5
+ "version": "8.0.0",
6
6
  "author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)",
7
7
  "contributors": "https://github.com/inikulin/parse5/graphs/contributors",
8
- "homepage": "https://github.com/inikulin/parse5",
8
+ "homepage": "https://parse5.js.org",
9
9
  "funding": "https://github.com/inikulin/parse5?sponsor=1",
10
10
  "keywords": [
11
11
  "parse5",
@@ -18,16 +18,20 @@
18
18
  "main": "dist/index.js",
19
19
  "module": "dist/index.js",
20
20
  "types": "dist/index.d.ts",
21
- "exports": "./dist/index.js",
21
+ "exports": {
22
+ ".": {
23
+ "default": "./dist/index.js"
24
+ }
25
+ },
22
26
  "dependencies": {
23
- "parse5": "^7.0.0"
27
+ "parse5": "^8.0.0"
24
28
  },
25
29
  "repository": {
26
30
  "type": "git",
27
31
  "url": "git://github.com/inikulin/parse5.git"
28
32
  },
29
33
  "files": [
30
- "dist",
31
- "!*.map"
34
+ "dist/**/*.js",
35
+ "dist/**/*.d.ts"
32
36
  ]
33
37
  }