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

btrz-circuit-breaker

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btrz-circuit-breaker - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

package.json
{
"name": "btrz-circuit-breaker",
"version": "1.0.0",
"version": "1.1.0",
"description": "Circuit Breaker wrapper with native Promises",

@@ -27,4 +27,3 @@ "main": "index.js",

"dependencies": {
"circuit-breaker-js": "0.0.1",
"lodash": "^3.10.1"
"circuit-breaker-js": "0.0.1"
},

@@ -31,0 +30,0 @@ "devDependencies": {

9

src/circuit-breaker.js
"use strict";
let _ = require("lodash"),
CircuitBreaker = require("circuit-breaker-js");
const CircuitBreaker = require("circuit-breaker-js");

@@ -13,7 +12,7 @@ function initParams(uri, options, callback) {

if (typeof options === "object") {
_.assign(params, options, {uri: uri});
params = Object.assign(params, options, {uri: uri});
} else if (typeof uri === "string") {
_.assign(params, {uri: uri});
params = Object.assign(params, {uri: uri});
} else {
_.assign(params, uri);
params = Object.assign(params, uri);
}

@@ -20,0 +19,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