@amplitude/plugin-custom-enrichment-browser 0.1.23-video-analytics-2.0 → 0.1.25

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.
Files changed (2) hide show
  1. package/DISCLOSURE +11 -0
  2. package/package.json +7 -3
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.
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@amplitude/plugin-custom-enrichment-browser",
3
- "version": "0.1.23-video-analytics-2.0",
3
+ "version": "0.1.25",
4
4
  "description": "",
5
5
  "author": "Amplitude Inc",
6
6
  "homepage": "https://github.com/amplitude/Amplitude-TypeScript",
7
7
  "license": "MIT",
8
+ "contentPolicy": {
9
+ "class": "dual-use"
10
+ },
8
11
  "main": "lib/cjs/index.js",
9
12
  "module": "lib/esm/index.js",
10
13
  "types": "lib/esm/index.d.ts",
@@ -22,7 +25,7 @@
22
25
  },
23
26
  "dependencies": {
24
27
  "tslib": "^2.4.1",
25
- "@amplitude/analytics-core": "2.56.0-video-analytics-2.0"
28
+ "@amplitude/analytics-core": "2.60.1"
26
29
  },
27
30
  "devDependencies": {
28
31
  "@rollup/plugin-commonjs": "^23.0.4",
@@ -34,7 +37,8 @@
34
37
  "rollup-plugin-terser": "^7.0.2"
35
38
  },
36
39
  "files": [
37
- "lib"
40
+ "lib",
41
+ "DISCLOSURE"
38
42
  ],
39
43
  "scripts": {
40
44
  "build": "pnpm bundle && pnpm build:es5 && pnpm build:esm",