python-struct
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -449,6 +449,9 @@ const Long = require('long'); | ||
unpack: function (format, data, checkBounds) { | ||
this.unpackFrom(format, data, checkBounds, 0) | ||
}, | ||
unpackFrom: function (format, data, checkBounds, position) { | ||
var unpacked = []; | ||
var position = 0; | ||
var decimal = null; | ||
@@ -501,3 +504,3 @@ | ||
if (checkBounds) { | ||
if (position + size >= buffer.length) { | ||
if (position + size >= data.length) { | ||
throw new Error('Reached end of buffer, can\'t unpack anymore data.'); | ||
@@ -504,0 +507,0 @@ } |
{ | ||
"name": "python-struct", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Packs/Unpacks/Measures structs according to Python's `struct` format", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"long": "^3.2.0" | ||
"long": "^4.0.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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
532
23323
1
+ Addedlong@4.0.0(transitive)
- Removedlong@3.2.0(transitive)
Updatedlong@^4.0.0