@amplitude/plugin-custom-enrichment-browser 0.1.23-video-analytics-2.0 → 0.1.24
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/DISCLOSURE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
This package provides custom event enrichment for the Amplitude Browser SDK.
|
|
2
|
+
|
|
3
|
+
When a customer enables custom enrichment, the SDK receives a JavaScript function
|
|
4
|
+
body through Amplitude remote configuration and evaluates it in the browser. The
|
|
5
|
+
function can change an analytics event before the SDK sends it. This lets the
|
|
6
|
+
customer apply their own event enrichment logic without shipping a new version
|
|
7
|
+
of their application.
|
|
8
|
+
|
|
9
|
+
Evaluating remotely configured JavaScript is a security-sensitive capability.
|
|
10
|
+
The intended use is to run enrichment code configured by the customer for their
|
|
11
|
+
own application. It is not intended to run code from untrusted third parties.
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
+
"private": false,
|
|
2
3
|
"name": "@amplitude/plugin-custom-enrichment-browser",
|
|
3
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.24",
|
|
4
5
|
"description": "",
|
|
5
6
|
"author": "Amplitude Inc",
|
|
6
7
|
"homepage": "https://github.com/amplitude/Amplitude-TypeScript",
|
|
7
8
|
"license": "MIT",
|
|
9
|
+
"contentPolicy": {
|
|
10
|
+
"class": "dual-use"
|
|
11
|
+
},
|
|
8
12
|
"main": "lib/cjs/index.js",
|
|
9
13
|
"module": "lib/esm/index.js",
|
|
10
14
|
"types": "lib/esm/index.d.ts",
|
|
@@ -22,7 +26,7 @@
|
|
|
22
26
|
},
|
|
23
27
|
"dependencies": {
|
|
24
28
|
"tslib": "^2.4.1",
|
|
25
|
-
"@amplitude/analytics-core": "2.
|
|
29
|
+
"@amplitude/analytics-core": "2.60.0"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
28
32
|
"@rollup/plugin-commonjs": "^23.0.4",
|
|
@@ -34,7 +38,8 @@
|
|
|
34
38
|
"rollup-plugin-terser": "^7.0.2"
|
|
35
39
|
},
|
|
36
40
|
"files": [
|
|
37
|
-
"lib"
|
|
41
|
+
"lib",
|
|
42
|
+
"DISCLOSURE"
|
|
38
43
|
],
|
|
39
44
|
"scripts": {
|
|
40
45
|
"build": "pnpm bundle && pnpm build:es5 && pnpm build:esm",
|