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

amfjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amfjs - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

20

lib/decoder.js

@@ -226,3 +226,3 @@ (function() {

AMF3.ARRAY.decode = function() {
var header, i, key, named, ret;
var header, i, idx, key, named, ret;
header = this.readAMFHeader();

@@ -235,2 +235,4 @@ if (!header.isDef) {

named = {};
this.amf3ObjectReferences.push(named);
idx = this.amf3ObjectReferences.length - 1;
while ((key = this.deserialize(AMF3.STRING, AMF3)) !== "") {

@@ -240,6 +242,7 @@ named[key] = this.decode(AMF3);

if (Object.keys(named).length > 0) {
this.amf3ObjectReferences.push(named);
return named;
}
this.amf3ObjectReferences.splice(idx, 1);
ret = [];
this.amf3ObjectReferences.push(ret);
i = 0;

@@ -250,3 +253,2 @@ while (i < header.value) {

}
this.amf3ObjectReferences.push(ret);
return ret;

@@ -277,3 +279,3 @@ };

AMF3.OBJECT.decode = function() {
var header, j, key, len1, ref, ret, trait, x;
var array, header, j, key, len1, object, ref, ret, trait, x;
header = this.readAMFHeader();

@@ -288,3 +290,5 @@ if (!header.isDef) {

if (trait.name === "flex.messaging.io.ArrayCollection") {
return this.decode(AMF3);
array = this.decode(AMF3);
this.amf3ObjectReferences.push(array);
return array;
}

@@ -294,5 +298,8 @@ if (!AMFDecoder.amf3Externalizables[trait.name]) {

}
return AMFDecoder.amf3Externalizables[trait.name].read(this);
object = AMFDecoder.amf3Externalizables[trait.name].read(this);
this.amf3ObjectReferences.push(object);
return object;
}
ret = new classes.Serializable(trait.name || void 0);
this.amf3ObjectReferences.push(ret);
ref = trait.staticFields;

@@ -379,2 +386,3 @@ for (j = 0, len1 = ref.length; j < len1; j++) {

ret = {};
this.amf3ObjectReferences.push(ret);
for (x = j = 0, ref = header.value - 1; 0 <= ref ? j <= ref : j >= ref; x = 0 <= ref ? ++j : --j) {

@@ -381,0 +389,0 @@ ret[JSON.stringify(this.decode(AMF3))] = this.decode(AMF3);

{
"name": "amfjs",
"version": "1.2.0",
"version": "1.3.0",
"description": "A simple AMF (ActionScript Message Format) library for Node.js",

@@ -9,3 +9,4 @@ "main": "lib/amf-js.js",

},
"dependencies": {
"devDependencies": {
"mocha": "^2.2.1",
"grunt-contrib-coffee": "^0.13.0",

@@ -16,5 +17,2 @@ "grunt-mocha-test": "^0.12.7",

},
"devDependencies": {
"mocha": "^2.2.1"
},
"scripts": {

@@ -21,0 +19,0 @@ "test": "grunt"

Sorry, the diff of this file is not supported yet

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