@celo/base
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -28,1 +28,3 @@ export interface OkResult<TResult> { | ||
export declare function parseJsonAsResult(data: string): OkResult<any> | ErrorResult<JSONParseError>; | ||
export declare function isOk<TResult, TError extends Error>(result: Result<TResult, TError>): result is OkResult<TResult>; | ||
export declare function isErr<TResult, TError extends Error>(result: Result<TResult, TError>): result is ErrorResult<TError>; |
@@ -137,2 +137,10 @@ "use strict"; | ||
exports.parseJsonAsResult = parseJsonAsResult; | ||
function isOk(result) { | ||
return result.ok; | ||
} | ||
exports.isOk = isOk; | ||
function isErr(result) { | ||
return !result.ok; | ||
} | ||
exports.isErr = isErr; | ||
//# sourceMappingURL=result.js.map |
{ | ||
"name": "@celo/base", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Celo base common utils, no dependencies", | ||
@@ -5,0 +5,0 @@ "author": "Celo", |
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
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
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
192730
94
2948
1