From 6cbb5b2233c4f30321b31bd3c4fc0b0fce868a1d Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Sat, 2 Dec 2023 00:02:05 +0200 Subject: [PATCH] Deps bump --- lib/common/utils.mjs | 7 +++---- lib/index.mjs | 2 +- package.json | 6 +++--- support/demo_template/index.mjs | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/common/utils.mjs b/lib/common/utils.mjs index fb7881e..e5953a1 100644 --- a/lib/common/utils.mjs +++ b/lib/common/utils.mjs @@ -1,10 +1,9 @@ // Utilities // -import mdurl from 'mdurl' -import ucmicro from 'uc.micro' +import * as mdurl from 'mdurl' +import * as ucmicro from 'uc.micro' import { decodeHTML } from 'entities' -import UNICODE_PUNCT_RE from 'uc.micro/categories/P/regex.js' function _class (obj) { return Object.prototype.toString.call(obj) } @@ -184,7 +183,7 @@ function isWhiteSpace (code) { // Currently without astral characters support. function isPunctChar (ch) { - return UNICODE_PUNCT_RE.test(ch) + return ucmicro.P.test(ch) } diff --git a/lib/index.mjs b/lib/index.mjs index 343712d..2fffba4 100644 --- a/lib/index.mjs +++ b/lib/index.mjs @@ -7,7 +7,7 @@ import ParserCore from './parser_core.mjs' import ParserBlock from './parser_block.mjs' import ParserInline from './parser_inline.mjs' import LinkifyIt from 'linkify-it' -import mdurl from 'mdurl' +import * as mdurl from 'mdurl' import punycode from 'punycode.js' import cfg_default from './presets/default.mjs' diff --git a/package.json b/package.json index a2d2c27..df46113 100644 --- a/package.json +++ b/package.json @@ -48,10 +48,10 @@ "dependencies": { "argparse": "^2.0.1", "entities": "^4.4.0", - "linkify-it": "^4.0.1", - "mdurl": "^1.0.1", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", "punycode.js": "^2.3.1", - "uc.micro": "^1.0.5" + "uc.micro": "^2.0.0" }, "devDependencies": { "@rollup/plugin-babel": "^6.0.4", diff --git a/support/demo_template/index.mjs b/support/demo_template/index.mjs index 90645f4..486c2a3 100644 --- a/support/demo_template/index.mjs +++ b/support/demo_template/index.mjs @@ -1,7 +1,7 @@ /* eslint-env browser */ /* global $, _ */ -import mdurl from 'mdurl' +import * as mdurl from 'mdurl' import hljs from 'highlight.js' // plugins