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

@types/opossum

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/opossum - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1

29

opossum/index.d.ts
// Type definitions for opossum 1.9
// Project: https://github.com/nodeshift/opossum
// Definitions by: Quinn Langille <https://github.com/quinnlangille>
// Willy Zhang <https://github.com/merufm>
// Lance Ball <https://github.com/lance>

@@ -10,6 +11,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as stream from "stream";
import { EventEmitter } from "events";
export type Action = () => any;
export type Action = (...args: any[]) => any;
export class CircuitBreaker {
export class CircuitBreaker extends EventEmitter {
clearCache(): void;

@@ -19,5 +21,6 @@ close(): void;

enable(): void;
fallback(): CircuitBreaker;
fire(): Promise<any>;
healthCheck(func: () => Promise<any>, interval: number): Promise<any>;
fallback(func?: (...args: any[]) => any): this;
fire(...args: any[]): Promise<any>;
healthCheck(func: (...args: any[]) => Promise<any>, interval?: number): Promise<any>;
on(event: string | symbol, listener: (...args: any[]) => void): this;
open(): void;

@@ -40,2 +43,18 @@ promisify(action: Action): Promise<Action>;

export enum Event {
cacheHit = 'cacheHit',
cacheMiss = 'cacheMiss',
close = 'close',
failure = 'failure',
fallback = 'fallback',
fire = 'fire',
halfOpen = 'halfOpen',
healthCheckFailed = 'health-check-failed',
open = 'open',
reject = 'reject',
semaphoreLocked = 'semaphore-locked',
success = 'success',
timeout = 'timeout'
}
export interface CircuitBreakerOptions {

@@ -42,0 +61,0 @@ timeout?: number;

11

opossum/package.json
{
"name": "@types/opossum",
"version": "1.9.0",
"version": "1.9.1",
"description": "TypeScript definitions for opossum",

@@ -13,2 +13,7 @@ "license": "MIT",

{
"name": "Willy Zhang",
"url": "https://github.com/merufm",
"githubUsername": "merufm"
},
{
"name": "Lance Ball",

@@ -20,3 +25,3 @@ "url": "https://github.com/lance",

"main": "",
"types": "",
"types": "index",
"repository": {

@@ -30,4 +35,4 @@ "type": "git",

},
"typesPublisherContentHash": "2ebde2bccc9c111697719640d8000862952a5144575cc4ba688e2b9f24821a2e",
"typesPublisherContentHash": "6e74e4a2ac301c6ba2f43e615ec556820a26ae8a82eb9c787a88143ef3a8992f",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 01 Nov 2018 22:07:15 GMT
* Last updated: Thu, 08 Nov 2018 18:33:09 GMT
* Dependencies: node

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Quinn Langille <https://github.com/quinnlangille>, Lance Ball <https://github.com/lance>.
These definitions were written by Quinn Langille <https://github.com/quinnlangille>, Willy Zhang <https://github.com/merufm>, Lance Ball <https://github.com/lance>.
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