sofa-hessian-node
Advanced tools
Comparing version 1.0.2 to 1.0.3
1.0.3 / 2018-10-19 | ||
================== | ||
**fixes** | ||
* [[`27ec0d5`](http://github.com/alipay/sofa-hessian-node/commit/27ec0d587d302e0bef370d46a1cbcaeea3c15061)] - fix: encode enum defaultValue issue & list generic issue (#5) (zōng yǔ <<gxcsoccer@users.noreply.github.com>>) | ||
1.0.2 / 2018-08-02 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -163,3 +163,2 @@ 'use strict'; | ||
gen('if (obj == null) { return encoder.writeNull(); }'); | ||
gen('if (encoder._checkRef(obj)) { return; }'); | ||
@@ -166,0 +165,0 @@ if (version === '1.0') { |
@@ -6,2 +6,11 @@ 'use strict'; | ||
function normalizeGeneric(type) { | ||
if (!type.generic) return ''; | ||
let str = ''; | ||
for (const item of type.generic) { | ||
str += ('#' + item.type + normalizeGeneric(item)); | ||
} | ||
return str; | ||
} | ||
function normalizeUniqId(info, version) { | ||
@@ -14,7 +23,3 @@ let type = info.type || info.$class || info.$abstractClass; | ||
let fnKey = type; | ||
if (info.generic) { | ||
for (const item of info.generic) { | ||
fnKey += ('#' + item.type); | ||
} | ||
} | ||
fnKey += normalizeGeneric(info); | ||
if (info.defaultValue) { | ||
@@ -21,0 +26,0 @@ if (!defaultValueMap.has(info.defaultValue)) { |
{ | ||
"name": "sofa-hessian-node", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "An internal improved version of Hessian powered by Ant Financial.", | ||
@@ -37,5 +37,5 @@ "main": "index.js", | ||
"@protobufjs/codegen": "^2.0.4", | ||
"debug": "^3.1.0", | ||
"hessian.js-1": "^1.8.3", | ||
"utility": "^1.14.0" | ||
"debug": "^4.1.0", | ||
"hessian.js-1": "^1.8.4", | ||
"utility": "^1.15.0" | ||
}, | ||
@@ -47,6 +47,6 @@ "devDependencies": { | ||
"contributors": "^0.5.1", | ||
"egg-bin": "^4.8.1", | ||
"egg-ci": "^1.8.0", | ||
"eslint": "^5.2.0", | ||
"eslint-config-egg": "^7.0.0", | ||
"egg-bin": "^4.9.0", | ||
"egg-ci": "^1.10.0", | ||
"eslint": "^5.7.0", | ||
"eslint-config-egg": "^7.1.0", | ||
"js-to-java": "^2.6.0", | ||
@@ -53,0 +53,0 @@ "long": "^4.0.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
31109
630
+ Addeddebug@4.3.7(transitive)
Updateddebug@^4.1.0
Updatedhessian.js-1@^1.8.4
Updatedutility@^1.15.0