@yozora/tokenizer-heading 2.0.6 → 2.1.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.
@@ -1,10 +1,10 @@
1
- import { IPartialYastBlockToken, IPhrasingContentLine, ITokenizer, IBaseBlockTokenizerProps, IMatchBlockHookCreator, IParseBlockHookCreator, BaseBlockTokenizer, IBlockTokenizer } from '@yozora/core-tokenizer';
1
+ import { IPartialBlockToken, IPhrasingContentLine, ITokenizer, IBaseBlockTokenizerProps, IMatchBlockHookCreator, IParseBlockHookCreator, BaseBlockTokenizer, IBlockTokenizer } from '@yozora/core-tokenizer';
2
2
  import { HeadingType, Heading } from '@yozora/ast';
3
3
 
4
4
  type T = HeadingType;
5
5
  type INode = Heading;
6
6
  declare const uniqueName = "@yozora/tokenizer-heading";
7
- interface IToken extends IPartialYastBlockToken<T> {
7
+ interface IToken extends IPartialBlockToken<T> {
8
8
  /**
9
9
  * Level of heading
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-heading",
3
- "version": "2.0.6",
3
+ "version": "2.1.0",
4
4
  "author": {
5
5
  "name": "guanghechen",
6
6
  "url": "https://github.com/guanghechen/"
@@ -39,9 +39,9 @@
39
39
  "test": "cross-env TS_NODE_FILES=true NODE_OPTIONS=--experimental-vm-modules jest --config ../../jest.config.mjs --rootDir ."
40
40
  },
41
41
  "dependencies": {
42
- "@yozora/ast": "^2.0.6",
43
- "@yozora/character": "^2.0.6",
44
- "@yozora/core-tokenizer": "^2.0.6"
42
+ "@yozora/ast": "^2.1.0",
43
+ "@yozora/character": "^2.1.0",
44
+ "@yozora/core-tokenizer": "^2.1.0"
45
45
  },
46
- "gitHead": "a263c5338103824347bac74d437051e9fbb6d791"
46
+ "gitHead": "387a68e8f9154944e2a6a7009a808d076d0659c6"
47
47
  }
package/src/match.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { HeadingType } from '@yozora/ast'
2
2
  import { AsciiCodePoint, isSpaceCharacter } from '@yozora/character'
3
3
  import type {
4
+ IBlockToken,
4
5
  IMatchBlockHookCreator,
5
6
  IPhrasingContentLine,
6
7
  IResultOfEatAndInterruptPreviousSibling,
7
8
  IResultOfEatOpener,
8
- IYastBlockToken,
9
9
  } from '@yozora/core-tokenizer'
10
10
  import { calcEndPoint, calcStartPoint, eatOptionalCharacters } from '@yozora/core-tokenizer'
11
11
  import type { IThis, IToken, T } from './types'
@@ -88,7 +88,7 @@ export const match: IMatchBlockHookCreator<T, IToken, IThis> = function () {
88
88
 
89
89
  function eatAndInterruptPreviousSibling(
90
90
  line: Readonly<IPhrasingContentLine>,
91
- prevSiblingToken: Readonly<IYastBlockToken>,
91
+ prevSiblingToken: Readonly<IBlockToken>,
92
92
  ): IResultOfEatAndInterruptPreviousSibling<T, IToken> {
93
93
  const result = eatOpener(line)
94
94
  if (result == null) return null
package/src/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Heading, HeadingType } from '@yozora/ast'
2
2
  import type {
3
3
  IBaseBlockTokenizerProps,
4
- IPartialYastBlockToken,
4
+ IPartialBlockToken,
5
5
  IPhrasingContentLine,
6
6
  ITokenizer,
7
7
  } from '@yozora/core-tokenizer'
@@ -10,7 +10,7 @@ export type T = HeadingType
10
10
  export type INode = Heading
11
11
  export const uniqueName = '@yozora/tokenizer-heading'
12
12
 
13
- export interface IToken extends IPartialYastBlockToken<T> {
13
+ export interface IToken extends IPartialBlockToken<T> {
14
14
  /**
15
15
  * Level of heading
16
16
  */