@splitsoftware/browser-rum-agent
Advanced tools
Comparing version 0.4.1-rc.0 to 0.4.1-rc.1
@@ -48,3 +48,2 @@ "use strict"; | ||
} | ||
var context = { track: queue_1.track }; | ||
var collectors = []; | ||
@@ -98,3 +97,3 @@ // SplitRumAgent would be our namespace | ||
trackError: function (e) { | ||
return (0, errors_1.handleCustomErrors)(e, context); | ||
return (0, errors_1.handleCustomErrors)(e, SplitRumAgent); | ||
}, | ||
@@ -109,3 +108,3 @@ // Track custom events. | ||
else { | ||
collectors.push(eventCollector(context)); | ||
collectors.push(eventCollector(SplitRumAgent)); | ||
} | ||
@@ -112,0 +111,0 @@ // allow for chaining. |
@@ -38,2 +38,2 @@ "use strict"; | ||
exports.userAgent = getUserAgent(); | ||
exports.languageVersion = 'jsrum-' + '0.4.1-rc.0'; | ||
exports.languageVersion = 'jsrum-' + '0.4.1-rc.1'; |
@@ -9,3 +9,3 @@ "use strict"; | ||
if (!(0, isObject_1.isObject)(identity)) { | ||
log.error('Identity must be an objects with key and trafficType.'); | ||
log.error('Identity must be an object with key and trafficType.'); | ||
return; | ||
@@ -17,7 +17,7 @@ } | ||
if (!(0, isString_1.isString)(key)) { | ||
log.error('Key must be a string or number.'); | ||
log.error('Identity Key must be a string or number.'); | ||
return; | ||
} | ||
if (!(0, isString_1.isString)(trafficType)) { | ||
log.error('Traffic Type must be a string.'); | ||
log.error('Identity Traffic Type must be a string.'); | ||
return; | ||
@@ -24,0 +24,0 @@ } |
@@ -45,3 +45,2 @@ import { setSchedule, flush, track, queue } from './queue'; | ||
} | ||
var context = { track: track }; | ||
var collectors = []; | ||
@@ -95,3 +94,3 @@ // SplitRumAgent would be our namespace | ||
trackError: function (e) { | ||
return handleCustomErrors(e, context); | ||
return handleCustomErrors(e, SplitRumAgent); | ||
}, | ||
@@ -106,3 +105,3 @@ // Track custom events. | ||
else { | ||
collectors.push(eventCollector(context)); | ||
collectors.push(eventCollector(SplitRumAgent)); | ||
} | ||
@@ -109,0 +108,0 @@ // allow for chaining. |
@@ -31,2 +31,2 @@ /* eslint-disable compat/compat */ | ||
export var userAgent = getUserAgent(); | ||
export var languageVersion = 'jsrum-' + '0.4.1-rc.0'; | ||
export var languageVersion = 'jsrum-' + '0.4.1-rc.1'; |
@@ -6,3 +6,3 @@ import { isNumber } from './isNumber'; | ||
if (!isObject(identity)) { | ||
log.error('Identity must be an objects with key and trafficType.'); | ||
log.error('Identity must be an object with key and trafficType.'); | ||
return; | ||
@@ -14,7 +14,7 @@ } | ||
if (!isString(key)) { | ||
log.error('Key must be a string or number.'); | ||
log.error('Identity Key must be a string or number.'); | ||
return; | ||
} | ||
if (!isString(trafficType)) { | ||
log.error('Traffic Type must be a string.'); | ||
log.error('Identity Traffic Type must be a string.'); | ||
return; | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "@splitsoftware/browser-rum-agent", | ||
"version": "0.4.1-rc.0", | ||
"version": "0.4.1-rc.1", | ||
"description": "Split Software RUM Agent for Browsers.", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
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
125960
2685