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 12.0.0 to 12.0.1

4

lib/index.d.ts

@@ -30,3 +30,3 @@ export declare type TResult<DataType, ErrorType> = ResultOK<DataType> | ResultFAIL<ErrorType>;

export declare const fail: <ErrorType>(error: ErrorType) => ResultFAIL<ErrorType>;
export declare function tryCatch<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: never[]) => DataType | ResultFAIL<ErrorType>>): TypedPropertyDescriptor<(...args: never[]) => DataType | ResultFAIL<ErrorType>>;
export declare function tryCatchAsync<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: never[]) => Promise<DataType | ResultFAIL<ErrorType>>>): TypedPropertyDescriptor<(...args: never[]) => Promise<DataType | ResultFAIL<ErrorType>>>;
export declare function tryCatch<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => DataType | ResultFAIL<ErrorType>>): TypedPropertyDescriptor<(...args: any[]) => DataType | ResultFAIL<ErrorType>>;
export declare function tryCatchAsync<TargetType, DataType, ErrorType>(target: TargetType, property: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<DataType | ResultFAIL<ErrorType>>>): TypedPropertyDescriptor<(...args: any[]) => Promise<DataType | ResultFAIL<ErrorType>>>;
{
"name": "node-result",
"version": "12.0.0",
"version": "12.0.1",
"description": "result",

@@ -14,3 +14,2 @@ "keywords": [

"repository": "github:WatchDG/node-result",
"private": false,
"main": "lib/index.js",

@@ -26,19 +25,18 @@ "types": "lib/index.d.ts",

"build": "npx tsc",
"prepare": "npm run build",
"_postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"prepare": "npm run lint && npm run build && npm run test",
"postpublish": "pinst --enable"
},
"dependencies": {},
"devDependencies": {
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"eslint": "^7.17.0",
"husky": "^5.0.6",
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"eslint": "^7.26.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"pinst": "^2.1.1",
"prettier": "^2.2.1",
"ts-jest": "^26.4.4",
"typescript": "^4.2.2"
"prettier": "^2.3.0",
"ts-jest": "^26.5.6",
"typescript": "^4.2.4"
},

@@ -45,0 +43,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