@amplitude/gtm-snippet 2.33.0 → 2.33.2-SR-2360.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 +27 -0
- package/amplitude-wrapper.js.ejs +1 -1
- package/e2e/gtm-snippet.spec.ts +5 -4
- package/lib/amplitude-wrapper.js +3 -3
- package/lib/scripts/analytics-browser-gtm-wrapper.min.js +1 -1
- package/lib/scripts/analytics-browser-gtm-wrapper.min.js.br +0 -0
- package/lib/scripts/analytics-browser-gtm-wrapper.min.js.gz +0 -0
- package/lib/scripts/analytics-browser-gtm-wrapper.min.js.map +1 -1
- package/package.json +14 -14
- package/scripts/upload-to-s3.js +1 -1
- package/tsconfig.json +12 -0
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/gtm-snippet",
|
|
3
|
-
"version": "2.33.0",
|
|
3
|
+
"version": "2.33.2-SR-2360.0",
|
|
4
4
|
"description": "Amplitude JS SDK Wrapper for use with Google Tag Manager",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"tag": "latest"
|
|
8
8
|
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "yarn build:template && yarn build:bundle",
|
|
11
|
-
"build:bundle": "rollup --config rollup.config.js",
|
|
12
|
-
"build:template": "node ./scripts/build-snippet.js",
|
|
13
|
-
"prepublishOnly": "yarn build",
|
|
14
|
-
"publish": "node ./scripts/upload-to-s3.js",
|
|
15
|
-
"version": "node ./scripts/version.js"
|
|
16
|
-
},
|
|
17
9
|
"repository": {
|
|
18
10
|
"type": "git",
|
|
19
11
|
"url": "git+https://github.com/amplitude/Amplitude-TypeScript.git"
|
|
@@ -21,8 +13,8 @@
|
|
|
21
13
|
"author": "Amplitude <support@amplitude.com>",
|
|
22
14
|
"license": "MIT",
|
|
23
15
|
"dependencies": {
|
|
24
|
-
"@amplitude/analytics-browser": "2.33.0",
|
|
25
|
-
"@amplitude/plugin-session-replay-browser": "1.25.
|
|
16
|
+
"@amplitude/analytics-browser": "2.33.2-SR-2360.0",
|
|
17
|
+
"@amplitude/plugin-session-replay-browser": "1.25.6-SR-2360.0"
|
|
26
18
|
},
|
|
27
19
|
"devDependencies": {
|
|
28
20
|
"@amplitude/eslint-plugin-amplitude": "^1.0.1",
|
|
@@ -33,7 +25,15 @@
|
|
|
33
25
|
"eslint": "^8.2.0",
|
|
34
26
|
"eslint-config-prettier": "^8.3.0",
|
|
35
27
|
"eslint-plugin-prettier": "^4.0.0",
|
|
36
|
-
"prettier": "^2.4.1"
|
|
28
|
+
"prettier": "^2.4.1",
|
|
29
|
+
"rollup": "^2.79.1",
|
|
30
|
+
"rollup-plugin-gzip": "^3.1.0",
|
|
31
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
37
32
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "pnpm build:template && pnpm build:bundle",
|
|
35
|
+
"build:bundle": "rollup --config rollup.config.js",
|
|
36
|
+
"build:template": "node ./scripts/build-snippet.js",
|
|
37
|
+
"version": "node ./scripts/version.js"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/scripts/upload-to-s3.js
CHANGED
|
@@ -4,7 +4,7 @@ const analyticsBrowserPkg = require(path.join(process.cwd(), '..', 'analytics-br
|
|
|
4
4
|
const { S3Client, PutObjectCommand, HeadObjectCommand } = require('@aws-sdk/client-s3');
|
|
5
5
|
const bucket = process.env.S3_BUCKET_NAME;
|
|
6
6
|
|
|
7
|
-
const extension = 'min.js.
|
|
7
|
+
const extension = 'min.js.br';
|
|
8
8
|
const filename = 'analytics-browser-gtm-wrapper';
|
|
9
9
|
const gtmWrapper = `./lib/scripts/${filename}.${extension}`;
|
|
10
10
|
|