@logtape/redaction 2.1.15 → 2.1.17
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
|
@@ -173,22 +173,6 @@ declare function redactByFieldAsync(sink: Sink | Sink & Disposable | Sink & Asyn
|
|
|
173
173
|
* @since 2.1.0
|
|
174
174
|
*/
|
|
175
175
|
declare function createHmacPseudonymizer(options: HmacPseudonymizerOptions): Promise<HmacPseudonymizer>;
|
|
176
|
-
/**
|
|
177
|
-
* Redacts properties from an object based on specified field patterns.
|
|
178
|
-
*
|
|
179
|
-
* This function creates a shallow copy of the input object and applies
|
|
180
|
-
* redaction rules to its properties. For properties that match the redaction
|
|
181
|
-
* patterns, the function either removes them or transforms their values based
|
|
182
|
-
* on the provided action.
|
|
183
|
-
*
|
|
184
|
-
* The redaction process is recursive and will be applied to nested objects
|
|
185
|
-
* as well, allowing for deep redaction of sensitive data in complex object
|
|
186
|
-
* structures.
|
|
187
|
-
* @param properties The properties to redact.
|
|
188
|
-
* @param options The redaction options.
|
|
189
|
-
* @returns The redacted properties.
|
|
190
|
-
* @since 0.10.0
|
|
191
|
-
*/
|
|
192
176
|
//#endregion
|
|
193
177
|
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync };
|
|
194
178
|
//# sourceMappingURL=field.d.cts.map
|
package/dist/field.d.ts
CHANGED
|
@@ -173,22 +173,6 @@ declare function redactByFieldAsync(sink: Sink | Sink & Disposable | Sink & Asyn
|
|
|
173
173
|
* @since 2.1.0
|
|
174
174
|
*/
|
|
175
175
|
declare function createHmacPseudonymizer(options: HmacPseudonymizerOptions): Promise<HmacPseudonymizer>;
|
|
176
|
-
/**
|
|
177
|
-
* Redacts properties from an object based on specified field patterns.
|
|
178
|
-
*
|
|
179
|
-
* This function creates a shallow copy of the input object and applies
|
|
180
|
-
* redaction rules to its properties. For properties that match the redaction
|
|
181
|
-
* patterns, the function either removes them or transforms their values based
|
|
182
|
-
* on the provided action.
|
|
183
|
-
*
|
|
184
|
-
* The redaction process is recursive and will be applied to nested objects
|
|
185
|
-
* as well, allowing for deep redaction of sensitive data in complex object
|
|
186
|
-
* structures.
|
|
187
|
-
* @param properties The properties to redact.
|
|
188
|
-
* @param options The redaction options.
|
|
189
|
-
* @returns The redacted properties.
|
|
190
|
-
* @since 0.10.0
|
|
191
|
-
*/
|
|
192
176
|
//#endregion
|
|
193
177
|
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync };
|
|
194
178
|
//# sourceMappingURL=field.d.ts.map
|
package/dist/mod.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync } from "./field.cjs";
|
|
2
2
|
import { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern } from "./pattern.cjs";
|
|
3
|
-
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
|
3
|
+
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, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
package/dist/mod.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, createHmacPseudonymizer, redactByField, redactByFieldAsync } from "./field.js";
|
|
2
2
|
import { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern } from "./pattern.js";
|
|
3
|
-
export { AsyncFieldRedactionAction, AsyncFieldRedactionOptions, CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, FieldPattern, FieldPatterns, FieldRedactionAction, FieldRedactionOptions, HmacPseudonymizer, HmacPseudonymizerOptions, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
|
3
|
+
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, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, createHmacPseudonymizer, redactByField, redactByFieldAsync, redactByPattern };
|
package/dist/pattern.d.cts
CHANGED
|
@@ -121,7 +121,6 @@ declare function redactByPattern(formatter: TextFormatter, patterns: RedactionPa
|
|
|
121
121
|
* @since 0.10.0
|
|
122
122
|
*/
|
|
123
123
|
declare function redactByPattern(formatter: ConsoleFormatter, patterns: RedactionPatterns): ConsoleFormatter;
|
|
124
|
-
//# sourceMappingURL=pattern.d.ts.map
|
|
125
124
|
//#endregion
|
|
126
125
|
export { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern };
|
|
127
126
|
//# sourceMappingURL=pattern.d.cts.map
|
package/dist/pattern.d.ts
CHANGED
|
@@ -121,7 +121,6 @@ declare function redactByPattern(formatter: TextFormatter, patterns: RedactionPa
|
|
|
121
121
|
* @since 0.10.0
|
|
122
122
|
*/
|
|
123
123
|
declare function redactByPattern(formatter: ConsoleFormatter, patterns: RedactionPatterns): ConsoleFormatter;
|
|
124
|
-
//# sourceMappingURL=pattern.d.ts.map
|
|
125
124
|
//#endregion
|
|
126
125
|
export { CREDIT_CARD_NUMBER_PATTERN, EMAIL_ADDRESS_PATTERN, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByPattern };
|
|
127
126
|
//# sourceMappingURL=pattern.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logtape/redaction",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
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.1.
|
|
52
|
+
"@logtape/logtape": "^2.1.17"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@alinea/suite": "^0.6.3",
|