Socket
Socket
Sign inDemoInstall

micromark-extension-gfm-autolink-literal

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

micromark-extension-gfm-autolink-literal - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

15

dev/index.d.ts
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'
}
}

8

dev/lib/syntax.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc