@netvlies/utility-collection
Advanced tools
Comparing version
@@ -27,3 +27,3 @@ 'use strict'; | ||
class GTM { | ||
constructor(baseEventData = {}, dataLayer = window.dataLayer || [], logging = false) { | ||
constructor(baseEventData = {}, dataLayer = (window.dataLayer = window.dataLayer || []), logging = false) { | ||
this.baseEventData = baseEventData; | ||
@@ -30,0 +30,0 @@ this.dataLayer = dataLayer; |
@@ -25,3 +25,3 @@ const BUNDLE_NAME = 'NVS Utility Collection'; | ||
class GTM { | ||
constructor(baseEventData = {}, dataLayer = window.dataLayer || [], logging = false) { | ||
constructor(baseEventData = {}, dataLayer = (window.dataLayer = window.dataLayer || []), logging = false) { | ||
this.baseEventData = baseEventData; | ||
@@ -28,0 +28,0 @@ this.dataLayer = dataLayer; |
{ | ||
"name": "@netvlies/utility-collection", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Collection of frequently used utilities by Netvlies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28859
0.47%1
Infinity%