@logtape/redaction 2.4.0-dev.934 → 2.4.0-dev.939

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
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.cts","names":[],"sources":["../src/field.ts"],"sourcesContent":[],"mappings":";;;;;;;AAeA;AAOA;AAMA;AAMY,KAnBA,YAAA,GAmBA,MAAyB,GAnBD,MAmBC;AAQrC;AAYA;AAqBA;;;AAmBoB,KAxER,aAAA,GAAgB,YAwER,EAAA;;AAnBoD;AAyCxE;;AAM0B,KA9Fd,oBAAA,GA8Fc,QAAA,GAAA,CAAA,CAAA,KAAA,EAAA,OAAA,EAAA,GAAA,OAAA,CAAA;;;AANmD;AAgC7E;AAAyC,KAlH7B,yBAAA,GAkH6B,CAAA,KAAA,EAAA,OAAA,EAAA,GAhHpC,WAgHoC,CA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B,CAAA,KAAA,EAAA,OAAA,EAAA,GA9JuB,OA8JvB,CAAA,MAAA,CAAA;;;;;;;AAElB,cApJE,qBAoJF,EApJyB,aAoJzB;;;;;;AAC0B,UAhIpB,qBAAA,SAA8B,yBAgIV,CAAA;EAAe;AAsFpD;;;;;EACgC,SAAG,aAAA,EAhNT,aAgNS;EAAI;;;;AAEd;AAgLzB;;;;;EAEU,SAAA,MAAA,CAAA,EAxXU,oBAwXV;;;;;;;;;;;;;;;;;;;UAlWO,0BAAA,SAAmC;;;;;;0BAM1B;;;;mBAKP;;;;;;;;;;;;;;;;;;UAqBF,wBAAA;;;;yBAIQ,aAAa,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgDpC,aAAA,OACR,OAAO,OAAO,aAAa,OAAO,2BAC/B,wBAAwB,gBAChC,OAAO,OAAO,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsFrB,kBAAA,OACR,OAAO,OAAO,aAAa,OAAO,0BAC/B,6BACR,OAAO;;;;;;;;;;;;;iBAgLY,uBAAA,UACX,2BACR,QAAQ"}
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 };
@@ -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.4.0-dev.934+1f77395d",
3
+ "version": "2.4.0-dev.939+f6983e7a",
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.4.0-dev.934+1f77395d"
52
+ "@logtape/logtape": "^2.4.0-dev.939+f6983e7a"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@alinea/suite": "^0.6.3",