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

@erboladaiorg/a-voluptatum-dicta

Package Overview
Dependencies
Maintainers
0
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erboladaiorg/a-voluptatum-dicta

FrailMap is an extension of WeakMap that supports primitive values using WeakRef. It may also set individual pairs to be strongly referenced when specified, or when WeakRef is not available.

  • 3.8.84
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

FrailMap

FrailMap is an extension of WeakMap that supports primitive values using WeakRef. It may also set individual pairs to be strongly referenced when specified, or when WeakRef is not available.

Usage

import { FrailMap } from "@erboladaiorg/a-voluptatum-dicta";

const myMap = new FrailMap<string, number>();
myMap.set("foo", "foo");
myMap.set("bar", "bar", { strong: true });

console.log(myMap.get("foo")); // -> "foo"
console.log(myMap.get("bar")); // -> "bar"

// ... After GC ...

console.log(myMap.get("foo")); // -> undefined
console.log(myMap.get("bar")); // -> "bar"

Contributing

If you find a bug or would like to suggest a new feature, please open an issue or submit a pull request on GitHub.

License

FrailMap is licensed under the MIT License. See the LICENSE file for more information.

Funding

If you find this project useful, please consider supporting it by donating to the author.

Donate

Keywords

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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