@vibrant/types
Advanced tools
Comparing version 4.0.0-alpha.4 to 4.0.0-beta.1
@@ -1,8 +0,6 @@ | ||
export interface Callback<T> { | ||
(err?: Error, result?: T): void; | ||
} | ||
export type Resolvable<T> = T | Promise<T>; | ||
export interface IndexedObject { | ||
[key: string]: any; | ||
} | ||
/** | ||
* An internal implementation of Promise.withResolvers | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers | ||
*/ | ||
export declare class Defer<R> { | ||
@@ -14,2 +12,6 @@ resolve: (thenableOrResult: R | Promise<R>) => void; | ||
} | ||
/** | ||
* An internal implementation of Promise.withResolvers | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers | ||
*/ | ||
export declare function defer<R>(): Defer<R>; |
{ | ||
"name": "@vibrant/types", | ||
"version": "4.0.0-alpha.4", | ||
"version": "4.0.0-beta.1", | ||
"description": "Common typings for vibrant", | ||
"author": "crutchcorn", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Vibrant-Colors/node-vibrant.git", | ||
"directory": "packages/vibrant-types" | ||
}, | ||
"homepage": "https://vibrant.dev", | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/crutchcorn" | ||
}, | ||
"scripts": { | ||
"build": "vite build", | ||
"test:eslint": "eslint ./src" | ||
"test:eslint": "eslint ./src", | ||
"test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", | ||
"test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js", | ||
"test:types:ts53": "node ../../node_modules/typescript53/lib/tsc.js", | ||
"test:types:ts54": "node ../../node_modules/typescript54/lib/tsc.js", | ||
"test:types:ts55": "node ../../node_modules/typescript55/lib/tsc.js", | ||
"test:types:ts56": "tsc", | ||
"test:build": "publint --strict" | ||
}, | ||
"devDependencies": { | ||
"@tanstack/config": "^0.15.0", | ||
"vite": "^6.0.3" | ||
}, | ||
"type": "module", | ||
@@ -31,20 +54,6 @@ "types": "dist/esm/index.d.ts", | ||
], | ||
"author": { | ||
"name": "akfish", | ||
"email": "akfish@gmail.com" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/akfish/node-vibrant/issues" | ||
}, | ||
"homepage": "https://github.com/akfish/node-vibrant", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@tanstack/config": "^0.14.2", | ||
"typescript": "^4.5.2", | ||
"vite": "^6.0.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "87c300667e339a8bc4f463d058c0e960f8d18ba9" | ||
"gitHead": "9d64d9d05b98dbb7042ecd2cbc685cc502931375" | ||
} |
@@ -1,11 +0,7 @@ | ||
export interface Callback<T> { | ||
(err?: Error, result?: T): void; | ||
} | ||
export type Resolvable<T> = T | Promise<T>; | ||
export interface IndexedObject { | ||
[key: string]: any; | ||
} | ||
/** | ||
* An internal implementation of Promise.withResolvers | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers | ||
*/ | ||
export class Defer<R> { | ||
@@ -23,4 +19,8 @@ resolve!: (thenableOrResult: R | Promise<R>) => void; | ||
/** | ||
* An internal implementation of Promise.withResolvers | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers | ||
*/ | ||
export function defer<R>(): Defer<R> { | ||
return new Defer<R>(); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6264
2
71
0
1