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 3.0.4 to 3.0.5

11

CHANGELOG.md

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

and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [3.0.5] - 2020-04-07
### Fixed
- TypeViewMixin caching custom TypeView classes.
### Changed
- Export TypedArrayView.
- Rename *View.Array into *View.ArrayClass.
## [3.0.4] - 2020-04-05
### Added
- Export TypeView class
- Add *View.Array field to allow using custom ArrayView classes
- Export TypeView class.
- Add *View.Array field to allow using custom ArrayView classes.

@@ -13,0 +20,0 @@ ## [3.0.3] - 2020-04-03

10

index.d.ts

@@ -212,3 +212,3 @@ // Type definitions for structurae

static Views: Map<string, typeof TypeView>;
static Array: typeof ArrayView;
static ArrayClass: typeof ArrayView;

@@ -236,3 +236,3 @@ get(): number;

static View: ViewType;
static Array: typeof ArrayView;
static ArrayClass: typeof ArrayView;

@@ -252,3 +252,3 @@ get(index: number): any;

declare class TypedArrayView extends ArrayView {
export declare class TypedArrayView extends ArrayView {
static View: typeof TypeView;

@@ -292,3 +292,3 @@

static Views: ViewTypes;
static Array: typeof ArrayView;
static ArrayClass: typeof ArrayView;
static types: ObjectViewTypeDefs;

@@ -320,3 +320,3 @@ static objectLength: number;

static decoder: TextDecoder;
static Array: typeof ArrayView;
static ArrayClass: typeof ArrayView;

@@ -323,0 +323,0 @@ characters(): Iterable<string>;

@@ -17,2 +17,3 @@ const BitField = require('./lib/bit-field');

const ArrayView = require('./lib/array-view');
const TypedArrayView = require('./lib/typed-array-view');
const ArrayViewMixin = require('./lib/array-view-mixin');

@@ -58,2 +59,3 @@ const { MapView, MapViewMixin } = require('./lib/map-view');

ArrayView,
TypedArrayView,
ArrayViewMixin,

@@ -60,0 +62,0 @@ MapView,

@@ -22,3 +22,3 @@ const ArrayView = require('./array-view');

}
const View = class extends ViewClass.Array {};
const View = class extends ViewClass.ArrayClass {};
View.View = ViewClass;

@@ -25,0 +25,0 @@ View.itemLength = ViewClass.objectLength || itemLength;

@@ -183,4 +183,4 @@ /**

*/
ArrayView.Array = ArrayView;
ArrayView.ArrayClass = ArrayView;
module.exports = ArrayView;

@@ -371,3 +371,3 @@ const StringView = require('./string-view');

*/
ObjectView.Array = ArrayView;
ObjectView.ArrayClass = ArrayView;

@@ -374,0 +374,0 @@ /**

@@ -391,3 +391,3 @@ const ArrayView = require('./array-view');

*/
StringView.Array = ArrayView;
StringView.ArrayClass = ArrayView;

@@ -394,0 +394,0 @@ /* istanbul ignore next */

@@ -108,3 +108,3 @@ const { typeGetters, typeSetters, typeOffsets } = require('./utilities');

*/
TypeView.Array = TypedArrayView;
TypeView.ArrayClass = TypedArrayView;

@@ -119,3 +119,3 @@ /**

const classId = type + +!!littleEndian;
const TypeViews = TypeView.Views;
const TypeViews = TypeViewClass.Views;
if (TypeViews.has(classId)) return TypeViews.get(classId);

@@ -122,0 +122,0 @@ const View = class extends TypeViewClass {};

{
"name": "structurae",
"version": "3.0.4",
"version": "3.0.5",
"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