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.2 to 1.1.3

6

aos/AddDisposableResource.js
'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var Type = require('es-abstract/2023/Type');

@@ -9,0 +7,0 @@

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var IsCallable = require('es-abstract/2023/IsCallable');

@@ -9,0 +7,0 @@ var Type = require('es-abstract/2023/Type');

@@ -5,3 +5,3 @@ 'use strict';

var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $SyntaxError = require('es-errors/syntax');
var $Promise = GetIntrinsic('%Promise%', true);

@@ -8,0 +8,0 @@

@@ -5,4 +5,4 @@ 'use strict';

var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var $Promise = GetIntrinsic('%Promise%', true);

@@ -9,0 +9,0 @@

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var GetMethod = require('es-abstract/2023/GetMethod');

@@ -9,0 +7,0 @@ var Type = require('es-abstract/2023/Type');

@@ -7,4 +7,4 @@ 'use strict';

var $ReferenceError = GetIntrinsic('%ReferenceError%');
var $TypeError = GetIntrinsic('%TypeError%');
var $ReferenceError = require('es-errors/ref');
var $TypeError = require('es-errors/type');
var $Promise = GetIntrinsic('%Promise%', true);

@@ -11,0 +11,0 @@

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

## [v1.1.3](https://github.com/es-shims/DisposableStack/compare/v1.1.2...v1.1.3) - 2024-02-04
### Commits
- [Refactor] use `es-errors` where possible, so things that only need those do not need `get-intrinsic` [`992e541`](https://github.com/es-shims/DisposableStack/commit/992e5411254f81ed19d7bd947dfa3b1eeb5b82f4)
- [Dev Deps] use `hasown` instead of `has` [`07d41dc`](https://github.com/es-shims/DisposableStack/commit/07d41dc21c9668336db0dfc74ed134404fd1040a)
- [Dev Deps] update `aud`, `has-tostringtag`, `npmignore`, `tape` [`c7601cf`](https://github.com/es-shims/DisposableStack/commit/c7601cf6b7ab3c1a621b67bfe5eb388485438cea)
- [Deps] update `es-abstract`, `es-set-tostringtag`, `get-intrinsic`, `internal-slot` [`ae1f344`](https://github.com/es-shims/DisposableStack/commit/ae1f34464de882ca22bc46c8b3714fd5adf0baca)
- [Tests] node v18.18 ships a broken Symbol.dispose as well [`000c7aa`](https://github.com/es-shims/DisposableStack/commit/000c7aac6f81f34c076bbfdc86dfca417b84ac9a)
- [Deps] update `get-intrinsic`, `suppressed-error` [`e088c32`](https://github.com/es-shims/DisposableStack/commit/e088c329386e9b6191f125ff9df77e28fc823fd5)
- [Dev Deps] update `object-inspect`, `tape` [`745057e`](https://github.com/es-shims/DisposableStack/commit/745057e6a3288eee1916bc799212c84e5586f0ca)
- [meta] add prepublish/prepublishOnly [`f8bd449`](https://github.com/es-shims/DisposableStack/commit/f8bd449c5a0ff622861cae22828a854341909aed)
## [v1.1.2](https://github.com/es-shims/DisposableStack/compare/v1.1.1...v1.1.2) - 2023-09-13

@@ -10,0 +23,0 @@

@@ -5,7 +5,5 @@ 'use strict';

var GetIntrinsic = require('get-intrinsic');
var $ReferenceError = require('es-errors/ref');
var $TypeError = require('es-errors/type');
var $ReferenceError = GetIntrinsic('%ReferenceError%');
var $TypeError = GetIntrinsic('%TypeError%');
var Call = require('es-abstract/2023/Call');

@@ -12,0 +10,0 @@ var CreateMethodProperty = require('es-abstract/2023/CreateMethodProperty');

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

@@ -33,2 +33,4 @@ "main": "index.json",

"scripts": {
"prepublishOnly": "safe-publish-latest",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepack": "npmignore --auto --commentLines=autogenerated",

@@ -72,9 +74,10 @@ "version": "auto-changelog && git add CHANGELOG.md",

"define-properties": "^1.2.1",
"es-abstract": "^1.22.1",
"es-set-tostringtag": "^2.0.1",
"get-intrinsic": "^1.2.1",
"es-abstract": "^1.22.3",
"es-errors": "^1.2.1",
"es-set-tostringtag": "^2.0.2",
"get-intrinsic": "^1.2.3",
"globalthis": "^1.0.3",
"has-symbols": "^1.0.3",
"internal-slot": "^1.0.5",
"suppressed-error": "^1.0.2"
"internal-slot": "^1.0.6",
"suppressed-error": "^1.0.3"
},

@@ -84,3 +87,3 @@ "devDependencies": {

"@ljharb/eslint-config": "^21.1.0",
"aud": "^2.0.3",
"aud": "^2.0.4",
"auto-changelog": "^2.4.0",

@@ -90,13 +93,13 @@ "es-value-fixtures": "^1.4.2",

"foreach": "^2.0.6",
"has": "^1.0.3",
"has-tostringtag": "^1.0.0",
"has-tostringtag": "^1.0.2",
"hasown": "^2.0.0",
"in-publish": "^2.0.1",
"is-registered-symbol": "^1.0.1",
"is-symbol": "^1.0.4",
"npmignore": "^0.3.0",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"object-inspect": "^1.12.3",
"object-inspect": "^1.13.1",
"safe-publish-latest": "^2.0.0",
"semver": "^6.3.1",
"tape": "^5.6.6"
"tape": "^5.7.4"
},

@@ -103,0 +106,0 @@ "auto-changelog": {

'use strict';
var forEach = require('foreach');
var has = require('has');
var hasOwn = require('hasown');
var hasSymbols = require('has-symbols');

@@ -14,2 +14,4 @@ var hasToStringTag = require('has-tostringtag');

var brokenNodePolyfill = semver.satisfies(process.version, '^18.18 || >= 20.4');
module.exports = {

@@ -39,3 +41,3 @@ DisposableStack: function testDisposableStack(t, DisposableStack, symbolDispose) {

st.test('has accessors', { skip: !supportsDescriptors }, function (s2t) {
s2t.notOk(has(instance, 'disposed'), 'has no own `disposed` property');
s2t.notOk(hasOwn(instance, 'disposed'), 'has no own `disposed` property');

@@ -65,7 +67,7 @@ var desc = Object.getOwnPropertyDescriptor(DisposableStack.prototype, 'disposed');

st.test('no accessors', { skip: supportsDescriptors }, function (s2t) {
s2t.ok(has(instance, 'disposed'), 'has an own `disposed` property');
s2t.ok(hasOwn(instance, 'disposed'), 'has an own `disposed` property');
instance.dispose();
s2t.ok(has(instance, 'disposed'), 'still has an own `disposed` property');
s2t.ok(hasOwn(instance, 'disposed'), 'still has an own `disposed` property');
s2t.equal(instance.disposed, true, 'is now disposed');

@@ -333,3 +335,3 @@

st.test('has accessors', { skip: !supportsDescriptors }, function (s2t) {
s2t.notOk(has(instance, 'disposed'), 'has no own `disposed` property');
s2t.notOk(hasOwn(instance, 'disposed'), 'has no own `disposed` property');

@@ -357,6 +359,6 @@ var desc = Object.getOwnPropertyDescriptor(AsyncDisposableStack.prototype, 'disposed');

st.test('no accessors', { skip: supportsDescriptors }, function (s2t) {
s2t.ok(has(instance, 'disposed'), 'has an own `disposed` property');
s2t.ok(hasOwn(instance, 'disposed'), 'has an own `disposed` property');
return instance.disposeAsync().then(function () {
s2t.ok(has(instance, 'disposed'), 'still has an own `disposed` property');
s2t.ok(hasOwn(instance, 'disposed'), 'still has an own `disposed` property');
s2t.equal(instance.disposed, true, 'is now disposed');

@@ -625,3 +627,3 @@ });

'is not a registered symbol',
{ skip: semver.satisfies(process.version, '>= 20.4') ? 'node ships a Symbol.dispose polyfill that is registered' : false }
{ skip: brokenNodePolyfill ? 'node ships a Symbol.dispose polyfill that is registered' : false }
);

@@ -647,3 +649,3 @@

'is not a registered symbol',
{ skip: semver.satisfies(process.version, '>= 20.4') ? 'node ships a Symbol.dispose polyfill that is registered' : false }
{ skip: brokenNodePolyfill ? 'node ships a Symbol.dispose polyfill that is registered' : false }
);

@@ -650,0 +652,0 @@

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