@hazae41/glacier
Advanced tools
Comparing version 2.0.12 to 2.0.13
@@ -1,2 +0,2 @@ | ||
import { Ok, Err, Result, Catched } from '@hazae41/result'; | ||
import { Ok, Err, Result } from '@hazae41/result'; | ||
import { Awaitable } from '../../libs/promises/promises.js'; | ||
@@ -38,3 +38,3 @@ import { DataInit, Data } from './data.js'; | ||
*/ | ||
function runAndDoubleWrap<T>(callback: () => Awaitable<T>, times?: TimesInit): Promise<Fetched<T, Catched>>; | ||
function runAndDoubleWrap<T>(callback: () => Awaitable<T>, times?: TimesInit): Promise<Fetched<T, Error>>; | ||
/** | ||
@@ -45,3 +45,3 @@ * Run a callback and wrap any returned value in Ok<T> and any thrown error in Err<Catched> | ||
*/ | ||
function runAndDoubleWrapSync<T>(callback: () => T, times?: TimesInit): Fetched<T, Catched>; | ||
function runAndDoubleWrapSync<T>(callback: () => T, times?: TimesInit): Fetched<T, Error>; | ||
/** | ||
@@ -64,3 +64,3 @@ * Run a callback and wrap any thrown error in Err<unknown> | ||
*/ | ||
function runOrDoubleWrap<F extends Fetched.Infer<F>>(callback: () => Awaitable<F>, times?: TimesInit): Promise<F | Fail<Catched>>; | ||
function runOrDoubleWrap<F extends Fetched.Infer<F>>(callback: () => Awaitable<F>, times?: TimesInit): Promise<F | Fail<Error>>; | ||
/** | ||
@@ -71,5 +71,5 @@ * Run a callback and wrap any thrown error in Err<unknown> | ||
*/ | ||
function runOrDoubleWrapSync<F extends Result.Infer<F>>(callback: () => F, times?: TimesInit): F | Fail<Catched>; | ||
function runOrDoubleWrapSync<F extends Result.Infer<F>>(callback: () => F, times?: TimesInit): F | Fail<Error>; | ||
} | ||
export { Fetched, FetchedInit }; |
{ | ||
"type": "module", | ||
"name": "@hazae41/glacier", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"author": "hazae41", | ||
@@ -30,4 +30,4 @@ "license": "MIT", | ||
"@hazae41/option": "^1.0.27", | ||
"@hazae41/plume": "^2.2.3", | ||
"@hazae41/result": "^1.1.16" | ||
"@hazae41/plume": "^2.4.1", | ||
"@hazae41/result": "^1.2.0" | ||
}, | ||
@@ -40,9 +40,9 @@ "peerDependencies": { | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@types/node": "^20.11.16", | ||
"@types/react": "^18.2.55", | ||
"@types/node": "^20.11.25", | ||
"@types/react": "^18.2.64", | ||
"rimraf": "^5.0.5", | ||
"rollup": "^4.9.6", | ||
"rollup": "^4.12.1", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-node-externals": "^7.0.1", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.4.2" | ||
}, | ||
@@ -49,0 +49,0 @@ "exports": { |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
607413
Updated@hazae41/plume@^2.4.1
Updated@hazae41/result@^1.2.0