Skip to content

Commit ba5abd5

Browse files
committed
2.1.3 require bug
1 parent f6578d1 commit ba5abd5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-word-detection",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "sensitive word detection 敏感词(违禁词)检测与替换",
55
"main": "./src/index.js",
66
"types": "./src/index.d.ts",

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function use_sys_sensitive_word (){
1414
console.log('sys word reading is completed. ')
1515
}
1616

17-
use_sys_sensitive_word.bind(binding.NodeWordDetection.prototype );
18-
binding.NodeWordDetection.prototype.use_sys_sensitive_word = use_sys_sensitive_word;
19-
module.exports.node_word_detection = new binding.NodeWordDetection();
20-
module.exports.get_instance = function() { return new binding.NodeWordDetection() ;}
17+
use_sys_sensitive_word.bind(node_word_detection.NodeWordDetection.prototype );
18+
node_word_detection.NodeWordDetection.prototype.use_sys_sensitive_word = use_sys_sensitive_word;
19+
module.exports.node_word_detection = new node_word_detection.NodeWordDetection();
20+
module.exports.get_instance = function() { return new node_word_detection.NodeWordDetection() ;}

0 commit comments

Comments
 (0)