sturdy-websocket
Advanced tools
Comparing version 0.1.5 to 0.1.6
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var defaults = require("lodash.defaults"); | ||
var SturdyWebSocket = /** @class */ (function () { | ||
@@ -40,3 +33,3 @@ function SturdyWebSocket(url, protocolsOrOptions, options) { | ||
} | ||
this.options = __assign({}, SturdyWebSocket.DEFAULT_OPTIONS, options); | ||
this.options = defaults({}, options, SturdyWebSocket.DEFAULT_OPTIONS); | ||
if (!this.options.wsConstructor) { | ||
@@ -43,0 +36,0 @@ if (typeof WebSocket !== "undefined") { |
{ | ||
"name": "sturdy-websocket", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": | ||
@@ -48,2 +48,3 @@ "Tiny WebSocket wrapper that reconnects and resends failed messages.", | ||
"@types/jest": "^21.1.1", | ||
"@types/lodash.defaults": "^4.2.3", | ||
"@types/ws": "^3.0.2", | ||
@@ -62,3 +63,5 @@ "husky": "^0.14.3", | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"lodash.defaults": "^4.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
48032
1
14
397
+ Addedlodash.defaults@^4.2.0
+ Addedlodash.defaults@4.2.0(transitive)