From eac4a04c38e01cc44e08fc9c5eb432b698b47a00 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 26 Jun 2019 10:18:56 +0200 Subject: [PATCH] Update dev-dependencies --- package.json | 6 +++--- packages/remark-cli/package.json | 2 +- packages/remark-cli/test.js | 10 +++++----- packages/remark-parse/lib/tokenize/list.js | 3 +-- packages/remark-parse/package.json | 4 ++-- packages/remark-parse/readme.md | 10 +++++----- packages/remark-stringify/package.json | 2 +- 7 files changed, 18 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 6afd6bc98..c703cb008 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,14 @@ "mdast-util-assert": "^2.0.0", "mdast-util-compact": "^1.0.0", "mdast-zone": "^3.0.1", - "nyc": "^13.0.0", + "nyc": "^14.0.0", "prettier": "^1.14.3", - "remark-preset-wooorm": "^4.0.0", + "remark-preset-wooorm": "^5.0.0", "tape": "^4.5.1", "tinyify": "^2.4.3", "unist-builder": "^1.0.2", "unist-util-remove-position": "^1.1.0", - "xo": "^0.23.0" + "xo": "^0.24.0" }, "scripts": { "postinstall": "lerna bootstrap --no-ci", diff --git a/packages/remark-cli/package.json b/packages/remark-cli/package.json index 9063290aa..7bd68c440 100644 --- a/packages/remark-cli/package.json +++ b/packages/remark-cli/package.json @@ -28,7 +28,7 @@ "unified-args": "^6.0.0" }, "devDependencies": { - "execa": "^1.0.0", + "execa": "^2.0.0", "tape": "^4.9.1" }, "scripts": { diff --git a/packages/remark-cli/test.js b/packages/remark-cli/test.js index 54715ba28..4c06a0994 100644 --- a/packages/remark-cli/test.js +++ b/packages/remark-cli/test.js @@ -14,9 +14,9 @@ test('remark-cli', function(t) { st.plan(1) - execa.stdout(bin, ['--help']).then(function(result) { + execa(bin, ['--help']).then(function(result) { st.equal( - result, + result.stdout, [ 'Usage: remark [options] [path | glob ...]', '', @@ -68,14 +68,14 @@ test('remark-cli', function(t) { st.plan(2) - execa.stdout(bin, ['--version']).then(function(result) { + execa(bin, ['--version']).then(function(result) { st.ok( - /remark: \d+\.\d+\.\d+/.test(result), + /remark: \d+\.\d+\.\d+/.test(result.stdout), 'should include remark version' ) st.ok( - /remark-cli: \d+\.\d+\.\d+/.test(result), + /remark-cli: \d+\.\d+\.\d+/.test(result.stdout), 'should include remark-cli version' ) }) diff --git a/packages/remark-parse/lib/tokenize/list.js b/packages/remark-parse/lib/tokenize/list.js index 8cdefdc9c..3eef0d668 100644 --- a/packages/remark-parse/lib/tokenize/list.js +++ b/packages/remark-parse/lib/tokenize/list.js @@ -1,7 +1,5 @@ 'use strict' -/* eslint-disable max-params */ - var trim = require('trim') var repeat = require('repeat-string') var decimal = require('is-decimal') @@ -434,6 +432,7 @@ function normalListItem(ctx, value, position) { return trimmedLines.join(lineFeed) + /* eslint-disable-next-line max-params */ function replacer($0, $1, $2, $3, $4) { bullet = $1 + $2 + $3 rest = $4 diff --git a/packages/remark-parse/package.json b/packages/remark-parse/package.json index eb12799c6..0dea878fb 100644 --- a/packages/remark-parse/package.json +++ b/packages/remark-parse/package.json @@ -45,8 +45,8 @@ }, "devDependencies": { "tape": "^4.9.1", - "unified": "^7.0.0", - "vfile": "^3.0.0" + "unified": "^8.0.0", + "vfile": "^4.0.0" }, "scripts": { "test": "tape test.js" diff --git a/packages/remark-parse/readme.md b/packages/remark-parse/readme.md index a6ce80274..f997a258e 100644 --- a/packages/remark-parse/readme.md +++ b/packages/remark-parse/readme.md @@ -310,9 +310,9 @@ The parser knows two types of tokenizers: block level and inline level. Block level tokenizers are the same as inline level tokenizers, with the exception that the latter must have a [locator][]. -Tokenizers _test_ whether a document starts with a certain syntactic -entity. In _silent_ mode, they return whether that test passes. -In _normal_ mode, they consume that token, a process which is called +Tokenizers *test* whether a document starts with a certain syntactic +entity. In *silent* mode, they return whether that test passes. +In *normal* mode, they consume that token, a process which is called “eating”. Locators enable tokenizers to function faster by providing information on where the next entity may occur. @@ -343,8 +343,8 @@ information on where the next entity may occur. ###### Returns -* In _silent_ mode, whether a node can be found at the start of `value` -* In _normal_ mode, a node if it can be found at the start of `value` +* In *silent* mode, whether a node can be found at the start of `value` +* In *normal* mode, a node if it can be found at the start of `value` ### `tokenizer.locator(value, fromIndex)` diff --git a/packages/remark-stringify/package.json b/packages/remark-stringify/package.json index 76dff9edc..14609ff0e 100644 --- a/packages/remark-stringify/package.json +++ b/packages/remark-stringify/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "tape": "^4.9.1", - "unified": "^7.0.0", + "unified": "^8.0.0", "unist-builder": "^1.0.3", "unist-util-visit": "^1.4.0", "wcwidth": "^1.0.1"