@ttt-productions/monitoring-core 0.13.0 → 0.13.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/dist/scrubber.d.ts +4 -4
- package/dist/scrubber.js +4 -4
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/scrubber.d.ts
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This package is GENERIC — it ships only obvious, domain-neutral defaults
|
|
10
10
|
* (full IPv4/IPv6 addresses, bearer/authorization tokens, generic credential
|
|
11
|
-
* assignments).
|
|
11
|
+
* assignments). Product-specific patterns (evidence-bucket URL prefixes,
|
|
12
12
|
* detector-hash shapes, NCMEC credential markers) are INJECTED by the consuming
|
|
13
|
-
* app via {@link createTelemetryScrubber}'s `patterns` option. No
|
|
13
|
+
* app via {@link createTelemetryScrubber}'s `patterns` option. No app-data-package
|
|
14
14
|
* import, no app-specific literals.
|
|
15
15
|
*/
|
|
16
16
|
/** The fixed replacement written over any matched forbidden substring. */
|
|
@@ -82,14 +82,14 @@ export declare function redactEvent<T extends ScrubbableEvent>(event: T, options
|
|
|
82
82
|
export type BeforeSendHook = (event: ScrubbableEvent, hint?: unknown) => ScrubbableEvent | null;
|
|
83
83
|
/**
|
|
84
84
|
* Build a `beforeSend` hook that scrubs every outgoing event. The app supplies
|
|
85
|
-
* its
|
|
85
|
+
* its product-specific `patterns`; generic defaults are included unless disabled.
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* Sentry.init({
|
|
89
89
|
* dsn,
|
|
90
90
|
* beforeSend: createTelemetryScrubber({
|
|
91
91
|
* patterns: [
|
|
92
|
-
* 'https://storage.googleapis.com/
|
|
92
|
+
* 'https://storage.googleapis.com/example-ncii-evidence/',
|
|
93
93
|
* /\bncmec-[a-z0-9]{16,}\b/gi,
|
|
94
94
|
* /\b[a-f0-9]{64}\b/g, // detector hash shape
|
|
95
95
|
* ],
|
package/dist/scrubber.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* This package is GENERIC — it ships only obvious, domain-neutral defaults
|
|
10
10
|
* (full IPv4/IPv6 addresses, bearer/authorization tokens, generic credential
|
|
11
|
-
* assignments).
|
|
11
|
+
* assignments). Product-specific patterns (evidence-bucket URL prefixes,
|
|
12
12
|
* detector-hash shapes, NCMEC credential markers) are INJECTED by the consuming
|
|
13
|
-
* app via {@link createTelemetryScrubber}'s `patterns` option. No
|
|
13
|
+
* app via {@link createTelemetryScrubber}'s `patterns` option. No app-data-package
|
|
14
14
|
* import, no app-specific literals.
|
|
15
15
|
*/
|
|
16
16
|
/** The fixed replacement written over any matched forbidden substring. */
|
|
@@ -134,14 +134,14 @@ export function redactEvent(event, options = {}) {
|
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
136
|
* Build a `beforeSend` hook that scrubs every outgoing event. The app supplies
|
|
137
|
-
* its
|
|
137
|
+
* its product-specific `patterns`; generic defaults are included unless disabled.
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
140
|
* Sentry.init({
|
|
141
141
|
* dsn,
|
|
142
142
|
* beforeSend: createTelemetryScrubber({
|
|
143
143
|
* patterns: [
|
|
144
|
-
* 'https://storage.googleapis.com/
|
|
144
|
+
* 'https://storage.googleapis.com/example-ncii-evidence/',
|
|
145
145
|
* /\bncmec-[a-z0-9]{16,}\b/gi,
|
|
146
146
|
* /\b[a-f0-9]{64}\b/g, // detector hash shape
|
|
147
147
|
* ],
|
package/dist/types.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ export type MonitoringInitOptions = {
|
|
|
9
9
|
* Omit to use the provider default. */
|
|
10
10
|
tracesSampleRate?: number;
|
|
11
11
|
/** Provider integrations passed through to the SDK init — e.g. `[]` to disable the
|
|
12
|
-
* default auto-integrations and keep init lightweight (the
|
|
13
|
-
* bootstrap does this). Typed loosely: it is a provider-specific pass-through. */
|
|
12
|
+
* default auto-integrations and keep init lightweight (the consuming app's Cloud
|
|
13
|
+
* Functions bootstrap does this). Typed loosely: it is a provider-specific pass-through. */
|
|
14
14
|
integrations?: unknown[];
|
|
15
15
|
};
|
|
16
16
|
export type MonitoringUser = {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;4CACwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;4CACwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;iGAE6F;IAC7F,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CA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