Comparing version 1.0.0-beta.5 to 1.0.0-beta.6
{ | ||
"name": "libhoney", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Javascript library for sending data to Honeycomb", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/honeycombio/libhoney-js/issues", |
@@ -29,3 +29,3 @@ 'use strict'; | ||
var userAgent = "libhoney-js/1.0.0-beta.5"; | ||
var userAgent = "libhoney-js/1.0.0-beta.6"; | ||
@@ -79,3 +79,3 @@ var _global = typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : undefined; | ||
if (typeof options.batchSizeTrigger == "number") { | ||
this._batchSizeTrigger = options.batchSizeTrigger; | ||
this._batchSizeTrigger = Math.max(options.batchSizeTrigger, 1); | ||
} | ||
@@ -103,3 +103,3 @@ if (typeof options.batchTimeTrigger == "number") { | ||
this._eventQueue.push(ev); | ||
if (this._eventQueue.length > this._batchSizeTrigger) { | ||
if (this._eventQueue.length >= this._batchSizeTrigger) { | ||
this._sendBatch(); | ||
@@ -132,3 +132,3 @@ } else { | ||
if (queueLength > 0) { | ||
if (queueLength > _this._batchSizeTrigger) { | ||
if (queueLength >= _this._batchSizeTrigger) { | ||
_this._sendBatch(); | ||
@@ -135,0 +135,0 @@ } else { |
{ | ||
"name": "libhoney", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Javascript library for sending data to Honeycomb", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/honeycombio/libhoney-js/issues", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
203657
0