From 22d9d0a4ed91cfc1e6194d4f8ca91fa5069ae55a Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 9 Nov 2019 20:44:58 +0100 Subject: [PATCH] Update dev-dependencies --- package.json | 25 ++++++++++---------- packages/remark-stringify/lib/macro/block.js | 2 +- packages/remark-stringify/types/test.ts | 6 ++--- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index d1eddbbf2..d9601abe3 100644 --- a/package.json +++ b/package.json @@ -12,27 +12,26 @@ "devDependencies": { "bail": "^1.0.0", "browserify": "^16.0.0", - "bundle-collapser": "^1.3.0", "camelcase": "^5.0.0", "clone": "^2.0.0", - "dtslint": "^0.9.0", - "execa": "^2.0.3", + "dtslint": "^2.0.0", + "execa": "^3.0.0", "lerna": "^3.0.0", "mdast-util-assert": "^2.0.0", "mdast-util-compact": "^1.0.0", - "mdast-zone": "^3.0.1", + "mdast-zone": "^3.0.0", "nyc": "^14.0.0", - "prettier": "^1.14.3", + "prettier": "^1.0.0", "remark-preset-wooorm": "^6.0.0", - "tape": "^4.11.0", - "tinyify": "^2.4.3", - "typescript": "^3.2.4", - "unified": "^8.3.2", - "unist-builder": "^1.0.4", - "unist-util-remove-position": "^1.1.0", + "tape": "^4.0.0", + "tinyify": "^2.0.0", + "typescript": "^3.0.0", + "unified": "^8.0.0", + "unist-builder": "^2.0.0", + "unist-util-remove-position": "^1.0.0", "unist-util-visit": "^2.0.0", - "vfile": "^4.0.1", - "wcwidth": "^1.0.1", + "vfile": "^4.0.0", + "wcwidth": "^1.0.0", "xo": "^0.25.0" }, "scripts": { diff --git a/packages/remark-stringify/lib/macro/block.js b/packages/remark-stringify/lib/macro/block.js index ede130e80..bc7130959 100644 --- a/packages/remark-stringify/lib/macro/block.js +++ b/packages/remark-stringify/lib/macro/block.js @@ -39,7 +39,7 @@ function block(node) { if ( prev.type === 'list' && ((child.type === 'list' && prev.ordered === child.ordered) || - (child.type === 'code' && (!child.lang && !fences))) + (child.type === 'code' && !child.lang && !fences)) ) { values.push(gap) } else { diff --git a/packages/remark-stringify/types/test.ts b/packages/remark-stringify/types/test.ts index d0d8b1d4f..3908dd7cb 100644 --- a/packages/remark-stringify/types/test.ts +++ b/packages/remark-stringify/types/test.ts @@ -12,9 +12,7 @@ unified().use(remarkStringify) unified().use(remarkStringify, inferredStringifyOptions) // These cannot be automatically inferred by TypeScript -const nonInferredStringifyOptions: Partial< - remarkStringify.RemarkStringifyOptions -> = { +const nonInferredStringifyOptions: Partial = { fence: '~', bullet: '+', listItemIndent: 'tab', @@ -41,7 +39,7 @@ function gap(this: unified.Processor) { function heading(this: unified.Processor, node: Node, parent?: Parent) { // FIXME: remove need for explicit 'as' casting - const headingNode = node as (Node & {depth: number}) + const headingNode = node as Node & {depth: number} return ( (headingNode.depth === 2 ? '\n' : '') + original.apply(this, [node, parent])