@umijs/plugin-analytics
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -84,3 +84,3 @@ "use strict"; | ||
var scr = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(gtagScript, scr); | ||
scr.parentNode.insertBefore(gtagScript, scr); | ||
window.dataLayer = window.dataLayer || []; | ||
@@ -87,0 +87,0 @@ function gtag() {dataLayer.push(arguments);} |
{ | ||
"name": "@umijs/plugin-analytics", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "analytics for baidu tongji and google analytics", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -60,3 +60,3 @@ import { IApi } from 'umi'; | ||
var scr = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(gtagScript, scr); | ||
scr.parentNode.insertBefore(gtagScript, scr); | ||
window.dataLayer = window.dataLayer || []; | ||
@@ -63,0 +63,0 @@ function gtag() {dataLayer.push(arguments);} |
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
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
10358