Skip to content

Commit d64e951

Browse files
committed
Update dependencies, dev-dependencies
1 parent 041314d commit d64e951

File tree

2 files changed

+22
-30
lines changed

2 files changed

+22
-30
lines changed

package.json

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,36 @@
55
"license": "MIT",
66
"keywords": [
77
"unist",
8-
"mdast",
9-
"markdown",
10-
"retext",
11-
"natural",
12-
"language",
138
"node",
149
"find",
1510
"before",
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-before.git"
25-
},
26-
"author": {
27-
"name": "Titus Wormer",
28-
"email": "[email protected]"
29-
},
14+
"repository": "https://github.com/wooorm/unist-util-find-before",
15+
"bugs": "https://github.com/wooorm/unist-util-find-before/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-
"build-md": "mdast . --quiet",
37+
"build-md": "remark . -foq",
4938
"build-bundle": "browserify index.js --no-builtins -s unistUtilFindBefore > unist-util-find-before.js",
5039
"build-mangle": "esmangle unist-util-find-before.js > unist-util-find-before.min.js",
5140
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
@@ -65,5 +54,8 @@
6554
"ignore": [
6655
"unist-util-find-before.js"
6756
]
57+
},
58+
"remarkConfig": {
59+
"presets": "wooorm"
6860
}
6961
}

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 findBefore = require('./');
77

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

@@ -63,7 +63,7 @@ test('unist-util-find-before', function (t) {
6363
children: [{type: 'bar'}]
6464
}, 1, false);
6565
},
66-
/Expected function, string, or node as test/
66+
/Expected function, string, or object as test/
6767
);
6868

6969
assert.throws(
@@ -73,7 +73,7 @@ test('unist-util-find-before', function (t) {
7373
children: [{type: 'bar'}]
7474
}, 1, true);
7575
},
76-
/Expected function, string, or node as test/
76+
/Expected function, string, or object as test/
7777
);
7878
},
7979
'should fail for invalid `test`'

0 commit comments

Comments
 (0)