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 9.2.0 to 10.0.0

6

lib/index.d.ts

@@ -9,4 +9,4 @@ export { ResultError } from 'node-result-error';

declare type Atom = typeof AtomOK.OK | typeof AtomFAIL.FAIL;
declare type ErrorProcessing<D, E> = (error: E) => D;
declare type ErrorProcessingAsync<D, E> = (error: E) => Promise<D>;
export declare type ErrorProcessing<D, E> = (error: E) => D;
export declare type ErrorProcessingAsync<D, E> = (error: E) => Promise<D>;
export declare type ReturningResult<D, E> = ResultOK<D> | ResultFAIL<E>;

@@ -28,3 +28,2 @@ export declare type ReturningResultAsync<D, E> = Promise<ResultOK<D> | ResultFAIL<E>>;

unwrapAsync(): Promise<D>;
isOkAndUnwrap(): [AtomOK, D];
}

@@ -35,3 +34,2 @@ export declare class ResultFAIL<E> extends Result<undefined, E> {

unwrapAsync(): Promise<E>;
isOkAndUnwrap(): [AtomFAIL, E];
}

@@ -38,0 +36,0 @@ export declare const ResultOk: <D>(data: D) => ResultOK<D>;

@@ -50,5 +50,2 @@ "use strict";

}
isOkAndUnwrap() {
return [AtomOK.OK, this.data];
}
}

@@ -66,5 +63,2 @@ exports.ResultOK = ResultOK;

}
isOkAndUnwrap() {
return [AtomFAIL.FAIL, this.error];
}
}

@@ -71,0 +65,0 @@ exports.ResultFAIL = ResultFAIL;

{
"name": "node-result",
"version": "9.2.0",
"version": "10.0.0",
"description": "result",

@@ -43,3 +43,3 @@ "keywords": [

"ts-jest": "^26.4.4",
"typescript": "^4.1.3"
"typescript": "^4.2.2"
},

@@ -46,0 +46,0 @@ "jest": {

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