Skip to content

Commit

Permalink
Cleanup internal exports
Browse files Browse the repository at this point in the history
  • Loading branch information
puzrin committed Dec 2, 2023
1 parent 7f0f211 commit 5578e69
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
19 changes: 0 additions & 19 deletions lib/common/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -311,22 +311,3 @@ export {
escapeRE,
normalizeReference
}

export default {
lib,
assign,
isString,
has,
unescapeMd,
unescapeAll,
isValidEntityCode,
fromCodePoint,
escapeHtml,
arrayReplaceAt,
isSpace,
isWhiteSpace,
isMdAsciiPunct,
isPunctChar,
escapeRE,
normalizeReference
}
2 changes: 1 addition & 1 deletion lib/helpers/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import parseLinkLabel from './parse_link_label.mjs'
import parseLinkDestination from './parse_link_destination.mjs'
import parseLinkTitle from './parse_link_title.mjs'

export default {
export {
parseLinkLabel,
parseLinkDestination,
parseLinkTitle
Expand Down
4 changes: 2 additions & 2 deletions lib/index.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Main parser class

import utils from './common/utils.mjs'
import helpers from './helpers/index.mjs'
import * as utils from './common/utils.mjs'
import * as helpers from './helpers/index.mjs'
import Renderer from './renderer.mjs'
import ParserCore from './parser_core.mjs'
import ParserBlock from './parser_block.mjs'
Expand Down
2 changes: 1 addition & 1 deletion test/utils.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert } from 'chai'
import utils from '../lib/common/utils.mjs'
import * as utils from '../lib/common/utils.mjs'


describe('Utils', function () {
Expand Down

0 comments on commit 5578e69

Please sign in to comment.