Comparing version 2.0.5 to 2.0.6
@@ -617,15 +617,18 @@ /* | ||
types.Reader.prototype.read_constructor = function () { | ||
types.Reader.prototype.read_constructor = function (descriptors) { | ||
var code = this.read_typecode(); | ||
if (code === 0x00) { | ||
var d = []; | ||
d.push(this.read()); | ||
var c = this.read_constructor(); | ||
while (c.descriptor) { | ||
d.push(c.descriptor); | ||
c = this.read_constructor(); | ||
if (descriptors === undefined) { | ||
descriptors = []; | ||
} | ||
return {'typecode': c.typecode, 'descriptor': d.length === 1 ? d[0] : d}; | ||
descriptors.push(this.read()); | ||
return this.read_constructor(descriptors); | ||
} else { | ||
return {'typecode': code}; | ||
if (descriptors === undefined) { | ||
return {'typecode': code}; | ||
} else if (descriptors.length === 1) { | ||
return {'typecode': code, 'descriptor': descriptors[0]}; | ||
} else { | ||
return {'typecode': code, 'descriptor': descriptors[0], 'descriptors': descriptors}; | ||
} | ||
} | ||
@@ -632,0 +635,0 @@ }; |
{ | ||
"name": "rhea", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "reactive AMQP 1.0 library", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/amqp/rhea", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1017010
15360