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

@stoplight/lifecycle

Package Overview
Dependencies
Maintainers
28
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/lifecycle - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

19

activatable/activatable.js

@@ -62,5 +62,20 @@ "use strict";

return tslib_1.__awaiter(this, void 0, void 0, function* () {
for (const activatable of this.activatables) {
yield activatable.activate();
const activated = [];
try {
for (const activatable of this.activatables) {
yield activatable.activate();
activated.push(activatable);
}
}
catch (e) {
activated.reverse();
for (const activatable of activated) {
try {
yield activatable.deactivate();
}
catch (_) {
}
}
throw e;
}
});

@@ -67,0 +82,0 @@ }

2

package.json
{
"name": "@stoplight/lifecycle",
"version": "2.2.1",
"version": "2.2.2",
"description": "Event and disposable helpers.",

@@ -5,0 +5,0 @@ "keywords": [],

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