Skip to content

Commit 5be158e

Browse files
committed
node-simhash not support node > 6.x
1 parent ba45e4f commit 5be158e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "anyproxy",
2+
"name": "@tuofeng/anyproxy",
33
"version": "4.0.12",
44
"description": "A fully configurable HTTP/HTTPS proxy in Node.js",
55
"main": "proxy.js",
@@ -40,6 +40,7 @@
4040
"ws": "^5.1.0"
4141
},
4242
"devDependencies": {
43+
"@tuofeng/node-simhash": "^0.1.0",
4344
"antd": "^2.5.0",
4445
"autoprefixer": "^6.4.1",
4546
"babel-core": "^6.14.0",
@@ -69,7 +70,6 @@
6970
"koa-send": "^3.2.0",
7071
"less": "^2.7.1",
7172
"less-loader": "^2.2.3",
72-
"node-simhash": "^0.1.0",
7373
"nodeunit": "^0.9.1",
7474
"phantom": "^4.0.0",
7575
"postcss-loader": "^0.13.0",
@@ -95,7 +95,7 @@
9595
"lint": "eslint .",
9696
"testserver": "node test/server/startServer.js",
9797
"testOutWeb": "jasmine test/spec_outweb/test_realweb_spec.js",
98-
"buildweb": "NODE_ENV=production webpack --config web/webpack.config.js --colors",
98+
"buildweb": "NODE_ENV=production npx webpack --config web/webpack.config.js --colors",
9999
"webserver": "NODE_ENV=test webpack --config web/webpack.config.js --colors --watch",
100100
"doc:serve": "node build_scripts/prebuild-doc.js && gitbook serve ./docs-src ./docs --log debug",
101101
"doc:build": "./build_scripts/build-doc-site.sh"

test/util/CommonUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function stringSimilarity(a, b, precision = 2) {
228228
* simhash similarity
229229
*/
230230
function simHasH(a, b) {
231-
const simhash = require('node-simhash');
231+
const simhash = require('@tuofeng/node-simhash');
232232
return (simhash.compare(a, b) * 100);
233233
}
234234

0 commit comments

Comments
 (0)