Comparing version 1.2.0 to 1.3.0
@@ -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
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
75170
0
1132
5
- Removedchai@^2.1.1
- Removedgrunt@^0.4.5
- Removedgrunt-contrib-coffee@^0.13.0
- Removedgrunt-mocha-test@^0.12.7
- Removedabbrev@1.1.1(transitive)
- Removedansi-colors@4.1.3(transitive)
- Removedansi-regex@0.2.15.0.1(transitive)
- Removedansi-styles@1.1.04.3.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedargparse@0.1.162.0.1(transitive)
- Removedassertion-error@1.0.0(transitive)
- Removedasync@0.1.22(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbrowser-stdout@1.3.1(transitive)
- Removedcamelcase@6.3.0(transitive)
- Removedchai@2.3.0(transitive)
- Removedchalk@0.5.14.1.2(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedcliui@7.0.4(transitive)
- Removedcoffee-script@1.3.31.9.3(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcolors@0.6.2(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removeddebug@4.3.7(transitive)
- Removeddecamelize@4.0.0(transitive)
- Removeddeep-eql@0.1.3(transitive)
- Removeddiff@5.2.0(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescalade@3.2.0(transitive)
- Removedescape-string-regexp@1.0.54.0.0(transitive)
- Removedesprima@1.0.4(transitive)
- Removedeventemitter2@0.4.14(transitive)
- Removedexit@0.1.2(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedfind-up@5.0.0(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removedflat@5.0.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@3.1.213.2.118.1.0(transitive)
- Removedglob-parent@5.1.2(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedgrunt@0.4.5(transitive)
- Removedgrunt-contrib-coffee@0.13.0(transitive)
- Removedgrunt-legacy-log@0.1.3(transitive)
- Removedgrunt-legacy-log-utils@0.1.1(transitive)
- Removedgrunt-legacy-util@0.2.0(transitive)
- Removedgrunt-mocha-test@0.12.7(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhe@1.2.0(transitive)
- Removedhooker@0.2.3(transitive)
- Removediconv-lite@0.2.11(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@1.0.22.0.4(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedis-plain-obj@2.1.0(transitive)
- Removedis-unicode-supported@0.1.0(transitive)
- Removedjs-yaml@2.0.54.1.0(transitive)
- Removedlocate-path@6.0.0(transitive)
- Removedlodash@0.9.22.4.23.10.1(transitive)
- Removedlog-symbols@4.1.0(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.2.140.3.05.1.6(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmocha@11.0.0(transitive)
- Removedms@2.1.3(transitive)
- Removednopt@1.0.10(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-limit@3.1.0(transitive)
- Removedp-locate@5.0.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedrimraf@2.2.8(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedserialize-javascript@6.0.2(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@0.3.06.0.1(transitive)
- Removedstrip-json-comments@3.1.1(transitive)
- Removedsupports-color@0.2.07.2.08.1.1(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtype-detect@0.1.1(transitive)
- Removedunderscore@1.7.0(transitive)
- Removedunderscore.string@2.2.12.3.32.4.0(transitive)
- Removeduri-path@0.0.2(transitive)
- Removedwhich@1.0.9(transitive)
- Removedworkerpool@6.5.1(transitive)
- Removedwrap-ansi@7.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedy18n@5.0.8(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
- Removedyargs-unparser@2.0.0(transitive)
- Removedyocto-queue@0.1.0(transitive)