Skip to content

Commit e011b3e

Browse files
committed
Update dev-dependencies
1 parent 8ab2618 commit e011b3e

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
"unist-util-modify-children": "^1.0.0"
2323
},
2424
"devDependencies": {
25-
"browserify": "^13.0.0",
25+
"browserify": "^14.0.0",
2626
"esmangle": "^1.0.0",
2727
"is-hidden": "^1.1.0",
2828
"negate": "^1.0.0",
29-
"nyc": "^10.0.0",
30-
"remark-cli": "^2.1.0",
31-
"remark-preset-wooorm": "^1.0.0",
32-
"retext": "^4.0.0",
33-
"retext-english": "^2.0.0",
29+
"nyc": "^11.0.0",
30+
"remark-cli": "^4.0.0",
31+
"remark-preset-wooorm": "^3.0.0",
32+
"retext": "^5.0.0",
33+
"retext-english": "^3.0.0",
3434
"tape": "^4.6.2",
35-
"xo": "^0.17.1"
35+
"xo": "^0.18.0"
3636
},
3737
"scripts": {
3838
"build-md": "remark . --quiet --frail --output",
@@ -52,6 +52,7 @@
5252
},
5353
"xo": {
5454
"space": true,
55+
"esnext": false,
5556
"rules": {
5657
"guard-for-in": "off"
5758
},
@@ -60,6 +61,8 @@
6061
]
6162
},
6263
"remarkConfig": {
63-
"presets": "wooorm"
64+
"plugins": [
65+
"preset-wooorm"
66+
]
6467
}
6568
}

test/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ var hidden = require('is-hidden');
1212
var toString = require('nlcst-to-string');
1313
var modifier = require('..');
1414

15-
var position = retext(english).use(plugin);
16-
var noPosition = retext(english).use(plugin).use(function (instance) {
17-
instance.Parser.prototype.position = false;
15+
var position = retext().use(english).use(plugin);
16+
var noPosition = retext().use(english).use(plugin).use(function () {
17+
this.Parser.prototype.position = false;
1818
});
1919

2020
test('nlcst-emoticon-modifier()', function (t) {
@@ -47,7 +47,7 @@ test('emoticons', function (t) {
4747
emoticons.forEach(function (emoticon) {
4848
emoticon.emoticons.forEach(function (value) {
4949
var fixture = 'Who doesn’t like ' + value + '?';
50-
var node = position.run(position.parse(fixture));
50+
var node = position.runSync(position.parse(fixture));
5151
var emoticon = node.children[0].children[0].children[6];
5252

5353
t.doesNotThrow(
@@ -64,8 +64,8 @@ test('emoticons', function (t) {
6464
});
6565

6666
/* Add modifier to processor. */
67-
function plugin(processor) {
68-
processor.Parser.prototype.use('tokenizeSentence', modifier);
67+
function plugin() {
68+
this.Parser.prototype.use('tokenizeSentence', modifier);
6969
}
7070

7171
/* Clone `object` but omit positional information. */

0 commit comments

Comments
 (0)