@amplitude/analytics-core 2.47.0-sr-3531-rc-2.0 → 2.47.1
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/lib/cjs/types/network-tracking.d.ts +7 -0
- package/lib/cjs/types/network-tracking.d.ts.map +1 -1
- package/lib/cjs/types/network-tracking.js.map +1 -1
- package/lib/esm/types/network-tracking.d.ts +7 -0
- package/lib/esm/types/network-tracking.d.ts.map +1 -1
- package/lib/esm/types/network-tracking.js.map +1 -1
- package/package.json +1 -1
|
@@ -34,8 +34,15 @@ export interface BodyCaptureRule {
|
|
|
34
34
|
* List of JSON pointers to exclude from a request or response body (JSON objects only)
|
|
35
35
|
*
|
|
36
36
|
* This "uncaptures" any attributes that are captured by the allowlist.
|
|
37
|
+
* @deprecated this property is deprecated in favor of "excludelist"
|
|
37
38
|
*/
|
|
38
39
|
blocklist?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* List of JSON pointers to exclude from a request or response body (JSON objects only)
|
|
42
|
+
*
|
|
43
|
+
* This "uncaptures" any attributes that are captured by the allowlist.
|
|
44
|
+
*/
|
|
45
|
+
excludelist?: string[];
|
|
39
46
|
}
|
|
40
47
|
export interface NetworkCaptureRule {
|
|
41
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-tracking.d.ts","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"network-tracking.d.ts","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAM/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-tracking.js","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"","sourcesContent":["export interface NetworkTrackingOptions {\n /**\n * Suppresses tracking Amplitude requests from network capture.\n * @defaultValue `true`\n */\n ignoreAmplitudeRequests?: boolean;\n /**\n * Hosts to ignore for network capture. Supports wildcard.\n * @defaultValue `[]`\n */\n ignoreHosts?: string[];\n /**\n * Rules to determine which network requests should be captured.\n *\n * Performs matching on array in reverse order.\n */\n captureRules?: NetworkCaptureRule[];\n}\n\nexport interface BodyCaptureRule {\n /**\n * List of JSON pointers to capture from a request or response body (JSON objects only)\n *\n * Includes nothing, by default.\n * Any keys defined in excludelist will be excluded from the capture.\n *\n * Follows a syntax similar to [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901), except:\n * - The leading / is optional\n * - A wildcard * can be used to match any key\n * - A double-wildcard ** can be used to match any number of keys (or no keys)\n * - The structure of the JSON is preserved (ie: the captured body is a subset of the original body)\n */\n allowlist?: string[];\n /**\n * List of JSON pointers to exclude from a request or response body (JSON objects only)\n *\n * This \"uncaptures\" any attributes that are captured by the allowlist.\n */\n blocklist?: string[];\n}\n\nexport interface NetworkCaptureRule {\n /**\n * Hosts to allow for network capture. Supports wildcard.\n * @defaultValue `[\"*\"]` all hosts (except amplitude)\n */\n hosts?: string[];\n /**\n * URL patterns to allow for network capture. Supports wildcard.\n *\n * This takes precedence over `hosts`\n * @defaultValue `[\"*\"]` all URLs\n */\n urls?: (string | RegExp)[];\n /**\n * Methods to allow for network capture.\n * @defaultValue `[\"*\"]` all methods\n */\n methods?: string[];\n /**\n * Range list that defines the status codes to be captured.\n * @defaultValue `500-599`\n */\n statusCodeRange?: string;\n /**\n * Capture headers from network response.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n responseHeaders?: string[] | boolean;\n /**\n * Capture headers from network request.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n requestHeaders?: string[] | boolean;\n /**\n * Determines what to capture from the response body.\n */\n responseBody?: BodyCaptureRule;\n /**\n * Determines what to capture from the request body.\n */\n requestBody?: BodyCaptureRule;\n /**\n * Threshold for what is classified as a slow request (in seconds).\n * @defaultValue `3`\n */\n // slowThreshold?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"network-tracking.js","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"","sourcesContent":["export interface NetworkTrackingOptions {\n /**\n * Suppresses tracking Amplitude requests from network capture.\n * @defaultValue `true`\n */\n ignoreAmplitudeRequests?: boolean;\n /**\n * Hosts to ignore for network capture. Supports wildcard.\n * @defaultValue `[]`\n */\n ignoreHosts?: string[];\n /**\n * Rules to determine which network requests should be captured.\n *\n * Performs matching on array in reverse order.\n */\n captureRules?: NetworkCaptureRule[];\n}\n\nexport interface BodyCaptureRule {\n /**\n * List of JSON pointers to capture from a request or response body (JSON objects only)\n *\n * Includes nothing, by default.\n * Any keys defined in excludelist will be excluded from the capture.\n *\n * Follows a syntax similar to [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901), except:\n * - The leading / is optional\n * - A wildcard * can be used to match any key\n * - A double-wildcard ** can be used to match any number of keys (or no keys)\n * - The structure of the JSON is preserved (ie: the captured body is a subset of the original body)\n */\n allowlist?: string[];\n /**\n * List of JSON pointers to exclude from a request or response body (JSON objects only)\n *\n * This \"uncaptures\" any attributes that are captured by the allowlist.\n * @deprecated this property is deprecated in favor of \"excludelist\"\n */\n blocklist?: string[];\n /**\n * List of JSON pointers to exclude from a request or response body (JSON objects only)\n *\n * This \"uncaptures\" any attributes that are captured by the allowlist.\n */\n excludelist?: string[];\n}\n\nexport interface NetworkCaptureRule {\n /**\n * Hosts to allow for network capture. Supports wildcard.\n * @defaultValue `[\"*\"]` all hosts (except amplitude)\n */\n hosts?: string[];\n /**\n * URL patterns to allow for network capture. Supports wildcard.\n *\n * This takes precedence over `hosts`\n * @defaultValue `[\"*\"]` all URLs\n */\n urls?: (string | RegExp)[];\n /**\n * Methods to allow for network capture.\n * @defaultValue `[\"*\"]` all methods\n */\n methods?: string[];\n /**\n * Range list that defines the status codes to be captured.\n * @defaultValue `500-599`\n */\n statusCodeRange?: string;\n /**\n * Capture headers from network response.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n responseHeaders?: string[] | boolean;\n /**\n * Capture headers from network request.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n requestHeaders?: string[] | boolean;\n /**\n * Determines what to capture from the response body.\n */\n responseBody?: BodyCaptureRule;\n /**\n * Determines what to capture from the request body.\n */\n requestBody?: BodyCaptureRule;\n /**\n * Threshold for what is classified as a slow request (in seconds).\n * @defaultValue `3`\n */\n // slowThreshold?: number;\n}\n"]}
|
|
@@ -34,8 +34,15 @@ export interface BodyCaptureRule {
|
|
|
34
34
|
* List of JSON pointers to exclude from a request or response body (JSON objects only)
|
|
35
35
|
*
|
|
36
36
|
* This "uncaptures" any attributes that are captured by the allowlist.
|
|
37
|
+
* @deprecated this property is deprecated in favor of "excludelist"
|
|
37
38
|
*/
|
|
38
39
|
blocklist?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* List of JSON pointers to exclude from a request or response body (JSON objects only)
|
|
42
|
+
*
|
|
43
|
+
* This "uncaptures" any attributes that are captured by the allowlist.
|
|
44
|
+
*/
|
|
45
|
+
excludelist?: string[];
|
|
39
46
|
}
|
|
40
47
|
export interface NetworkCaptureRule {
|
|
41
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-tracking.d.ts","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"network-tracking.d.ts","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;;;OAIG;IACH,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACrC;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAM/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-tracking.js","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"","sourcesContent":["export interface NetworkTrackingOptions {\n /**\n * Suppresses tracking Amplitude requests from network capture.\n * @defaultValue `true`\n */\n ignoreAmplitudeRequests?: boolean;\n /**\n * Hosts to ignore for network capture. Supports wildcard.\n * @defaultValue `[]`\n */\n ignoreHosts?: string[];\n /**\n * Rules to determine which network requests should be captured.\n *\n * Performs matching on array in reverse order.\n */\n captureRules?: NetworkCaptureRule[];\n}\n\nexport interface BodyCaptureRule {\n /**\n * List of JSON pointers to capture from a request or response body (JSON objects only)\n *\n * Includes nothing, by default.\n * Any keys defined in excludelist will be excluded from the capture.\n *\n * Follows a syntax similar to [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901), except:\n * - The leading / is optional\n * - A wildcard * can be used to match any key\n * - A double-wildcard ** can be used to match any number of keys (or no keys)\n * - The structure of the JSON is preserved (ie: the captured body is a subset of the original body)\n */\n allowlist?: string[];\n /**\n * List of JSON pointers to exclude from a request or response body (JSON objects only)\n *\n * This \"uncaptures\" any attributes that are captured by the allowlist.\n */\n blocklist?: string[];\n}\n\nexport interface NetworkCaptureRule {\n /**\n * Hosts to allow for network capture. Supports wildcard.\n * @defaultValue `[\"*\"]` all hosts (except amplitude)\n */\n hosts?: string[];\n /**\n * URL patterns to allow for network capture. Supports wildcard.\n *\n * This takes precedence over `hosts`\n * @defaultValue `[\"*\"]` all URLs\n */\n urls?: (string | RegExp)[];\n /**\n * Methods to allow for network capture.\n * @defaultValue `[\"*\"]` all methods\n */\n methods?: string[];\n /**\n * Range list that defines the status codes to be captured.\n * @defaultValue `500-599`\n */\n statusCodeRange?: string;\n /**\n * Capture headers from network response.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n responseHeaders?: string[] | boolean;\n /**\n * Capture headers from network request.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n requestHeaders?: string[] | boolean;\n /**\n * Determines what to capture from the response body.\n */\n responseBody?: BodyCaptureRule;\n /**\n * Determines what to capture from the request body.\n */\n requestBody?: BodyCaptureRule;\n /**\n * Threshold for what is classified as a slow request (in seconds).\n * @defaultValue `3`\n */\n // slowThreshold?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"network-tracking.js","sourceRoot":"","sources":["../../../src/types/network-tracking.ts"],"names":[],"mappings":"","sourcesContent":["export interface NetworkTrackingOptions {\n /**\n * Suppresses tracking Amplitude requests from network capture.\n * @defaultValue `true`\n */\n ignoreAmplitudeRequests?: boolean;\n /**\n * Hosts to ignore for network capture. Supports wildcard.\n * @defaultValue `[]`\n */\n ignoreHosts?: string[];\n /**\n * Rules to determine which network requests should be captured.\n *\n * Performs matching on array in reverse order.\n */\n captureRules?: NetworkCaptureRule[];\n}\n\nexport interface BodyCaptureRule {\n /**\n * List of JSON pointers to capture from a request or response body (JSON objects only)\n *\n * Includes nothing, by default.\n * Any keys defined in excludelist will be excluded from the capture.\n *\n * Follows a syntax similar to [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901), except:\n * - The leading / is optional\n * - A wildcard * can be used to match any key\n * - A double-wildcard ** can be used to match any number of keys (or no keys)\n * - The structure of the JSON is preserved (ie: the captured body is a subset of the original body)\n */\n allowlist?: string[];\n /**\n * List of JSON pointers to exclude from a request or response body (JSON objects only)\n *\n * This \"uncaptures\" any attributes that are captured by the allowlist.\n * @deprecated this property is deprecated in favor of \"excludelist\"\n */\n blocklist?: string[];\n /**\n * List of JSON pointers to exclude from a request or response body (JSON objects only)\n *\n * This \"uncaptures\" any attributes that are captured by the allowlist.\n */\n excludelist?: string[];\n}\n\nexport interface NetworkCaptureRule {\n /**\n * Hosts to allow for network capture. Supports wildcard.\n * @defaultValue `[\"*\"]` all hosts (except amplitude)\n */\n hosts?: string[];\n /**\n * URL patterns to allow for network capture. Supports wildcard.\n *\n * This takes precedence over `hosts`\n * @defaultValue `[\"*\"]` all URLs\n */\n urls?: (string | RegExp)[];\n /**\n * Methods to allow for network capture.\n * @defaultValue `[\"*\"]` all methods\n */\n methods?: string[];\n /**\n * Range list that defines the status codes to be captured.\n * @defaultValue `500-599`\n */\n statusCodeRange?: string;\n /**\n * Capture headers from network response.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n responseHeaders?: string[] | boolean;\n /**\n * Capture headers from network request.\n *\n * If true, SAFE_HEADERS are captured. If false, no headers are captured.\n * If a string array, the headers in the array are captured.\n *\n * @defaultValue `false`\n */\n requestHeaders?: string[] | boolean;\n /**\n * Determines what to capture from the response body.\n */\n responseBody?: BodyCaptureRule;\n /**\n * Determines what to capture from the request body.\n */\n requestBody?: BodyCaptureRule;\n /**\n * Threshold for what is classified as a slow request (in seconds).\n * @defaultValue `3`\n */\n // slowThreshold?: number;\n}\n"]}
|