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

worker_map

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worker_map - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "worker_map",
"description": "Tread-safe map structure for worker_threads.",
"version": "0.0.6",
"version": "0.0.7",
"main": "./src/worker_map.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -9,3 +9,2 @@ const decoder = new TextDecoder("utf8");

const MAP_SIZE = Symbol("MAP_SIZE");
const PLAIN_OBJECT = Symbol("PLAIN_OBJECT");

@@ -95,3 +94,2 @@ const VALUE_BUFFER = Symbol("VALUE_BUFFER");

this[VALUE_BUFFER] = valueBuffer;
this[MAP_SIZE] = this.keys().length;

@@ -124,3 +122,2 @@ return this;

this[VALUE_BUFFER] = valueBuffer;
this[MAP_SIZE] = 0;

@@ -152,4 +149,2 @@ return this;

this[MAP_SIZE] = Object.keys(sharedObject).length;
unlock(valueBuffer);

@@ -190,4 +185,2 @@

this[MAP_SIZE] = Object.keys(sharedObject).length;
return true;

@@ -197,3 +190,6 @@ };

WorkerMap.prototype.size = function () {
return this[MAP_SIZE];
const valueBuffer = this[VALUE_BUFFER];
const sharedObject = safeLoadSharedObject(valueBuffer);
return Object.keys(sharedObject).length;
};

@@ -200,0 +196,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