@sub37/webvtt-adapter 1.0.3 → 1.0.4

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/lib/Token.d.ts CHANGED
@@ -9,12 +9,12 @@ type Boundaries = {
9
9
  end: number;
10
10
  };
11
11
  export declare class Token {
12
- readonly type: TokenType;
13
- readonly content: string;
14
12
  annotations: string[];
15
13
  classes: string[];
16
14
  offset: number;
17
15
  length: number;
16
+ readonly type: TokenType;
17
+ readonly content: string;
18
18
  private constructor();
19
19
  static String(content: string, boundaries: Boundaries): Token;
20
20
  static StartTag(tagName: string, boundaries: Boundaries, classes?: string[], annotations?: string[]): Token;
package/lib/Tokenizer.js CHANGED
@@ -40,7 +40,7 @@ export class Tokenizer {
40
40
  this.startPoint = 0;
41
41
  }
42
42
  static isWhitespace(character) {
43
- return character == " " || character == "\x09" || character == "\x0C";
43
+ return character == "\x20" || character == "\x09" || character == "\x0C";
44
44
  }
45
45
  static isNewLine(character) {
46
46
  return character == "\x0A";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sub37/webvtt-adapter",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A subtitles adapter for WebVTT subtitles",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -25,5 +25,5 @@
25
25
  "files": [
26
26
  "lib/**/*.+(js|d.ts)!(*.map)"
27
27
  ],
28
- "gitHead": "e4225d306701a1248847d856d4493c8bbee092bf"
28
+ "gitHead": "eddbc140e9228ac38ca5858550697545423db203"
29
29
  }