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

cnysa

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cnysa - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

12

index.js

@@ -67,2 +67,8 @@ "use strict";

}
class CnysaMarkResource extends ah.AsyncResource {
constructor(tag) {
super(`(${tag})`);
this.emitDestroy();
}
}
/**

@@ -81,3 +87,3 @@ * A class that collects AsyncResource lifecycle events for visualization

this.resources = {
1: { uid: 1, type: '(initial)', parents: [], stack: [], internal: false, custom: false }
1: { uid: 1, type: '(initial)', parents: [], stack: [], internal: true, custom: false }
};

@@ -98,3 +104,3 @@ this.currentScopes = [{ id: 1, stack: [] }];

const stack = stack_trace_1.createStackTrace().slice(4);
const internal = type.startsWith('cnysa');
const internal = resource instanceof CnysaMarkResource;
const custom = resource instanceof ah.AsyncResource;

@@ -218,3 +224,3 @@ this.resources[uid] = { uid, type, parents: this.currentScopes.map(x => x.id), stack, internal, custom };

}
new ah.AsyncResource(`cnysa(${tag})`).emitDestroy();
new CnysaMarkResource(tag);
return this;

@@ -221,0 +227,0 @@ }

{
"name": "cnysa",
"version": "0.5.0",
"version": "0.5.1",
"description": "A tool for understanding async-hooks",

@@ -5,0 +5,0 @@ "main": "index.js",

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