@logtape/redaction 2.3.8 → 2.3.9
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/field.d.cts +0 -16
- package/dist/field.d.ts +0 -16
- package/dist/mod.d.cts +1 -1
- package/dist/mod.d.ts +1 -1
- package/dist/pattern.d.cts +0 -1
- package/dist/pattern.d.ts +0 -1
- package/package.json +2 -2
package/dist/field.d.cts
CHANGED
|
@@ -198,22 +198,6 @@ declare function redactByFieldAsync(sink: Sink | Sink & Disposable | Sink & Asyn
|
|
|
198
198
|
* @since 2.1.0
|
|
199
199
|
*/
|
|
200
200
|
declare function createHmacPseudonymizer(options: HmacPseudonymizerOptions): Promise<HmacPseudonymizer>;
|
|
201
|
-
/**
|
|
202
|
-
* Redacts properties from an object based on specified field patterns.
|
|
203
|
-
*
|
|
204
|
-
* This function creates a shallow copy of the input object and applies
|
|
205
|
-
* redaction rules to its properties. For properties that match the redaction
|
|
206
|
-
* patterns, the function either removes them or transforms their values based
|
|
207
|
-
* on the provided action.
|
|
208
|
-
*
|
|
209
|
-
* The redaction process is recursive and will be applied to nested objects
|
|
210
|
-
* as well, allowing for deep redaction of sensitive data in complex object
|
|
211
|
-
* structures.
|
|
212
|
-
* @param properties The properties to redact.
|
|
213
|
-
* @param options The redaction options.
|
|
214
|
-
* @returns The redacted properties.
|
|
215
|
-
* @since 0.10.0
|
|
216
|
-
*/
|
|
217
201
|
//#endregion
|
|
218
202
|
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync };
|
|
219
203
|
//# sourceMappingURL=field.d.cts.map
|
package/dist/field.d.ts
CHANGED
|
@@ -198,22 +198,6 @@ declare function redactByFieldAsync(sink: Sink | Sink & Disposable | Sink & Asyn
|
|
|
198
198
|
* @since 2.1.0
|
|
199
199
|
*/
|
|
200
200
|
declare function createHmacPseudonymizer(options: HmacPseudonymizerOptions): Promise<HmacPseudonymizer>;
|
|
201
|
-
/**
|
|
202
|
-
* Redacts properties from an object based on specified field patterns.
|
|
203
|
-
*
|
|
204
|
-
* This function creates a shallow copy of the input object and applies
|
|
205
|
-
* redaction rules to its properties. For properties that match the redaction
|
|
206
|
-
* patterns, the function either removes them or transforms their values based
|
|
207
|
-
* on the provided action.
|
|
208
|
-
*
|
|
209
|
-
* The redaction process is recursive and will be applied to nested objects
|
|
210
|
-
* as well, allowing for deep redaction of sensitive data in complex object
|
|
211
|
-
* structures.
|
|
212
|
-
* @param properties The properties to redact.
|
|
213
|
-
* @param options The redaction options.
|
|
214
|
-
* @returns The redacted properties.
|
|
215
|
-
* @since 0.10.0
|
|
216
|
-
*/
|
|
217
201
|
//#endregion
|
|
218
202
|
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync };
|
|
219
203
|
//# sourceMappingURL=field.d.ts.map
|
package/dist/mod.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RedactionTraversalOptions } from "./traversal.cjs";
|
|
2
2
|
import { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync } from "./field.cjs";
|
|
3
3
|
import { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern } from "./pattern.cjs";
|
|
4
|
-
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, RedactionTraversalOptions, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
|
4
|
+
export { type AsyncFieldRedactionAction, type AsyncFieldRedactionOptions, CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, type FieldPattern, type FieldPatterns, type FieldRedactionAction, type FieldRedactionOptions, type HmacPseudonymizer, type HmacPseudonymizerOptions, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, type RedactionTraversalOptions, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
package/dist/mod.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RedactionTraversalOptions } from "./traversal.js";
|
|
2
2
|
import { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync } from "./field.js";
|
|
3
3
|
import { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern } from "./pattern.js";
|
|
4
|
-
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, RedactionTraversalOptions, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
|
4
|
+
export { type AsyncFieldRedactionAction, type AsyncFieldRedactionOptions, CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, type FieldPattern, type FieldPatterns, type FieldRedactionAction, type FieldRedactionOptions, type HmacPseudonymizer, type HmacPseudonymizerOptions, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, type RedactionTraversalOptions, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
package/dist/pattern.d.cts
CHANGED
|
@@ -140,7 +140,6 @@ declare function redactByPattern(formatter: TextFormatter, patterns: RedactionPa
|
|
|
140
140
|
* @since 0.10.0
|
|
141
141
|
*/
|
|
142
142
|
declare function redactByPattern(formatter: ConsoleFormatter, patterns: RedactionPatterns, options?: PatternRedactionOptions): ConsoleFormatter;
|
|
143
|
-
//# sourceMappingURL=pattern.d.ts.map
|
|
144
143
|
//#endregion
|
|
145
144
|
export { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern };
|
|
146
145
|
//# sourceMappingURL=pattern.d.cts.map
|
package/dist/pattern.d.ts
CHANGED
|
@@ -140,7 +140,6 @@ declare function redactByPattern(formatter: TextFormatter, patterns: RedactionPa
|
|
|
140
140
|
* @since 0.10.0
|
|
141
141
|
*/
|
|
142
142
|
declare function redactByPattern(formatter: ConsoleFormatter, patterns: RedactionPatterns, options?: PatternRedactionOptions): ConsoleFormatter;
|
|
143
|
-
//# sourceMappingURL=pattern.d.ts.map
|
|
144
143
|
//#endregion
|
|
145
144
|
export { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, PatternRedactionOptions, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern };
|
|
146
145
|
//# sourceMappingURL=pattern.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logtape/redaction",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.9",
|
|
4
4
|
"description": "Redact sensitive data from log messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logging",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dist/"
|
|
50
50
|
],
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@logtape/logtape": "^2.3.
|
|
52
|
+
"@logtape/logtape": "^2.3.9"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@alinea/suite": "^0.6.3",
|