fingerprint-container-node-sdk2
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"_from": "fingerprint-container-node-sdk2@^0.0.2", | ||
"_id": "fingerprint-container-node-sdk2@0.0.2", | ||
"_from": "fingerprint-container-node-sdk2@^0.0.3", | ||
"_id": "fingerprint-container-node-sdk2@0.0.3", | ||
"_inBundle": false, | ||
@@ -11,8 +11,8 @@ "_integrity": "sha1-YTQi7qhfPyvFkxmF9YTbptsS184=", | ||
"registry": true, | ||
"raw": "fingerprint-container-node-sdk2@^0.0.2", | ||
"raw": "fingerprint-container-node-sdk2@^0.0.3", | ||
"name": "fingerprint-container-node-sdk2", | ||
"escapedName": "fingerprint-container-node-sdk2", | ||
"rawSpec": "^0.0.2", | ||
"rawSpec": "^0.0.3", | ||
"saveSpec": null, | ||
"fetchSpec": "^0.0.2" | ||
"fetchSpec": "^0.0.3" | ||
}, | ||
@@ -22,5 +22,5 @@ "_requiredBy": [ | ||
], | ||
"_resolved": "http://registry.npm.taobao.org/fingerprint-container-node-sdk2/download/fingerprint-container-node-sdk2-0.0.2.tgz", | ||
"_resolved": "http://registry.npm.taobao.org/fingerprint-container-node-sdk2/download/fingerprint-container-node-sdk2-0.0.3.tgz", | ||
"_shasum": "613422eea85f3f2bc5931985f584dba6db12d7ce", | ||
"_spec": "fingerprint-container-node-sdk2@^0.0.2", | ||
"_spec": "fingerprint-container-node-sdk2@^0.0.3", | ||
"_where": "D:\\project\\mis", | ||
@@ -55,3 +55,3 @@ "author": { | ||
}, | ||
"version": "0.0.2" | ||
"version": "0.0.3" | ||
} |
@@ -44,9 +44,15 @@ var util = require('util'); | ||
var serviceName = this.acceptMap[msg.service]; | ||
if (serviceName == null) { | ||
return; | ||
try{ | ||
msg.body = JSON.parse(msg.body.toString()); | ||
var serviceName = this.acceptMap[msg.service]; | ||
if (serviceName == null) { | ||
return; | ||
} | ||
var accept = this.accepts[serviceName]; | ||
accept.callback(new Response(msg, this)); | ||
}catch(e){ | ||
console.log(e); | ||
this.emit('error',e); | ||
} | ||
var accept = this.accepts[serviceName]; | ||
accept.callback(new Response(msg, this)); | ||
}; | ||
@@ -53,0 +59,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41049
1047