New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shigen/polyfill-symbol-dispose

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shigen/polyfill-symbol-dispose

Polyfill for Symbol.dispose and Symbol.asyncDispose

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
89
increased by56.14%
Maintainers
1
Weekly downloads
 
Created
Source

Polyfill for Symbol.dispose and Symbol.asyncDispose

NPM Version

This is a lightweight polyfill for the wellknown symbols dispose and asyncDispose as defined in the proposal for Explicit Resource Management. Both Babel and TypeScript support the using and await using Syntax but require the symbols to be defined to work. This polyfill will only create the symbols if they don't exist yet and should be imported before one of the symbols is used. Node.js implemented its own polyfill in versions 18.18 and 20.4 until official support lands in v8.

A complete polyfill of the proposal is available through the disposablestack package.

Keywords

FAQs

Package last updated on 16 Dec 2023

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