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

dom-event-utils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-event-utils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

package.json
{
"name": "dom-event-utils",
"version": "1.0.2",
"version": "1.0.3",
"description": "Very small library that makes working with DOM event emitters API a little easier to work with",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {

@@ -7,0 +8,0 @@ "build": "tsc",

@@ -45,4 +45,8 @@ export type Callback = (...args: any[]) => void

once(target, eventName, (...args) => {
fn.apply(null, args);
resolve();
const ret = fn.apply(null, args);
if (ret && ret.then) {
return ret.then(resolve);
} else {
resolve();
}
});

@@ -49,0 +53,0 @@ }, timeout);

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