Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

restructure

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restructure - npm Package Compare versions

Comparing version
0.5.0
to
0.5.1
+1
-1
package.json
{
"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

@@ -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

@@ -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)

@@ -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);

@@ -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'

@@ -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];