Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Update for [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 24, 2017
1 parent 25bb895 commit 66a7d41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var NEGATIVE = 'negative';
/* Patch `polarity` and `valence` properties on nodes
* with a value and word-nodes. Then, patch the same
* properties on their parents. */
function sentiment(processor, options) {
function sentiment(options) {
return transformer;

function transformer(node) {
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"esmangle": "^1.0.1",
"gemoji": "^4.0.0",
"nyc": "^10.0.0",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"retext": "^4.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^2.0.0",
"retext": "^5.0.0",
"tape": "^4.0.0",
"xo": "^0.17.1"
},
"scripts": {
"build-list": "node script/build-list.js",
"build-md": "remark . --quiet --frail",
"build-md": "remark . -qfo",
"build-bundle": "browserify index.js --bare -s retextSentiment > retext-sentiment.js",
"build-mangle": "esmangle retext-sentiment.js > retext-sentiment.min.js",
"build": "npm run build-list && npm run build-md && npm run build-bundle && npm run build-mangle",
Expand All @@ -73,7 +73,6 @@
]
},
"remarkConfig": {
"output": true,
"presets": "wooorm"
"plugins": ["preset-wooorm"]
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ retext()
console.log(inspect(tree));
}
})
.process(
.processSync(
'I hate forgetting to bring a book somewhere I ' +
'definitely should have brought a book to. ' +
/*
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test('sentiment()', function (t) {
var tree = processor.parse(fixture);
var index = -1;

processor.run(tree);
processor.runSync(tree);

visit(tree, 'WordNode', function (node) {
var data = node.data || {};
Expand Down

0 comments on commit 66a7d41

Please sign in to comment.