Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sofa-hessian-node

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sofa-hessian-node - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

History.md
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 @@ ==================

1

lib/compile.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc