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

python-struct

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-struct - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

example.js

7

index.js

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