node-result
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -14,2 +14,4 @@ declare type ErrorProcessing<Error, Data> = (error: Error) => Data; | ||
onErrorAsync(func: ErrorProcessingAsync<Error, Data>): Promise<Data>; | ||
isOk(): boolean; | ||
isFail(): boolean; | ||
} | ||
@@ -16,0 +18,0 @@ /** |
@@ -47,2 +47,8 @@ "use strict"; | ||
} | ||
isOk() { | ||
return this.error !== null; | ||
} | ||
isFail() { | ||
return this.error === null; | ||
} | ||
} | ||
@@ -49,0 +55,0 @@ exports.Result = Result; |
{ | ||
"name": "node-result", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "result", | ||
@@ -19,7 +19,7 @@ "keywords": [ | ||
"linter": "npx tslint -p tsconfig.json \"src/**/*.ts\"", | ||
"preversion": "npm run linter", | ||
"version": "npm run formatter", | ||
"prepublishOnly": "npm run linter", | ||
"preversion": "npm run build", | ||
"version": "npm run build", | ||
"prepublishOnly": "npm run build", | ||
"prepare": "npm run build", | ||
"build": "npx tsc" | ||
"build": "npm run formatter && npm run linter && npx tsc" | ||
}, | ||
@@ -26,0 +26,0 @@ "files": [ |
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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
node |
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
5182
105
0