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

react-gtm-ts

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gtm-ts - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

17

dist/index.d.ts

@@ -1,12 +0,9 @@

type GTMInitProps = {
GTMCode: string;
declare const ReactTagManager: {
init: (GTMCode: string) => void;
action: ({ event, ...more }: {
[key: string]: string;
event: string;
}) => void;
};
declare const GTMInit: ({ GTMCode }: GTMInitProps) => void;
type GTMActionProps = {
event: string;
[key: string]: string;
};
declare const GTMAction: ({ event, ...more }: GTMActionProps) => void;
export { GTMAction, GTMInit };
export { ReactTagManager };

@@ -23,4 +23,3 @@ "use strict";

__export(src_exports, {
GTMAction: () => GTMAction,
GTMInit: () => GTMInit
ReactTagManager: () => ReactTagManager
});

@@ -30,3 +29,3 @@ module.exports = __toCommonJS(src_exports);

// src/features/init/index.ts
var GTMInit = ({ GTMCode }) => {
var init = (GTMCode) => {
if (typeof window === "undefined")

@@ -45,3 +44,3 @@ return;

// src/features/action/index.ts
var GTMAction = ({ event, ...more }) => {
var action = ({ event, ...more }) => {
if (typeof window === "undefined")

@@ -54,6 +53,11 @@ return;

};
// src/features/index.ts
var ReactTagManager = {
init,
action
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
GTMAction,
GTMInit
ReactTagManager
});

@@ -5,3 +5,3 @@ {

"license": "ISC",
"version": "1.0.12",
"version": "1.0.13",
"main": "./dist/index.js",

@@ -8,0 +8,0 @@ "module": "./dist/index.mjs",

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