Socket
Socket
Sign inDemoInstall

@segment/analytics.js-core

Package Overview
Dependencies
44
Maintainers
72
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0 to 3.4.1

5

HISTORY.md
3.4.1 / 2018-04-23
==================
* Catch and guard against Integration errors
3.4.0 / 2018-03-05

@@ -3,0 +8,0 @@ ==================

6

lib/analytics.js

@@ -618,3 +618,7 @@ 'use strict';

} else {
integration.invoke.call(integration, method, facade);
try {
integration.invoke.call(integration, method, facade);
} catch (e) {
self.log('Error invoking .%s method of %s integration: %o', method, name, e);
}
}

@@ -621,0 +625,0 @@ }, this._integrations);

2

package.json
{
"name": "@segment/analytics.js-core",
"author": "Segment <friends@segment.com>",
"version": "3.4.0",
"version": "3.4.1",
"description": "The hassle-free way to integrate analytics into any web application.",

@@ -6,0 +6,0 @@ "keywords": [

@@ -325,2 +325,7 @@ 'use strict';

it('should not crash when invoking integration fails', function() {
Test.prototype.invoke = function() { throw new Error('Uh oh!'); };
analytics.track('Test Event');
});
it('should support .integrations to disable / select integrations', function() {

@@ -327,0 +332,0 @@ var opts = { integrations: { Test: false } };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc