Socket
Socket
Sign inDemoInstall

disposablestack

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disposablestack - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

20

aos/GetDisposeMethod.js

@@ -8,2 +8,3 @@ 'use strict';

var GetMethod = require('es-abstract/2024/GetMethod');
var NewPromiseCapability = require('es-abstract/2024/NewPromiseCapability');
var Type = require('es-abstract/2024/Type');

@@ -37,3 +38,20 @@

var O = this; // step 1.b.ii.1.a
Call(method, O); // step // step 1.b.ii.1.b
// Call(method, O); // step // step 1.b.ii.1.b
if (hint === 'ASYNC-DISPOSE') {
var promiseCapability = NewPromiseCapability(Promise); // step 1.b.ii.1.b
try {
Call(method, O); // step 1.b.ii.1.c
Call(promiseCapability['[[Resolve]]'], undefined, [undefined]); // step 1.b.ii.1.e
} catch (e) {
promiseCapability['[[Reject]]'](e); // step 1.b.ii.1.d
}
return promiseCapability['[[Promise]]']; // step 1.b.ii.1.f
}
Call(method, O);
return void undefined;
};

@@ -40,0 +58,0 @@ }

@@ -8,2 +8,17 @@ # Changelog

## [v1.1.5](https://github.com/es-shims/DisposableStack/compare/v1.1.4...v1.1.5) - 2024-05-14
### Fixed
- [Deps] add missing `call-bind` [`#6`](https://github.com/es-shims/DisposableStack/issues/6)
- [readme] Fix documentation for AsyncDisposableStack [`#4`](https://github.com/es-shims/DisposableStack/issues/4)
### Commits
- [Refactor] sync dispose used in an async dispose should reject, not throw [`f27d883`](https://github.com/es-shims/DisposableStack/commit/f27d8836c6b9c8dbac7397bf0279b4596e8004fd)
- [Deps] update `globalthis` [`4e6e8f4`](https://github.com/es-shims/DisposableStack/commit/4e6e8f4056857d1a004f069ce502b54132748378)
- [Deps] update `es-abstract` [`525559f`](https://github.com/es-shims/DisposableStack/commit/525559f10a96001d256c56ada5d176d6026740db)
- [Dev Deps] update `@es-shims/api` [`270fc1d`](https://github.com/es-shims/DisposableStack/commit/270fc1d2eb7afc5450a19f59a6919df80a7fdf22)
- [Dev Deps] add missing `has-property-descriptors` [`5d3ca89`](https://github.com/es-shims/DisposableStack/commit/5d3ca8921f7de8ed17787b5ec31b163f99c56249)
## [v1.1.4](https://github.com/es-shims/DisposableStack/compare/v1.1.3...v1.1.4) - 2024-03-22

@@ -10,0 +25,0 @@

10

package.json
{
"name": "disposablestack",
"version": "1.1.4",
"version": "1.1.5",
"description": "An ESnext spec-compliant `DisposableStack`, `AsyncDisposableStack`, `Symbol.dispose`, and `Symbol.asyncDispose` shim/polyfill/replacement that works as far down as ES3.",

@@ -72,8 +72,9 @@ "main": "index.json",

"dependencies": {
"call-bind": "^1.0.7",
"define-properties": "^1.2.1",
"es-abstract": "^1.23.2",
"es-abstract": "^1.23.3",
"es-errors": "^1.3.0",
"es-set-tostringtag": "^2.0.3",
"get-intrinsic": "^1.2.4",
"globalthis": "^1.0.3",
"globalthis": "^1.0.4",
"has-symbols": "^1.0.3",

@@ -85,3 +86,3 @@ "hasown": "^2.0.2",

"devDependencies": {
"@es-shims/api": "^2.4.2",
"@es-shims/api": "^2.5.0",
"@ljharb/eslint-config": "^21.1.0",

@@ -93,2 +94,3 @@ "aud": "^2.0.4",

"foreach": "^2.0.6",
"has-property-descriptors": "^1.0.2",
"has-tostringtag": "^1.0.2",

@@ -95,0 +97,0 @@ "in-publish": "^2.0.1",

@@ -45,3 +45,3 @@ # disposablestack <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

asyncStack.dispose();
await asyncStack.disposeAsync();

@@ -48,0 +48,0 @@ // assert disposal was done

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