Skip to content

Commit

Permalink
fix: update jsdoccomment and jsdoc-type-pratt-parser
Browse files Browse the repository at this point in the history
- type parser update allows semi-colon as TypeScript object entry separator
- jsdocomment update allows execution by older Node versions, e.g., within Atom (though `engines` still set at stricter value of `comment-parser`)
  • Loading branch information
brettz9 committed Jul 27, 2021
1 parent 508bf18 commit 80334d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -5,11 +5,11 @@
"url": "http://gajus.com"
},
"dependencies": {
"@es-joy/jsdoccomment": "0.10.3",
"@es-joy/jsdoccomment": "0.10.6",
"comment-parser": "1.2.1",
"debug": "^4.3.2",
"esquery": "^1.4.0",
"jsdoc-type-pratt-parser": "^1.0.4",
"jsdoc-type-pratt-parser": "^1.1.1",
"lodash": "^4.17.21",
"regextras": "^0.8.0",
"semver": "^7.3.5",
Expand Down
12 changes: 8 additions & 4 deletions src/alignTransform.js
Expand Up @@ -5,11 +5,15 @@
*/

import {
Markers,
} from 'comment-parser/primitives';
import {

// `comment-parser/util` re-exports
rewireSource,
} from 'comment-parser/util';
} from '@es-joy/jsdoccomment';
import {

// `comment-parser/primitives` export
Markers,
} from 'comment-parser';

const zeroWidth = {
name: 0,
Expand Down
8 changes: 4 additions & 4 deletions src/iterateJsdoc.js
@@ -1,13 +1,13 @@
import {
getReducedASTNode, getJSDocComment, commentHandler, parseComment,

// `comment-parser/util` re-exports
rewireSpecs,
seedTokens,
} from '@es-joy/jsdoccomment';
import {
stringify as commentStringify,
} from 'comment-parser';
import {
rewireSpecs,
seedTokens,
} from 'comment-parser/util';
import _ from 'lodash';
import jsdocUtils from './jsdocUtils';

Expand Down

0 comments on commit 80334d8

Please sign in to comment.