angulartics-optimizely
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -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])) | ||
} | ||
] |
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
97819
13
2659
1
2