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 CHANGED
@@ -1,3 +1,7 @@
1
+ # v1.1.5
2
+ - drop unused variables
3
+ - add .editorconfig
4
+
1
5
  # v1.1.4
2
6
  - `bugfix` fix unsynced lib/
3
7
 
@@ -1,3 +1,3 @@
1
1
  import { Block } from '../primitives';
2
- export declare type Transform = (Block: any) => Block;
2
+ export declare type Transform = (Block: Block) => Block;
3
3
  export declare function flow(...transforms: Transform[]): Transform;
@@ -1,3 +1,3 @@
1
1
  import { Block } from '../primitives';
2
- export declare type Transform = (Block: any) => Block;
2
+ export declare type Transform = (Block: Block) => Block;
3
3
  export declare function flow(...transforms: Transform[]): Transform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comment-parser",
3
- "version": "1.1.4",
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.es6.json && tsc -p tsconfig.node.json && rollup -o browser/index.js -f iife --context window -n CommentParser es6/index.js",
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, seedBlock } from '../../util';
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('"');
@@ -1,4 +1,4 @@
1
- import { Spec, Line, Tokens } from '../../primitives';
1
+ import { Spec, Tokens } from '../../primitives';
2
2
  import { splitSpace } from '../../util';
3
3
  import { Tokenizer } from './index';
4
4
 
@@ -1,5 +1,5 @@
1
- import { Block, Line, Tokens } from '../primitives';
2
- import { seedTokens, isSpace } from '../util';
1
+ import { Block, Tokens } from '../primitives';
2
+ import { isSpace } from '../util';
3
3
 
4
4
  interface Width {
5
5
  line: number;
@@ -1,5 +1,5 @@
1
1
  import { Transform } from './index';
2
- import { Markers, Tokens, Block, Line } from '../primitives';
2
+ import { Markers, Block, Line } from '../primitives';
3
3
  import { rewireSource } from '../util';
4
4
 
5
5
  interface Width {
@@ -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;
@@ -1,6 +1,6 @@
1
1
  import { Block } from '../primitives';
2
2
 
3
- export type Transform = (Block) => Block;
3
+ export type Transform = (Block: Block) => Block;
4
4
 
5
5
  export function flow(...transforms: Transform[]): Transform {
6
6
  return (block: Block): Block =>
@@ -9,4 +9,4 @@
9
9
  },
10
10
  "include": ["src"],
11
11
  "exclude": ["node_modules"]
12
- }
12
+ }
@@ -9,4 +9,4 @@
9
9
  },
10
10
  "include": ["src"],
11
11
  "exclude": ["node_modules"]
12
- }
12
+ }