Skip to content

Commit 2e4d6dd

Browse files
committed
Update dependencies, dev-dependencies
1 parent 12e74e4 commit 2e4d6dd

File tree

3 files changed

+26
-35
lines changed

3 files changed

+26
-35
lines changed

package.json

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,39 @@
55
"license": "MIT",
66
"keywords": [
77
"unist",
8-
"mdast",
9-
"markdown",
10-
"retext",
11-
"natural",
12-
"language",
138
"node",
149
"find",
1510
"after",
1611
"util",
1712
"utility"
1813
],
19-
"dependencies": {
20-
"unist-util-is": "^1.0.0"
21-
},
22-
"repository": {
23-
"type": "git",
24-
"url": "https://github.com/wooorm/unist-util-find-after.git"
25-
},
26-
"author": {
27-
"name": "Titus Wormer",
28-
"email": "[email protected]"
29-
},
14+
"repository": "https://github.com/wooorm/unist-util-find-after",
15+
"bugs": "https://github.com/wooorm/unist-util-find-after/issues",
16+
"author": "Titus Wormer <[email protected]> (http://wooorm.com)",
17+
"contributors": [
18+
"Titus Wormer <[email protected]> (http://wooorm.com)"
19+
],
3020
"files": [
31-
"index.js",
32-
"LICENSE"
21+
"index.js"
3322
],
23+
"dependencies": {
24+
"unist-util-is": "^2.0.0"
25+
},
3426
"devDependencies": {
35-
"browserify": "^11.0.0",
27+
"browserify": "^13.1.1",
3628
"esmangle": "^1.0.0",
37-
"mdast": "^1.0.0",
38-
"mdast-comment-config": "^1.0.0",
39-
"mdast-github": "^1.0.0",
40-
"mdast-lint": "^1.0.0",
41-
"mdast-slug": "^1.0.0",
42-
"mdast-validate-links": "^1.0.0",
29+
"remark": "^6.0.0",
30+
"remark-cli": "^2.0.0",
31+
"remark-preset-wooorm": "^1.0.0",
4332
"nyc": "^9.0.1",
4433
"tape": "^4.6.2",
4534
"xo": "^0.17.1"
4635
},
4736
"scripts": {
48-
"lint": "xo",
49-
"bundle": "browserify index.js --no-builtins -s unistUtilFindAfter > unist-util-find-after.js",
50-
"postbundle": "esmangle unist-util-find-after.js > unist-util-find-after.min.js",
51-
"build-md": "mdast . --quiet",
52-
"build": "npm run bundle && npm run build-md",
37+
"build-md": "remark . -foq",
38+
"build-bundle": "browserify index.js --no-builtins -s unistUtilFindAfter > unist-util-find-after.js",
39+
"build-mangle": "esmangle unist-util-find-after.js > unist-util-find-after.min.js",
40+
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
5341
"lint": "xo",
5442
"test-api": "node test",
5543
"test-coverage": "nyc --reporter lcov tape test.js",
@@ -66,5 +54,8 @@
6654
"ignore": [
6755
"unist-util-find-after.js"
6856
]
57+
},
58+
"remarkConfig": {
59+
"presets": "wooorm"
6960
}
7061
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ inlineCode: 'code'
5858

5959
## API
6060

61-
### findAfter(parent, index|node\[, test\])
61+
### findAfter(parent, index|node\[, test])
6262

6363
Find the first child after `index` (or `node`), that passes `test` (when
6464
given).

test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
var assert = require('assert');
44
var test = require('tape');
5-
var mdast = require('mdast');
5+
var remark = require('remark');
66
var findAfter = require('./');
77

8-
var tree = mdast().parse('Some *emphasis*, **strongness**, and `code`.');
8+
var tree = remark().parse('Some *emphasis*, **strongness**, and `code`.');
99
var paragraph = tree.children[0];
1010
var children = paragraph.children;
1111

@@ -61,7 +61,7 @@ test('unist-util-find-after', function (t) {
6161
children: [{type: 'bar'}, {type: 'baz'}]
6262
}, 0, false);
6363
},
64-
/Expected function, string, or node as test/
64+
/Expected function, string, or object as test/
6565
);
6666

6767
assert.throws(
@@ -71,7 +71,7 @@ test('unist-util-find-after', function (t) {
7171
children: [{type: 'bar'}, {type: 'baz'}]
7272
}, 0, true);
7373
},
74-
/Expected function, string, or node as test/
74+
/Expected function, string, or object as test/
7575
);
7676
},
7777
'should fail for invalid `test`'

0 commit comments

Comments
 (0)