@bunt/util
Advanced tools
Comparing version 0.24.0 to 0.24.5
@@ -8,3 +8,5 @@ "use strict"; | ||
const description = (0, is_1.isFunction)(message) ? message() : message; | ||
return (0, is_1.isInstanceOf)(description, Error) ? description : new Exception_1.AssertionError(description, details); | ||
return (0, is_1.isInstanceOf)(description, Error) | ||
? description | ||
: new Exception_1.AssertionError(description, details); | ||
} | ||
@@ -18,3 +20,3 @@ function assert(expr, message, details) { | ||
function fails(expr, message, details) { | ||
if (!!expr) { | ||
if (expr) { | ||
throw createAssertionError(message, details); | ||
@@ -21,0 +23,0 @@ } |
@@ -15,3 +15,5 @@ "use strict"; | ||
async function watch(expected, fn, tries = Infinity) { | ||
while (tries-- > 0 && expected !== await fn()) { } | ||
while (tries-- > 0 && expected !== await fn()) { | ||
// nothing | ||
} | ||
} | ||
@@ -18,0 +20,0 @@ exports.watch = watch; |
@@ -24,3 +24,3 @@ import { ILogger, ILoggerTransport, Logable, LogableType, LogFn, LoggerOwner, LogWrapFn, SeverityLevel } from "./interfaces"; | ||
message: string; | ||
args: unknown[]; | ||
args: any[]; | ||
}; | ||
@@ -27,0 +27,0 @@ protected static write(logger: Logger, severity: SeverityLevel, message: string, ...args: LogableType[]): void; |
@@ -17,3 +17,3 @@ "use strict"; | ||
// @TODO | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line | ||
const entriesReverse = (entries = []) => { | ||
@@ -20,0 +20,0 @@ return Object.assign({}, ...entries.map(([key, value]) => ({ |
{ | ||
"name": "@bunt/util", | ||
"version": "0.24.0", | ||
"version": "0.24.5", | ||
"keywords": [ | ||
@@ -29,3 +29,3 @@ "typescript" | ||
"license": "MIT", | ||
"gitHead": "870927e58da8dcc164c48be4bb13ddb171c5b1fd" | ||
"gitHead": "4f8c97568f469697b943cad1e5be299b0e08386a" | ||
} |
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
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
2177
142193