New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gtm-module

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtm-module - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

11

dist/index.js

@@ -55,10 +55,10 @@ import sanitizeObj from './util/sanitizeObj.js';

if (typeof resetPush === 'boolean') {
var newObj = JSON.parse(JSON.stringify(obj));
if (resetPush) {
GoogleTagManager.resetPush(newObj);
var newObjMethodConfig = JSON.parse(JSON.stringify(obj));
GoogleTagManager.resetPush(newObjMethodConfig);
}
}
else if (this.resetDataLayer) {
var newObj = JSON.parse(JSON.stringify(obj));
GoogleTagManager.resetPush(newObj);
var newObjInstanceConfig = JSON.parse(JSON.stringify(obj));
GoogleTagManager.resetPush(newObjInstanceConfig);
}

@@ -70,3 +70,4 @@ };

var gtmSnippet = window.document.querySelector("#gtm-snippet");
window.document.querySelector('html').removeChild(gtmSnippet);
var parentElement = gtmSnippet.parentNode;
parentElement.removeChild(gtmSnippet);
this.initialized = false;

@@ -73,0 +74,0 @@ }

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

export default function exec(obj: dataLayerObj): boolean;
export default function exec(obj: dataLayerObj): boolean | void;
{
"name": "gtm-module",
"version": "1.0.5",
"version": "1.0.6",
"description": "Facilitates the usage of Google Tag Manager. Supports Google Tag Manager Server Side loading.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

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