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 8.0.0 to 8.1.0

1

lib/index.d.ts

@@ -16,2 +16,3 @@ export { ResultError } from 'node-result-error';

isFail(): boolean;
isOkAndUnwrap(): [boolean, D | E];
}

@@ -18,0 +19,0 @@ export declare class ResultOK<D> extends Result<D, null> {

@@ -41,2 +41,8 @@ "use strict";

}
isOkAndUnwrap() {
if (this.error === null) {
return [true, this.data];
}
return [false, this.error];
}
}

@@ -43,0 +49,0 @@ exports.Result = Result;

2

package.json
{
"name": "node-result",
"version": "8.0.0",
"version": "8.1.0",
"description": "result",

@@ -5,0 +5,0 @@ "keywords": [

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