Skip to content

Commit

Permalink
node-simhash not support node > 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
iwater committed Jan 7, 2019
1 parent ba45e4f commit 5be158e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "anyproxy",
"name": "@tuofeng/anyproxy",
"version": "4.0.12",
"description": "A fully configurable HTTP/HTTPS proxy in Node.js",
"main": "proxy.js",
Expand Down Expand Up @@ -40,6 +40,7 @@
"ws": "^5.1.0"
},
"devDependencies": {
"@tuofeng/node-simhash": "^0.1.0",
"antd": "^2.5.0",
"autoprefixer": "^6.4.1",
"babel-core": "^6.14.0",
Expand Down Expand Up @@ -69,7 +70,6 @@
"koa-send": "^3.2.0",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"node-simhash": "^0.1.0",
"nodeunit": "^0.9.1",
"phantom": "^4.0.0",
"postcss-loader": "^0.13.0",
Expand All @@ -95,7 +95,7 @@
"lint": "eslint .",
"testserver": "node test/server/startServer.js",
"testOutWeb": "jasmine test/spec_outweb/test_realweb_spec.js",
"buildweb": "NODE_ENV=production webpack --config web/webpack.config.js --colors",
"buildweb": "NODE_ENV=production npx webpack --config web/webpack.config.js --colors",
"webserver": "NODE_ENV=test webpack --config web/webpack.config.js --colors --watch",
"doc:serve": "node build_scripts/prebuild-doc.js && gitbook serve ./docs-src ./docs --log debug",
"doc:build": "./build_scripts/build-doc-site.sh"
Expand Down
2 changes: 1 addition & 1 deletion test/util/CommonUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function stringSimilarity(a, b, precision = 2) {
* simhash similarity
*/
function simHasH(a, b) {
const simhash = require('node-simhash');
const simhash = require('@tuofeng/node-simhash');
return (simhash.compare(a, b) * 100);
}

Expand Down

0 comments on commit 5be158e

Please sign in to comment.