@logtape/redaction 2.0.24 → 2.0.26

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 CHANGED
@@ -73,22 +73,6 @@ interface FieldRedactionOptions {
73
73
  * @since 0.10.0
74
74
  */
75
75
  declare function redactByField(sink: Sink | Sink & Disposable | Sink & AsyncDisposable, options?: FieldRedactionOptions | FieldPatterns): Sink | Sink & Disposable | Sink & AsyncDisposable;
76
- /**
77
- * Redacts properties from an object based on specified field patterns.
78
- *
79
- * This function creates a shallow copy of the input object and applies
80
- * redaction rules to its properties. For properties that match the redaction
81
- * patterns, the function either removes them or transforms their values based
82
- * on the provided action.
83
- *
84
- * The redaction process is recursive and will be applied to nested objects
85
- * as well, allowing for deep redaction of sensitive data in complex object
86
- * structures.
87
- * @param properties The properties to redact.
88
- * @param options The redaction options.
89
- * @returns The redacted properties.
90
- * @since 0.10.0
91
- */
92
76
  //#endregion
93
77
  export { DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionOptions, redactByField };
94
78
  //# sourceMappingURL=field.d.cts.map
package/dist/field.d.ts CHANGED
@@ -73,22 +73,6 @@ interface FieldRedactionOptions {
73
73
  * @since 0.10.0
74
74
  */
75
75
  declare function redactByField(sink: Sink | Sink & Disposable | Sink & AsyncDisposable, options?: FieldRedactionOptions | FieldPatterns): Sink | Sink & Disposable | Sink & AsyncDisposable;
76
- /**
77
- * Redacts properties from an object based on specified field patterns.
78
- *
79
- * This function creates a shallow copy of the input object and applies
80
- * redaction rules to its properties. For properties that match the redaction
81
- * patterns, the function either removes them or transforms their values based
82
- * on the provided action.
83
- *
84
- * The redaction process is recursive and will be applied to nested objects
85
- * as well, allowing for deep redaction of sensitive data in complex object
86
- * structures.
87
- * @param properties The properties to redact.
88
- * @param options The redaction options.
89
- * @returns The redacted properties.
90
- * @since 0.10.0
91
- */
92
76
  //#endregion
93
77
  export { DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionOptions, redactByField };
94
78
  //# sourceMappingURL=field.d.ts.map
package/dist/mod.d.cts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionOptions, redactByField } 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 { CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, FieldPattern, FieldPatterns, FieldRedactionOptions, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByField, redactByPattern };
3
+ export { CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, type FieldPattern, type FieldPatterns, type FieldRedactionOptions, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByField, redactByPattern };
package/dist/mod.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { DEFAULT_REDACT_FIELDS, FieldPattern, FieldPatterns, FieldRedactionOptions, redactByField } 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 { CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, FieldPattern, FieldPatterns, FieldRedactionOptions, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByField, redactByPattern };
3
+ export { CREDIT_CARD_NUMBER_PATTERN, DEFAULT_REDACT_FIELDS, EMAIL_ADDRESS_PATTERN, type FieldPattern, type FieldPatterns, type FieldRedactionOptions, JWT_PATTERN, KR_RRN_PATTERN, RedactionPattern, RedactionPatterns, US_SSN_PATTERN, redactByField, redactByPattern };
@@ -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.0.24",
3
+ "version": "2.0.26",
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.0.24"
52
+ "@logtape/logtape": "^2.0.26"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@alinea/suite": "^0.6.3",