Comparing version 1.0.0 to 1.0.4
@@ -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": { | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3012
8
6
1
+ Addedload-script@^2.0.0
+ Addedload-script@2.0.0(transitive)