@getlang/utils
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -0,3 +1,6 @@ | ||
export * from './scope'; | ||
export * from './errors'; | ||
export * from './types'; | ||
export type MaybePromise<T> = T | Promise<T>; | ||
export declare function wait<V, X>(value: MaybePromise<V>, then: (value: V) => X): MaybePromise<X>; | ||
export declare function waitMap<V, X>(values: V[], mapper: (value: V) => MaybePromise<X>): MaybePromise<X[]>; |
@@ -0,1 +1,4 @@ | ||
export * from './scope'; | ||
export * from './errors'; | ||
export * from './types'; | ||
export function wait(value, then) { | ||
@@ -2,0 +5,0 @@ return value instanceof Promise ? value.then(then) : then(value); |
{ | ||
"name": "@getlang/utils", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"license": "Apache-2.0", | ||
"type": "module", | ||
"main": "dist", | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"bugs": { | ||
@@ -15,3 +17,4 @@ "url": "https://github.com/getlang-dev/get/issues" | ||
"directory": "packages/utils" | ||
} | ||
}, | ||
"homepage": "https://getlang.dev" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7838
9
251
1
1