Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-google-tag-manager

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-tag-manager - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

5

lib/build_parts.js
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true

@@ -31,3 +31,2 @@ });

exports['default'] = buildParts;
module.exports = exports['default'];
exports.default = buildParts;

16

lib/index.js
'use strict';
Object.defineProperty(exports, '__esModule', {
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _build_parts = require('./build_parts');

@@ -17,8 +15,9 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function GTMParts(args) {
var parts = (0, _build_parts2.default)(args);
var parts = (0, _build_parts2['default'])(args);
function noScriptAsReact() {
return _react2['default'].createElement('noscript', { dangerouslySetInnerHTML: { __html: parts.iframe } });
return _react2.default.createElement('noscript', { dangerouslySetInnerHTML: { __html: parts.iframe } });
}

@@ -31,3 +30,3 @@

function scriptAsReact() {
return _react2['default'].createElement('script', { dangerouslySetInnerHTML: { __html: parts.script } });
return _react2.default.createElement('script', { dangerouslySetInnerHTML: { __html: parts.script } });
}

@@ -47,3 +46,2 @@

exports['default'] = GTMParts;
module.exports = exports['default'];
exports.default = GTMParts;
{
"name": "react-google-tag-manager",
"version": "1.0.2",
"version": "1.1.0",
"description": "This package contains a react based implementation for Google's Tag Manager snippet.",

@@ -9,3 +9,3 @@ "main": "lib/index.js",

"prepublish": "npm run compile",
"lint": "eslint --ext '.js' --cache .",
"lint": "eslint --ext '.js' --ext '.jsx' --cache .",
"pretest": "npm run lint",

@@ -35,11 +35,16 @@ "test": "mocha test/ --opts test/mocha.opts"

"devDependencies": {
"babel": "^5.8.23",
"babel-cli": "^6.6.5",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"babel-register": "6.7.2",
"chai": "^3.3.0",
"chai-string": "^1.1.3",
"eslint": "^1.6.0",
"eslint": "2.4.0",
"eslint-config-holidaycheck": "0.4.0",
"eslint-plugin-react": "4.2.3",
"mocha": "^2.3.3",
"react": "^0.14.0"
"react": "15.0.0-rc.2"
},
"peerDependencies": {
"react": "^0.14.0"
"react": "^0.14.0 || ^15.0.0-rc.1"
},

@@ -46,0 +51,0 @@ "files": [

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