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

@jdion/dom

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jdion/dom - npm Package Compare versions

Comparing version 1.0.0 to 1.0.4

dist/load-script/index.d.ts

2

dist/promisify/index.d.ts

@@ -1,1 +0,1 @@

export declare const promisify: <T>(callbackBasedFunction: (...args: unknown[]) => void) => (...args: unknown[]) => Promise<T>;
export declare const promisify: <T>(cb: (...args: unknown[]) => void) => (...args: unknown[]) => Promise<T>;

@@ -1,1 +0,1 @@

export const promisify=callbackBasedFunction=>{return function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return new Promise((resolve,reject)=>{callbackBasedFunction(...args,(error,result)=>{if(error){reject(error)}else{resolve(result)}})})}};
export const promisify=cb=>{return function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return new Promise((resolve,reject)=>{cb(...args,(error,result)=>{if(error){reject(error)}else{resolve(result)}})})}};
{
"name": "@jdion/dom",
"version": "1.0.0",
"version": "1.0.4",
"description": "Collection of DOM utilities",

@@ -25,2 +25,5 @@ "author": "Jonathan Dion <jonathandionalary@gmail.com> (https://github.com/jonathandion/)",

],
"dependencies": {
"load-script": "^2.0.0"
},
"scripts": {

@@ -35,7 +38,3 @@ "dev": "concurrently 'pnpm run build:commonjs --watch' 'pnpm run types:emit --watch'",

"prebuild": "pnpm cleanup"
},
"peerDependencies": {
},
"devDependencies": {
}
}
}
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