react-google-tag-manager
Advanced tools
Comparing version 1.0.2 to 1.1.0
'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; |
'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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1
8818
11
5
54