UNPKG

disposablestack

Version:

An ESnext spec-compliant `DisposableStack`, `AsyncDisposableStack`, `Symbol.dispose`, and `Symbol.asyncDispose` shim/polyfill/replacement that works as far down as ES3.

127 lines (126 loc) 4.2 kB
{ "name": "disposablestack", "version": "1.1.8", "description": "An ESnext spec-compliant `DisposableStack`, `AsyncDisposableStack`, `Symbol.dispose`, and `Symbol.asyncDispose` shim/polyfill/replacement that works as far down as ES3.", "main": "index.json", "exports": { ".": "./index.json", "./auto": "./auto.js", "./shim": "./shim.js", "./DisposableStack": "./DisposableStack/index.js", "./DisposableStack/auto": "./DisposableStack/auto.js", "./DisposableStack/polyfill": "./DisposableStack/polyfill.js", "./DisposableStack/implementation": "./DisposableStack/implementation.js", "./DisposableStack/shim": "./DisposableStack/shim.js", "./AsyncDisposableStack": "./AsyncDisposableStack/index.js", "./AsyncDisposableStack/auto": "./AsyncDisposableStack/auto.js", "./AsyncDisposableStack/polyfill": "./AsyncDisposableStack/polyfill.js", "./AsyncDisposableStack/implementation": "./AsyncDisposableStack/implementation.js", "./AsyncDisposableStack/shim": "./AsyncDisposableStack/shim.js", "./Symbol.dispose": "./Symbol.dispose/index.js", "./Symbol.dispose/auto": "./Symbol.dispose/auto.js", "./Symbol.dispose/polyfill": "./Symbol.dispose/polyfill.js", "./Symbol.dispose/implementation": "./Symbol.dispose/implementation.js", "./Symbol.dispose/shim": "./Symbol.dispose/shim.js", "./Symbol.asyncDispose": "./Symbol.asyncDispose/index.js", "./Symbol.asyncDispose/auto": "./Symbol.asyncDispose/auto.js", "./Symbol.asyncDispose/polyfill": "./Symbol.asyncDispose/polyfill.js", "./Symbol.asyncDispose/implementation": "./Symbol.asyncDispose/implementation.js", "./Symbol.asyncDispose/shim": "./Symbol.asyncDispose/shim.js", "./package.json": "./package.json" }, "scripts": { "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "prepack": "npmignore --auto --commentLines=autogenerated", "version": "auto-changelog && git add CHANGELOG.md", "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", "postlint": "es-shim-api --type=multi", "lint": "eslint --ext=js,mjs .", "pretest": "npm run lint", "tests-only": "nyc tape 'test/**/*.js'", "test": "npm run tests-only", "posttest": "npx npm@'>= 10.2' audit --production" }, "repository": { "type": "git", "url": "git+https://github.com/es-shims/DisposableStack.git" }, "keywords": [ "javascript", "ecmascript", "polyfill", "shim", "DisposableStack", "AsyncDisposableStack", "dispose", "asyncDispose", "using", "resource", "management", "Symbol", "Symbol.dispose", "Symbol.asyncDispose" ], "author": "Jordan Harband <ljharb@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/es-shims/DisposableStack/issues" }, "homepage": "https://github.com/es-shims/DisposableStack#readme", "dependencies": { "call-bind": "^1.0.9", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-abstract": "^1.24.2", "es-errors": "^1.3.0", "es-set-tostringtag": "^2.1.0", "get-intrinsic": "^1.3.0", "globalthis": "^1.0.4", "has-symbols": "^1.1.0", "hasown": "^2.0.3", "internal-slot": "^1.1.0", "suppressed-error": "^1.0.3" }, "devDependencies": { "@es-shims/api": "^3.0.3", "@ljharb/eslint-config": "^22.2.3", "auto-changelog": "^2.5.0", "define-accessor-property": "^1.0.0", "encoding": "^0.1.13", "es-value-fixtures": "^1.7.1", "eslint": "^8.57.1", "foreach": "^2.0.6", "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", "has-tostringtag": "^1.0.2", "in-publish": "^2.0.1", "is-registered-symbol": "^1.1.1", "is-symbol": "^1.1.1", "npmignore": "^0.3.5", "nyc": "^10.3.2", "object-inspect": "^1.13.4", "safe-publish-latest": "^2.0.0", "semver": "^6.3.1", "tape": "^5.9.0" }, "auto-changelog": { "output": "CHANGELOG.md", "template": "keepachangelog", "unreleased": false, "commitLimit": false, "backfillLimit": false, "hideCredit": true }, "testling": { "files": "./test/index.js" }, "publishConfig": { "ignore": [ ".github/workflows" ] }, "engines": { "node": ">= 0.4" } }