Comparing version 0.1.11 to 0.1.12
@@ -216,14 +216,13 @@ /* | ||
var o = {}; | ||
for (var i in section_names) { | ||
var key = section_names[i]; | ||
for (var key in this) { | ||
if (typeof this[key] === 'function') continue; | ||
var fields = special_sections[key]; | ||
if (fields) { | ||
for (var j in fields) { | ||
if (this[fields[j]] !== undefined) { | ||
if (o[key] === undefined) o[key] = {}; | ||
o[key][fields[j]] = this[fields[j]]; | ||
for (var i in fields) { | ||
var field = fields[i]; | ||
if (this[key][field] !== undefined && this[key][field] !== null) { | ||
o[field] = this[key][field]; | ||
} | ||
} | ||
} else if (this[key]) { | ||
} else { | ||
o[key] = this[key]; | ||
@@ -230,0 +229,0 @@ } |
{ | ||
"name" : "rhea", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "reactive AMQP 1.0 library", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/grs/rhea", |
@@ -277,3 +277,5 @@ /* | ||
})); | ||
it('message has a toString', transfer_test({message_id:'my-id', body:'hello world!'}, function(message) { | ||
assert.equal(message.toString(), '{"message_id":"my-id","body":"hello world!"}'); | ||
})); | ||
}); | ||
@@ -280,0 +282,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
336340
7284