btrz-circuit-breaker
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"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": { |
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
19024
367
- Removedlodash@^3.10.1
- Removedlodash@3.10.1(transitive)