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

reference-map

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reference-map - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

4

index.js

@@ -46,3 +46,3 @@ module.exports = class ReferanceMap {

delete (ref) {
delete this._map[ref][this.intRefProp]
delete this._map[ref].obj[this.intRefProp]
delete this._map[ref]

@@ -56,3 +56,3 @@ }

this._map.forEach(el => {
delete el[this.intRefProp]
delete el.obj[this.intRefProp]
})

@@ -59,0 +59,0 @@ this._map = []

{
"name": "reference-map",
"version": "1.2.4",
"version": "1.2.5",
"description": "This is a simple determinstic map that maps POJOs to an integer",

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

@@ -53,1 +53,11 @@ const tape = require('tape')

})
tape('failures', t => {
const referanceMap = new ReferanceMap()
const buf = Buffer.from('hello')
referanceMap.add(buf)
referanceMap.clear()
const ref = referanceMap.add(buf)
t.deepEquals(referanceMap.get(ref), buf)
t.end()
})
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