Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-result

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-result - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

2

lib/index.d.ts

@@ -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;

10

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc