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

structurae

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

structurae - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## [1.2.1] - 2019-06-10
### Fix
- Correct byte offsets for strings in RecordArray
## [1.2.0] - 2019-06-10

@@ -9,0 +13,0 @@ ### Added

6

lib/record-array.js

@@ -105,3 +105,3 @@ const utilities = require('./utilities');

schema: { value: schema },
byteView: { value: new StringView(this.buffer) },
byteView: { value: new StringView(this.buffer, this.byteOffset, this.byteLength) },
});

@@ -162,3 +162,3 @@ }

getArray(offset, size, type) {
return new typedArrays[type](this.buffer, offset, size);
return new typedArrays[type](this.buffer, this.byteOffset + offset, size);
}

@@ -244,3 +244,3 @@

setArray(offset, value, size, type) {
const array = new typedArrays[type](this.buffer, offset, size);
const array = new typedArrays[type](this.buffer, this.byteOffset + offset, size);
if (value.length < array.length) array.fill(0);

@@ -247,0 +247,0 @@ array.set(value);

{
"name": "structurae",
"version": "1.2.0",
"version": "1.2.1",
"description": "Data structures for performance-sensitive modern JavaScript applications.",

@@ -5,0 +5,0 @@ "main": "index.js",

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