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

async-listener

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-listener - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

7

glue.js
var wrap = require('shimmer').wrap;
var listeners = [];
// this only works because throwing is synchronous. It's not a good idea.
var _curData;

@@ -11,4 +13,4 @@ if (process._fatalException) {

var callbacks = listeners[i].callbacks;
// FIXME: find the actual domain element
var domain = {};
if (_curData && _curData[i]) domain = _curData[i];
if (callbacks.error && callbacks.error(domain, er)) {

@@ -29,4 +31,4 @@ process._needTickCallback();

var callbacks = listeners[i].callbacks;
// FIXME: find the actual domain element
var domain = {};
if (_curData && _curData[i]) domain = _curData[i];
if (callbacks.error && callbacks.error(domain, er)) {

@@ -60,2 +62,3 @@ process._needTickCallback();

// save returned to pass to `after`
_curData = data;
returned = original.apply(this, arguments);

@@ -62,0 +65,0 @@ return returned;

{
"name": "async-listener",
"version": "0.2.0",
"version": "0.2.1",
"description": "Polyfill exporting trevnorris's 0.11+ asyncListener API.",

@@ -5,0 +5,0 @@ "author": "Forrest L Norvell <ogd@aoaioxxysz.net>",

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