micromark-extension-gfm-autolink-literal
Advanced tools
Comparing version 1.0.4 to 1.0.5
export {gfmAutolinkLiteral} from './lib/syntax.js' | ||
export {gfmAutolinkLiteralHtml} from './lib/html.js' | ||
declare module 'micromark-util-types' { | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface Token { | ||
_gfmAutolinkLiteralWalkedInto?: boolean | ||
} | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface TokenTypeMap { | ||
literalAutolink: 'literalAutolink' | ||
literalAutolinkEmail: 'literalAutolinkEmail' | ||
literalAutolinkHttp: 'literalAutolinkHttp' | ||
literalAutolinkWww: 'literalAutolinkWww' | ||
} | ||
} |
@@ -51,2 +51,3 @@ /** | ||
/** @type {Code} */ | ||
let code = codes.digit0 | ||
@@ -348,2 +349,3 @@ | ||
if (asciiAlpha(code) && buffer.length < 5) { | ||
// @ts-expect-error: definitely number. | ||
buffer += String.fromCodePoint(code) | ||
@@ -962,4 +964,4 @@ effects.consume(code) | ||
// @ts-expect-error If we’ve seen this token, and it was marked as not | ||
// having any unbalanced bracket before it, we can exit. | ||
// If we’ve seen this token, and it was marked as not having any unbalanced | ||
// bracket before it, we can exit. | ||
if (token._gfmAutolinkLiteralWalkedInto) { | ||
@@ -972,3 +974,3 @@ result = false | ||
if (events.length > 0 && !result) { | ||
// @ts-expect-error Mark the last token as “walked into” w/o finding | ||
// Mark the last token as “walked into” w/o finding | ||
// anything. | ||
@@ -975,0 +977,0 @@ events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true |
export {gfmAutolinkLiteral} from './lib/syntax.js' | ||
export {gfmAutolinkLiteralHtml} from './lib/html.js' | ||
declare module 'micromark-util-types' { | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface Token { | ||
_gfmAutolinkLiteralWalkedInto?: boolean | ||
} | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions | ||
interface TokenTypeMap { | ||
literalAutolink: 'literalAutolink' | ||
literalAutolinkEmail: 'literalAutolinkEmail' | ||
literalAutolinkHttp: 'literalAutolinkHttp' | ||
literalAutolinkWww: 'literalAutolinkWww' | ||
} | ||
} |
@@ -67,2 +67,4 @@ /** | ||
} | ||
/** @type {Code} */ | ||
let code = 48 | ||
@@ -350,2 +352,3 @@ | ||
if (asciiAlpha(code) && buffer.length < 5) { | ||
// @ts-expect-error: definitely number. | ||
buffer += String.fromCodePoint(code) | ||
@@ -941,4 +944,4 @@ effects.consume(code) | ||
// @ts-expect-error If we’ve seen this token, and it was marked as not | ||
// having any unbalanced bracket before it, we can exit. | ||
// If we’ve seen this token, and it was marked as not having any unbalanced | ||
// bracket before it, we can exit. | ||
if (token._gfmAutolinkLiteralWalkedInto) { | ||
@@ -950,3 +953,3 @@ result = false | ||
if (events.length > 0 && !result) { | ||
// @ts-expect-error Mark the last token as “walked into” w/o finding | ||
// Mark the last token as “walked into” w/o finding | ||
// anything. | ||
@@ -953,0 +956,0 @@ events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true |
{ | ||
"name": "micromark-extension-gfm-autolink-literal", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "micromark extension to support GFM autolink literals", | ||
@@ -49,3 +49,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@types/node": "^18.0.0", | ||
"@types/node": "^20.0.0", | ||
"c8": "^7.0.0", | ||
@@ -52,0 +52,0 @@ "create-gfm-fixtures": "^1.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
66831
1975
0