@apolitical/gtm 1.2.2 → 1.2.4
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/build/index.js +1 -1
- package/package.json +4 -5
- package/CHANGELOG.md +0 -35
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,
|
|
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={43:function(t){t.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{setContext:function(){return c},setupGTM:function(){return a}});var i=o(43),u=o.n(i);let f=null;const c=({configs:e,environment:t})=>{if(!t)throw new Error("Cannot set context: Environment not defined");if(!e)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!e[t])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:e,environment:t})}`);f=e[t]},d=()=>f,a=()=>{const e=d();u().initialize({gtmId:e.id})};return r}()});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/gtm",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"lint": "eslint --ext .js ./lib",
|
|
17
17
|
"format": "prettier --write 'lib/**/*.+(js|json)'",
|
|
18
18
|
"lint-format": "lint-staged",
|
|
19
|
-
"prepare": "husky install",
|
|
20
19
|
"prepack": "yarn build"
|
|
21
20
|
},
|
|
22
21
|
"keywords": [
|
|
@@ -35,12 +34,12 @@
|
|
|
35
34
|
"@babel/core": "7.17.10",
|
|
36
35
|
"@babel/eslint-parser": "7.17.0",
|
|
37
36
|
"@babel/plugin-transform-runtime": "7.17.10",
|
|
37
|
+
"@babel/runtime": "7.29.7",
|
|
38
38
|
"@babel/preset-env": "7.17.10",
|
|
39
|
-
"husky": "8.0.1",
|
|
40
39
|
"jest": "28.1.0",
|
|
41
40
|
"jest-junit": "13.2.0",
|
|
42
41
|
"lint-staged": "12.4.1",
|
|
43
|
-
"webpack": "5.
|
|
42
|
+
"webpack": "5.94.0",
|
|
44
43
|
"webpack-cli": "4.9.2"
|
|
45
44
|
},
|
|
46
45
|
"eslintConfig": {
|
|
@@ -93,7 +92,7 @@
|
|
|
93
92
|
}
|
|
94
93
|
},
|
|
95
94
|
"engines": {
|
|
96
|
-
"node": ">=
|
|
95
|
+
"node": ">=20.14.0"
|
|
97
96
|
},
|
|
98
97
|
"lint-staged": {
|
|
99
98
|
"*.js": "eslint --cache --fix --ignore-path .gitignore",
|
package/CHANGELOG.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [1.2.2] - 2023-01-31
|
|
9
|
-
### Added
|
|
10
|
-
- Renovate config file
|
|
11
|
-
|
|
12
|
-
## [1.2.1] - 2022-06-29
|
|
13
|
-
### Changed
|
|
14
|
-
- Pipeline ref
|
|
15
|
-
|
|
16
|
-
## [1.2.0] - 2022-05-23
|
|
17
|
-
### Changed
|
|
18
|
-
- Always initialize TagManager, disregarding the status of cookie consent
|
|
19
|
-
|
|
20
|
-
## [1.1.1] - 2022-05-13
|
|
21
|
-
### Fixed
|
|
22
|
-
- Set context function error handling
|
|
23
|
-
|
|
24
|
-
## [1.1.0] - 2022-05-11
|
|
25
|
-
### Changed
|
|
26
|
-
- The `environment` is now defined externally
|
|
27
|
-
|
|
28
|
-
## [1.0.1] - 2021-04-07
|
|
29
|
-
### Changed
|
|
30
|
-
- TagManager is initialized only when cookie consent is given
|
|
31
|
-
- Passing cookies from frontend
|
|
32
|
-
|
|
33
|
-
## [1.0.0] - 2021-04-06
|
|
34
|
-
### Added
|
|
35
|
-
- Initialize Google Tag Manager with GTM container Id
|