restructure
Advanced tools
+1
-1
| { | ||
| "name": "restructure", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "Declaratively encode and decode binary data", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ class Optional | ||
| if typeof condition is 'function' | ||
| condition = condition.call(parent) | ||
| condition = condition.call(parent, parent) | ||
@@ -16,3 +16,3 @@ if condition | ||
| if typeof condition is 'function' | ||
| condition = condition.call(parent) | ||
| condition = condition.call(parent, parent) | ||
@@ -27,3 +27,3 @@ if condition | ||
| if typeof condition is 'function' | ||
| condition = condition.call(parent) | ||
| condition = condition.call(parent, parent) | ||
@@ -30,0 +30,0 @@ if condition |
+3
-3
@@ -15,3 +15,3 @@ // Generated by CoffeeScript 1.7.1 | ||
| if (typeof condition === 'function') { | ||
| condition = condition.call(parent); | ||
| condition = condition.call(parent, parent); | ||
| } | ||
@@ -27,3 +27,3 @@ if (condition) { | ||
| if (typeof condition === 'function') { | ||
| condition = condition.call(parent); | ||
| condition = condition.call(parent, parent); | ||
| } | ||
@@ -41,3 +41,3 @@ if (condition) { | ||
| if (typeof condition === 'function') { | ||
| condition = condition.call(parent); | ||
| condition = condition.call(parent, parent); | ||
| } | ||
@@ -44,0 +44,0 @@ if (condition) { |
@@ -20,3 +20,3 @@ {Number:NumberT} = require './Number' | ||
| if typeof encoding is 'function' | ||
| encoding = encoding.call(parent) or 'ascii' | ||
| encoding = encoding.call(parent, parent) or 'ascii' | ||
@@ -37,3 +37,3 @@ string = stream.readString(length, encoding) | ||
| if typeof encoding is 'function' | ||
| encoding = encoding.call(parent?.val) or 'ascii' | ||
| encoding = encoding.call(parent?.val, parent?.val) or 'ascii' | ||
@@ -55,3 +55,3 @@ if encoding is 'utf16be' | ||
| if typeof encoding is 'function' | ||
| encoding = encoding.call(parent?.val) or 'ascii' | ||
| encoding = encoding.call(parent?.val, parent?.val) or 'ascii' | ||
@@ -58,0 +58,0 @@ if @length instanceof NumberT |
+3
-3
@@ -30,3 +30,3 @@ // Generated by CoffeeScript 1.7.1 | ||
| if (typeof encoding === 'function') { | ||
| encoding = encoding.call(parent) || 'ascii'; | ||
| encoding = encoding.call(parent, parent) || 'ascii'; | ||
| } | ||
@@ -47,3 +47,3 @@ string = stream.readString(length, encoding); | ||
| if (typeof encoding === 'function') { | ||
| encoding = encoding.call(parent != null ? parent.val : void 0) || 'ascii'; | ||
| encoding = encoding.call(parent != null ? parent.val : void 0, parent != null ? parent.val : void 0) || 'ascii'; | ||
| } | ||
@@ -67,3 +67,3 @@ if (encoding === 'utf16be') { | ||
| if (typeof encoding === 'function') { | ||
| encoding = encoding.call(parent != null ? parent.val : void 0) || 'ascii'; | ||
| encoding = encoding.call(parent != null ? parent.val : void 0, parent != null ? parent.val : void 0) || 'ascii'; | ||
| } | ||
@@ -70,0 +70,0 @@ if (this.length instanceof NumberT) { |
@@ -28,3 +28,3 @@ utils = require './utils' | ||
| if typeof type is 'function' | ||
| val = type.call(res) | ||
| val = type.call(res, res) | ||
| else | ||
@@ -31,0 +31,0 @@ val = type.decode(stream, res) |
+1
-1
@@ -51,3 +51,3 @@ // Generated by CoffeeScript 1.7.1 | ||
| if (typeof type === 'function') { | ||
| val = type.call(res); | ||
| val = type.call(res, res); | ||
| } else { | ||
@@ -54,0 +54,0 @@ val = type.decode(stream, res); |
+1
-1
@@ -8,3 +8,3 @@ {Number:NumberT} = require './Number' | ||
| else if typeof length is 'function' | ||
| res = length.call(parent) | ||
| res = length.call(parent, parent) | ||
@@ -11,0 +11,0 @@ else if parent and typeof length is 'string' |
+1
-1
@@ -12,3 +12,3 @@ // Generated by CoffeeScript 1.7.1 | ||
| } else if (typeof length === 'function') { | ||
| res = length.call(parent); | ||
| res = length.call(parent, parent); | ||
| } else if (parent && typeof length === 'string') { | ||
@@ -15,0 +15,0 @@ res = parent[length]; |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
127238
0.15%