launchdarkly-js-sdk-common
Advanced tools
Comparing version 5.0.0-alpha.6 to 5.0.0-alpha.7
{ | ||
"name": "launchdarkly-js-sdk-common", | ||
"version": "5.0.0-alpha.6", | ||
"version": "5.0.0-alpha.7", | ||
"description": "LaunchDarkly SDK for JavaScript - common code", | ||
@@ -5,0 +5,0 @@ "author": "LaunchDarkly <team@launchdarkly.com>", |
@@ -65,3 +65,3 @@ import { AsyncQueue } from 'launchdarkly-js-test-helpers'; | ||
calls.add({ events, url }); | ||
return Promise.resolve({ serverTime, status }); | ||
return Promise.resolve([{ serverTime, status }]); | ||
}, | ||
@@ -68,0 +68,0 @@ setServerTime: time => { |
@@ -103,3 +103,3 @@ /** | ||
switch (kind) { | ||
case typeof kind === 'undefined': | ||
case undefined: | ||
keys.user = `${key}`; | ||
@@ -106,0 +106,0 @@ break; |
@@ -139,3 +139,4 @@ const EventSender = require('./EventSender'); | ||
logger.debug(messages.debugPostingEvents(eventsToSend.length)); | ||
return eventSender.sendEvents(eventsToSend, mainEventsUrl).then(responseInfo => { | ||
return eventSender.sendEvents(eventsToSend, mainEventsUrl).then(responses => { | ||
const responseInfo = responses && responses[0]; | ||
if (responseInfo) { | ||
@@ -142,0 +143,0 @@ if (responseInfo.serverTime) { |
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
437908
10415