@yozora/tokenizer-autolink-extension 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, IResultOfOptionalEater, IPartialYastInlineToken, ITokenizer, IBaseInlineTokenizerProps, IYastTokenDelimiter, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
2
+ import { IResultOfRequiredEater, IResultOfOptionalEater, IPartialInlineToken, ITokenizer, IBaseInlineTokenizerProps, ITokenDelimiter, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
3
3
  import { LinkType, Link } from '@yozora/ast';
4
4
  import { AutolinkContentType } from '@yozora/tokenizer-autolink';
5
5
 
@@ -62,13 +62,13 @@ type T = LinkType;
62
62
  type INode = Link;
63
63
  declare const uniqueName = "@yozora/tokenizer-autolink-extension";
64
64
  type AutolinkExtensionContentType = AutolinkContentType | 'uri-www';
65
- interface IToken extends IPartialYastInlineToken<T> {
65
+ interface IToken extends IPartialInlineToken<T> {
66
66
  /**
67
67
  * Autolink content type: absolute uri or email.
68
68
  */
69
69
  contentType: AutolinkExtensionContentType;
70
70
  }
71
- interface IDelimiter extends IYastTokenDelimiter {
71
+ interface IDelimiter extends ITokenDelimiter {
72
72
  type: 'full';
73
73
  /**
74
74
  * Autolink and autolink-extension content types.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-autolink-extension",
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,10 +39,10 @@
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",
45
- "@yozora/tokenizer-autolink": "^2.0.6"
42
+ "@yozora/ast": "^2.1.1",
43
+ "@yozora/character": "^2.1.1",
44
+ "@yozora/core-tokenizer": "^2.1.1",
45
+ "@yozora/tokenizer-autolink": "^2.1.1"
46
46
  },
47
- "gitHead": "a263c5338103824347bac74d437051e9fbb6d791"
47
+ "gitHead": "257a36d8dc079d4ac226405c155b238e7099bcea"
48
48
  }
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
  import type { AutolinkContentType } from '@yozora/tokenizer-autolink'
11
11
 
@@ -16,14 +16,14 @@ export const uniqueName = '@yozora/tokenizer-autolink-extension'
16
16
  // Content type of autolink
17
17
  export type AutolinkExtensionContentType = AutolinkContentType | 'uri-www'
18
18
 
19
- export interface IToken extends IPartialYastInlineToken<T> {
19
+ export interface IToken extends IPartialInlineToken<T> {
20
20
  /**
21
21
  * Autolink content type: absolute uri or email.
22
22
  */
23
23
  contentType: AutolinkExtensionContentType
24
24
  }
25
25
 
26
- export interface IDelimiter extends IYastTokenDelimiter {
26
+ export interface IDelimiter extends ITokenDelimiter {
27
27
  type: 'full'
28
28
  /**
29
29
  * Autolink and autolink-extension content types.