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

ts-error-as-value

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-error-as-value - npm Package Compare versions

Comparing version 0.4.203 to 0.4.204

2

package.json
{
"name": "ts-error-as-value",
"version": "0.4.203",
"version": "0.4.204",
"description": "Errors as values in typescript",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -6,4 +6,10 @@ import { ok, err } from ".";

const ResultIs = {
success: ok,
failure: err
success: (...args: any[]) => {
console.warn("ResultIs.success is deprecated and will be removed in a later update. Use ok instead.");
return (ok as any)(...args);
},
failure: (...args: any[]) => {
console.warn("ResultIs.failure is deprecated and will be removed in a later update. Use err instead.");
return (err as any)(...args);
}
};

@@ -10,0 +16,0 @@

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