Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angulartics-optimizely

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angulartics-optimizely - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

npm-shrinkwrap.json

6

bundle.js

@@ -8,3 +8,3 @@ 'use strict';

var trackEvent = function trackEvent(what, value) {
var evt = ['trackEvent', what.replace(/\s+\|\s+/g, '_').replace(/\W+/g, 'X')];
var evt = ['trackEvent', what.replace(/\s?\|\s?/g, '_').replace(/\W+/g, 'X')];
if (value) {

@@ -30,6 +30,2 @@ evt.push({ revenue: value });

});
$analyticsProvider.registerSetUsername(function (id) {
return window.optimizely.push(['setUserId', id]);
});
}];

@@ -36,0 +32,0 @@

@@ -1,1 +0,1 @@

"use strict";var AngularticsOptimizelyConfig=["$analyticsProvider",function(e){e.settings.pageTracking.trackRelativePath=!0,window.optimizely=window.optimizely||[];var i=function(e,i){var t=["trackEvent",e.replace(/\s+\|\s+/g,"_").replace(/\W+/g,"X")];i&&t.push({revenue:i}),window.optimizely.push(t)};e.registerPageTrack(function(t,n){e.settings.optimizely&&i(e.settings.optimizely.properties.pageName||t)}),e.registerEventTrack(function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.revenue;i(e,n)}),e.registerSetUsername(function(e){return window.optimizely.push(["setUserId",e])})}];angular.module("angulartics.optimizely",["angulartics"]).config(AngularticsOptimizelyConfig),module.exports=AngularticsOptimizelyConfig;
"use strict";var AngularticsOptimizelyConfig=["$analyticsProvider",function(i){i.settings.pageTracking.trackRelativePath=!0,window.optimizely=window.optimizely||[];var e=function(i,e){var t=["trackEvent",i.replace(/\s?\|\s?/g,"_").replace(/\W+/g,"X")];e&&t.push({revenue:e}),window.optimizely.push(t)};i.registerPageTrack(function(t,n){i.settings.optimizely&&e(i.settings.optimizely.properties.pageName||t)}),i.registerEventTrack(function(i){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.revenue;e(i,n)})}];angular.module("angulartics.optimizely",["angulartics"]).config(AngularticsOptimizelyConfig),module.exports=AngularticsOptimizelyConfig;
{
"name": "angulartics-optimizely",
"version": "1.0.2",
"version": "1.1.0",
"description": "An angulartics plugin for optimizely",

@@ -5,0 +5,0 @@ "main": "bundle.js",

@@ -27,5 +27,3 @@ export default [

})
$analyticsProvider.registerSetUsername(id => window.optimizely.push(['setUserId', id]))
}
]
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc