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

weak-ref-collections

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weak-ref-collections - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

11

index.js

@@ -1,6 +0,1 @@

// In Node.js this is packaged into a module
// In the browser exports are bound directly to the window namespace
const global =
typeof exports !== 'undefined' && exports !== null ? exports : this
class WeakRefMap extends Map {

@@ -233,3 +228,5 @@ // Delete the corresponding key when object is collected

global.WeakRefMap = WeakRefMap
global.WeakRefSet = WeakRefSet
export {
WeakRefMap,
WeakRefSet
}
{
"name": "weak-ref-collections",
"version": "1.2.2",
"version": "1.2.3",
"description": "Iterable WeakMaps and WeakSets. Provides WeakRefMap and WeakRefSet which store values using WeakRefs and clean themselves up when garbage collected.",

@@ -33,3 +33,4 @@ "main": "index.js",

},
"homepage": "https://github.com/fynyky/weak-ref-collections#readme"
"homepage": "https://github.com/fynyky/weak-ref-collections#readme",
"type": "module"
}
/* eslint-env mocha */
const assert = require('assert')
const { WeakRefMap, WeakRefSet } = require('./index.js')
import assert from 'assert'
import { WeakRefMap, WeakRefSet } from './index.js'

@@ -5,0 +5,0 @@ describe('WeakRefMap', () => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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