@yozora/tokenizer-autolink 2.0.6 → 2.1.1

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,5 +1,5 @@
1
1
  import { INodePoint } from '@yozora/character';
2
- import { IResultOfRequiredEater, IPartialYastInlineToken, ITokenizer, IBaseInlineTokenizerProps, IYastTokenDelimiter, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
2
+ import { IResultOfRequiredEater, IPartialInlineToken, ITokenizer, IBaseInlineTokenizerProps, ITokenDelimiter, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
3
3
  import { LinkType, Link } from '@yozora/ast';
4
4
 
5
5
  /**
@@ -39,13 +39,13 @@ type AutolinkContentType = 'uri' | 'email';
39
39
  type T = LinkType;
40
40
  type INode = Link;
41
41
  declare const uniqueName = "@yozora/tokenizer-autolink";
42
- interface IToken extends IPartialYastInlineToken<T> {
42
+ interface IToken extends IPartialInlineToken<T> {
43
43
  /**
44
44
  * Autolink content type: absolute uri or email.
45
45
  */
46
46
  contentType: AutolinkContentType;
47
47
  }
48
- interface IDelimiter extends IYastTokenDelimiter {
48
+ interface IDelimiter extends ITokenDelimiter {
49
49
  type: 'full';
50
50
  /**
51
51
  * Autolink content type: absolute uri or email.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-autolink",
3
- "version": "2.0.6",
3
+ "version": "2.1.1",
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.1",
43
+ "@yozora/character": "^2.1.1",
44
+ "@yozora/core-tokenizer": "^2.1.1"
45
45
  },
46
- "gitHead": "a263c5338103824347bac74d437051e9fbb6d791"
46
+ "gitHead": "257a36d8dc079d4ac226405c155b238e7099bcea"
47
47
  }
package/src/types.ts CHANGED
@@ -2,10 +2,10 @@ import type { Link, LinkType } from '@yozora/ast'
2
2
  import type { INodePoint } from '@yozora/character'
3
3
  import type {
4
4
  IBaseInlineTokenizerProps,
5
- IPartialYastInlineToken,
5
+ IPartialInlineToken,
6
6
  IResultOfRequiredEater,
7
+ ITokenDelimiter,
7
8
  ITokenizer,
8
- IYastTokenDelimiter,
9
9
  } from '@yozora/core-tokenizer'
10
10
 
11
11
  // Content type of autolink
@@ -15,14 +15,14 @@ export type T = LinkType
15
15
  export type INode = Link
16
16
  export const uniqueName = '@yozora/tokenizer-autolink'
17
17
 
18
- export interface IToken extends IPartialYastInlineToken<T> {
18
+ export interface IToken extends IPartialInlineToken<T> {
19
19
  /**
20
20
  * Autolink content type: absolute uri or email.
21
21
  */
22
22
  contentType: AutolinkContentType
23
23
  }
24
24
 
25
- export interface IDelimiter extends IYastTokenDelimiter {
25
+ export interface IDelimiter extends ITokenDelimiter {
26
26
  type: 'full'
27
27
  /**
28
28
  * Autolink content type: absolute uri or email.