@apolitical/gtm 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/build/index.js +1 -1
- package/package.json +11 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.0] - 2022-05-11
|
|
9
|
+
### Changed
|
|
10
|
+
- The `environment` is now defined externally
|
|
11
|
+
|
|
8
12
|
## [1.0.1] - 2021-04-07
|
|
9
13
|
### Changed
|
|
10
14
|
- TagManager is initialized only when cookie consent is given
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-gtm-module")):"function"==typeof define&&define.amd?define(["react-gtm-module"],t):"object"==typeof exports?exports.ApoliticalGTM=t(require("react-gtm-module")):e.ApoliticalGTM=t(e["react-gtm-module"])}(this,(function(e){return function(){"use strict";var t={273:function(t){t.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-gtm-module")):"function"==typeof define&&define.amd?define(["react-gtm-module"],t):"object"==typeof exports?exports.ApoliticalGTM=t(require("react-gtm-module")):e.ApoliticalGTM=t(e["react-gtm-module"])}(this,(function(e){return function(){"use strict";var t={273:function(t){t.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var u=o[e]={exports:{}};return t[e](u,u.exports,n),u.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){n.r(r),n.d(r,{setContext:function(){return u},setupGTM:function(){return c}});var e=n(273),t=n.n(e);let o=null;const u=({configs:e,environment:t})=>{o=e[t]},i=()=>o,c=e=>{const o=i();"true"===e["performance-cookie-consent"]&&t().initialize({gtmId:o.id})}}(),r}()}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/gtm",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Browser library to interact with Google Tag Manager (GTM)",
|
|
5
5
|
"author": "Apolitical Group Limited <engineering@apolitical.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"react-gtm-module": "2.0.11"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@apolitical/eslint-config": "
|
|
35
|
-
"@babel/core": "7.
|
|
36
|
-
"@babel/eslint-parser": "7.
|
|
37
|
-
"@babel/plugin-transform-runtime": "7.
|
|
38
|
-
"@babel/preset-env": "7.
|
|
39
|
-
"husky": "
|
|
40
|
-
"jest": "
|
|
41
|
-
"jest-junit": "13.
|
|
42
|
-
"lint-staged": "12.
|
|
43
|
-
"webpack": "5.
|
|
34
|
+
"@apolitical/eslint-config": "2.0.1",
|
|
35
|
+
"@babel/core": "7.17.10",
|
|
36
|
+
"@babel/eslint-parser": "7.17.0",
|
|
37
|
+
"@babel/plugin-transform-runtime": "7.17.10",
|
|
38
|
+
"@babel/preset-env": "7.17.10",
|
|
39
|
+
"husky": "8.0.1",
|
|
40
|
+
"jest": "28.1.0",
|
|
41
|
+
"jest-junit": "13.2.0",
|
|
42
|
+
"lint-staged": "12.4.1",
|
|
43
|
+
"webpack": "5.72.1",
|
|
44
44
|
"webpack-cli": "4.9.2"
|
|
45
45
|
},
|
|
46
46
|
"eslintConfig": {
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"jest": {
|
|
65
|
-
"testEnvironment": "jsdom",
|
|
66
65
|
"bail": true,
|
|
67
66
|
"clearMocks": true,
|
|
68
67
|
"collectCoverage": true,
|