mask-privacy 3.5.0 → 4.0.0
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/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +378 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +372 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +5 -0
- package/src/core/dlp/registry.ts +7 -1
- package/src/core/fpe.ts +179 -31
- package/src/core/fpe_utils.ts +18 -8
- package/src/core/scanner.ts +2 -1
- package/src/core/span.ts +3 -0
- package/src/core/synthesisLibrary.ts +41 -0
- package/src/index.ts +1 -1
- package/src/telemetry/audit_logger.ts +3 -1
- package/tests/bijective_fpe.test.ts +103 -0
package/dist/index.d.mts
CHANGED
|
@@ -69,6 +69,8 @@ interface Span {
|
|
|
69
69
|
confidence: number;
|
|
70
70
|
method: string;
|
|
71
71
|
language?: string;
|
|
72
|
+
ruleId?: string;
|
|
73
|
+
complianceScope?: ReadonlySet<string>;
|
|
72
74
|
maskedValue?: string;
|
|
73
75
|
}
|
|
74
76
|
|
|
@@ -371,6 +373,8 @@ interface PatternDescriptor {
|
|
|
371
373
|
validatorTag: string | null;
|
|
372
374
|
isHighEntropy: boolean;
|
|
373
375
|
supportedLocales: string[];
|
|
376
|
+
ruleId: string;
|
|
377
|
+
complianceScope: ReadonlySet<string>;
|
|
374
378
|
}
|
|
375
379
|
/**
|
|
376
380
|
* Immutable catalogue of sensitive-data regex signatures.
|
|
@@ -481,7 +485,7 @@ declare class DLPConfidenceScorer {
|
|
|
481
485
|
* Provides format-preserving encryption, local/distributed vaulting,
|
|
482
486
|
* and framework-agnostic tool interception hooks.
|
|
483
487
|
*/
|
|
484
|
-
declare const VERSION = "3.5.
|
|
488
|
+
declare const VERSION = "3.5.1";
|
|
485
489
|
|
|
486
490
|
/**
|
|
487
491
|
* Detect PII entities in text and return a list of objects with metadata.
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ interface Span {
|
|
|
69
69
|
confidence: number;
|
|
70
70
|
method: string;
|
|
71
71
|
language?: string;
|
|
72
|
+
ruleId?: string;
|
|
73
|
+
complianceScope?: ReadonlySet<string>;
|
|
72
74
|
maskedValue?: string;
|
|
73
75
|
}
|
|
74
76
|
|
|
@@ -371,6 +373,8 @@ interface PatternDescriptor {
|
|
|
371
373
|
validatorTag: string | null;
|
|
372
374
|
isHighEntropy: boolean;
|
|
373
375
|
supportedLocales: string[];
|
|
376
|
+
ruleId: string;
|
|
377
|
+
complianceScope: ReadonlySet<string>;
|
|
374
378
|
}
|
|
375
379
|
/**
|
|
376
380
|
* Immutable catalogue of sensitive-data regex signatures.
|
|
@@ -481,7 +485,7 @@ declare class DLPConfidenceScorer {
|
|
|
481
485
|
* Provides format-preserving encryption, local/distributed vaulting,
|
|
482
486
|
* and framework-agnostic tool interception hooks.
|
|
483
487
|
*/
|
|
484
|
-
declare const VERSION = "3.5.
|
|
488
|
+
declare const VERSION = "3.5.1";
|
|
485
489
|
|
|
486
490
|
/**
|
|
487
491
|
* Detect PII entities in text and return a list of objects with metadata.
|