Skip to content

Commit

Permalink
Deps bump
Browse files Browse the repository at this point in the history
  • Loading branch information
puzrin committed Dec 1, 2023
1 parent e4a1712 commit 6cbb5b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions lib/common/utils.mjs
Original file line number Diff line number Diff line change
@@ -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) }

Expand Down Expand Up @@ -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)
}


Expand Down
2 changes: 1 addition & 1 deletion lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion support/demo_template/index.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env browser */
/* global $, _ */

import mdurl from 'mdurl'
import * as mdurl from 'mdurl'
import hljs from 'highlight.js'

// plugins
Expand Down

0 comments on commit 6cbb5b2

Please sign in to comment.