diff --git a/package.json b/package.json index 5715d600b..242eca2d0 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "url": "http://gajus.com" }, "dependencies": { - "@es-joy/jsdoccomment": "0.10.6", - "comment-parser": "1.2.1", + "@es-joy/jsdoccomment": "0.10.7", + "comment-parser": "1.2.3", "debug": "^4.3.2", "esquery": "^1.4.0", "jsdoc-type-pratt-parser": "^1.1.1", diff --git a/src/alignTransform.js b/src/alignTransform.js index c9f44dbc7..17c9a05a1 100644 --- a/src/alignTransform.js +++ b/src/alignTransform.js @@ -4,17 +4,15 @@ * It contains some customizations to align based on the tags, and some custom options. */ -import { - - // `comment-parser/util` re-exports - rewireSource, -} from '@es-joy/jsdoccomment'; import { // `comment-parser/primitives` export Markers, + util, } from 'comment-parser'; +const {rewireSource} = util; + const zeroWidth = { name: 0, start: 0, diff --git a/src/iterateJsdoc.js b/src/iterateJsdoc.js index fb5458746..9be151131 100644 --- a/src/iterateJsdoc.js +++ b/src/iterateJsdoc.js @@ -1,16 +1,18 @@ import { getReducedASTNode, getJSDocComment, commentHandler, parseComment, - - // `comment-parser/util` re-exports - rewireSpecs, - seedTokens, } from '@es-joy/jsdoccomment'; import { stringify as commentStringify, + util, } from 'comment-parser'; import _ from 'lodash'; import jsdocUtils from './jsdocUtils'; +const { + rewireSpecs, + seedTokens, +} = util; + /* const { align as commentAlign,