@vibrant/types
Advanced tools
Comparing version 3.2.1-alpha.1 to 4.0.0-alpha.1
{ | ||
"name": "@vibrant/types", | ||
"version": "3.2.1-alpha.1", | ||
"version": "4.0.0-alpha.1", | ||
"description": "Common typings for vibrant", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "vite build" | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"type": "module", | ||
"types": "dist/esm/index.d.ts", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.js", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.cts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"author": { | ||
@@ -20,3 +40,5 @@ "name": "akfish", | ||
"devDependencies": { | ||
"typescript": "^3.7.2" | ||
"@tanstack/config": "^0.14.2", | ||
"typescript": "^4.5.2", | ||
"vite": "^6.0.3" | ||
}, | ||
@@ -26,3 +48,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "e667d4c12e1de66e251d451710b093e9cb4630c2" | ||
"gitHead": "968ad565c625279b5d3e2baf3e5da7f764551ade" | ||
} |
export interface Callback<T> { | ||
(err?: Error, result?: T): void | ||
(err?: Error, result?: T): void; | ||
} | ||
export type Resolvable<T> = T | Promise<T> | ||
export type Resolvable<T> = T | Promise<T>; | ||
export interface IndexedObject { | ||
[key: string]: any | ||
[key: string]: any; | ||
} | ||
export class Defer<R> { | ||
resolve: (thenableOrResult: R | Promise<R>) => void | ||
reject: (error: any) => void | ||
promise: Promise<R> | ||
constructor () { | ||
resolve: (thenableOrResult: R | Promise<R>) => void; | ||
reject: (error: any) => void; | ||
promise: Promise<R>; | ||
constructor() { | ||
this.promise = new Promise<R>((_resolve, _reject) => { | ||
this.resolve = _resolve | ||
this.reject = _reject | ||
}) | ||
this.resolve = _resolve; | ||
this.reject = _reject; | ||
}); | ||
} | ||
} | ||
export function defer<R> (): Defer<R> { | ||
return new Defer<R>() | ||
export function defer<R>(): Defer<R> { | ||
return new Defer<R>(); | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4769
9
67
1
0
Yes
3