Skip to content

Commit

Permalink
Update dependencies, dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 21, 2016
1 parent 041314d commit d64e951
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 30 deletions.
44 changes: 18 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,36 @@
"license": "MIT",
"keywords": [
"unist",
"mdast",
"markdown",
"retext",
"natural",
"language",
"node",
"find",
"before",
"util",
"utility"
],
"dependencies": {
"unist-util-is": "^1.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/wooorm/unist-util-find-before.git"
},
"author": {
"name": "Titus Wormer",
"email": "tituswormer@gmail.com"
},
"repository": "https://github.com/wooorm/unist-util-find-before",
"bugs": "https://github.com/wooorm/unist-util-find-before/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
],
"files": [
"index.js",
"LICENSE"
"index.js"
],
"dependencies": {
"unist-util-is": "^2.0.0"
},
"devDependencies": {
"browserify": "^11.0.0",
"browserify": "^13.1.1",
"esmangle": "^1.0.0",
"mdast": "^1.0.0",
"mdast-comment-config": "^1.0.0",
"mdast-github": "^1.0.0",
"mdast-lint": "^1.0.0",
"mdast-slug": "^1.0.0",
"mdast-validate-links": "^1.0.0",
"remark": "^6.0.0",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"nyc": "^9.0.1",
"tape": "^4.6.2",
"xo": "^0.17.1"
},
"scripts": {
"build-md": "mdast . --quiet",
"build-md": "remark . -foq",
"build-bundle": "browserify index.js --no-builtins -s unistUtilFindBefore > unist-util-find-before.js",
"build-mangle": "esmangle unist-util-find-before.js > unist-util-find-before.min.js",
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
Expand All @@ -65,5 +54,8 @@
"ignore": [
"unist-util-find-before.js"
]
},
"remarkConfig": {
"presets": "wooorm"
}
}
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

var assert = require('assert');
var test = require('tape');
var mdast = require('mdast');
var remark = require('remark');
var findBefore = require('./');

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

Expand Down Expand Up @@ -63,7 +63,7 @@ test('unist-util-find-before', function (t) {
children: [{type: 'bar'}]
}, 1, false);
},
/Expected function, string, or node as test/
/Expected function, string, or object as test/
);

assert.throws(
Expand All @@ -73,7 +73,7 @@ test('unist-util-find-before', function (t) {
children: [{type: 'bar'}]
}, 1, true);
},
/Expected function, string, or node as test/
/Expected function, string, or object as test/
);
},
'should fail for invalid `test`'
Expand Down

0 comments on commit d64e951

Please sign in to comment.