@abtasty/scroll-tracking
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -1,1 +0,1 @@ | ||
var scrollTracking=function(e){"use strict";var n=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=DATA.engagementGoal,o=function(){return 100*document.documentElement.scrollTop/(document.body.offsetHeight-window.innerHeight)};return window.addEventListener("scroll",function e(){var r=o();t.forEach(function(o,l){var c=o.percentage;if(r>=c){var i=o.name;t.splice(l,1),0===t.length&&window.removeEventListener("scroll",e),TEST_ID>0?(window.ABTastyEvent(i,null,TEST_ID),n('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):n("Needs ID of the test.")}})}),e.getCurrentScrollPercent=o,e}({}); | ||
var widgetMain=function(e){"use strict";var n=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=DATA.engagementGoal,o=function(){return 100*(document.body.scrollTop||document.documentElement.scrollTop)/(document.body.scrollHeight-window.innerHeight)};return window.addEventListener("scroll",function e(){var r=o();t.forEach(function(o,l){var c=o.percentage;if(r>=c){var i=o.name;t.splice(l,1),0===t.length&&window.removeEventListener("scroll",e),TEST_ID>0?(window.ABTastyEvent(i,null,TEST_ID),n('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):n("Needs ID of the test.")}})}),e.getCurrentScrollPercent=o,e}({}); |
{ | ||
"name": "@abtasty/scroll-tracking", | ||
"description": "AB Tasty Widget", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"icon": "icon.png", | ||
"form": "form.html", | ||
"form": "dist/form.js", | ||
"main": "dist/main.js", | ||
"files": [ | ||
"icon.png", | ||
"form.html", | ||
"dist/main.js" | ||
"dist" | ||
], | ||
@@ -25,3 +24,2 @@ "repository": "https://gitlab.com/abtasty/widgets/scroll-tracking", | ||
"devDependencies": { | ||
"@abtasty/widget-utils": "^1.5.0", | ||
"babel-core": "^6.26.0", | ||
@@ -31,3 +29,3 @@ "babel-preset-es2015-rollup": "^3.0.0", | ||
"concurrently": "^3.5.0", | ||
"eslint": "^4.6.1", | ||
"eslint": "^4.7.2", | ||
"eslint-config-google": "^0.9.1", | ||
@@ -43,3 +41,6 @@ "jsdom": "^11.2.0", | ||
"rollup-watch": "^4.3.1" | ||
}, | ||
"dependencies": { | ||
"@abtasty/widget-utils": "^1.10.0" | ||
} | ||
} |
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
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
15
6
4988
1
+ Added@abtasty/widget-utils@1.18.38(transitive)