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

ts-res

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-res - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

6

build/main.js

@@ -9,3 +9,3 @@ "use strict";

if (typeof this.error === "string" || typeof this.error === "undefined") {
const defaultMessage = "There was an error! No specific error message was provided.";
var defaultMessage = "There was an error! No specific error message was provided.";
throw new Error(message || this.error || defaultMessage);

@@ -44,9 +44,9 @@ }

function Ok(data) {
return { ok: true, data, throw: throwErr, else: elseDo, or, and };
return { ok: true, data: data, throw: throwErr, else: elseDo, or: or, and: and };
}
exports.Ok = Ok;
function Err(error) {
return { ok: false, error, throw: throwErr, else: elseDo, or, and };
return { ok: false, error: error, throw: throwErr, else: elseDo, or: or, and: and };
}
exports.Err = Err;
//# sourceMappingURL=main.js.map
{
"name": "ts-res",
"version": "1.2.1",
"version": "1.3.0",
"description": "TypeScript Result",

@@ -5,0 +5,0 @@ "repository": "https://github.com/Slava-Ini/ts-result",

Sorry, the diff of this file is not supported yet

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