comment-parser 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/es6/transforms/index.d.ts +1 -1
- package/lib/transforms/index.d.ts +1 -1
- package/package.json +4 -3
- package/src/parser/tokenizers/name.ts +1 -1
- package/src/parser/tokenizers/type.ts +1 -1
- package/src/stringifier/inspect.ts +2 -2
- package/src/transforms/align.ts +1 -1
- package/src/transforms/indent.ts +1 -1
- package/src/transforms/index.ts +1 -1
- package/{tsconfig.es6.json → tsconfig.json} +1 -1
- package/tsconfig.node.json +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comment-parser",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Generic JSDoc-like comment parser",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
"node": ">= 10.0.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "rimraf lib es6 browser; tsc -p tsconfig.
|
|
23
|
+
"build": "rimraf lib es6 browser; tsc -p tsconfig.json && tsc -p tsconfig.node.json && rollup -o browser/index.js -f iife --context window -n CommentParser es6/index.js",
|
|
24
24
|
"format": "prettier --write src/ tests/",
|
|
25
25
|
"pretest": "rimraf coverage; npm run build",
|
|
26
|
-
"test": "prettier --check src/ tests/ && jest --verbose"
|
|
26
|
+
"test": "prettier --check src/ tests/ && jest --verbose",
|
|
27
|
+
"preversion": "npm run build"
|
|
27
28
|
},
|
|
28
29
|
"repository": {
|
|
29
30
|
"type": "git",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Spec, Line } from '../../primitives';
|
|
2
|
-
import { splitSpace, isSpace
|
|
2
|
+
import { splitSpace, isSpace } from '../../util';
|
|
3
3
|
import { Tokenizer } from './index';
|
|
4
4
|
|
|
5
5
|
const isQuoted = (s: string) => s && s.startsWith('"') && s.endsWith('"');
|
package/src/transforms/align.ts
CHANGED
package/src/transforms/indent.ts
CHANGED
|
@@ -9,7 +9,7 @@ const push = (offset: number) => {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default function indent(pos: number): Transform {
|
|
12
|
-
let shift: (string) => string;
|
|
12
|
+
let shift: (string: string) => string;
|
|
13
13
|
const pad = (start: string) => {
|
|
14
14
|
if (shift === undefined) {
|
|
15
15
|
const offset = pos - start.length;
|
package/src/transforms/index.ts
CHANGED
package/tsconfig.node.json
CHANGED