@arcjet/redact 1.12.0 → 1.14.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -5
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { SensitiveInfoEntity } from "@arcjet/redact-wasm";
3
3
  /**
4
4
  * Types of standard sensitive information that can be detected.
5
5
  */
6
- type ArcjetSensitiveInfoType = Exclude<SensitiveInfoEntity["tag"], "custom">;
6
+ export type ArcjetSensitiveInfoType = Exclude<SensitiveInfoEntity["tag"], "custom">;
7
7
  /**
8
8
  * Options for the `redact` function.
9
9
  *
@@ -12,7 +12,7 @@ type ArcjetSensitiveInfoType = Exclude<SensitiveInfoEntity["tag"], "custom">;
12
12
  * @template ListedEntities
13
13
  * Entity names that can be listed in the `entities` option.
14
14
  */
15
- type RedactOptions<DetectedEntities extends string | undefined = undefined, ListedEntities extends ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined> = ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined>> = {
15
+ export type RedactOptions<DetectedEntities extends string | undefined = undefined, ListedEntities extends ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined> = ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined>> = {
16
16
  /**
17
17
  * Entities to redact.
18
18
  */
@@ -65,6 +65,5 @@ type Unredact = (input: string) => string;
65
65
  * @returns
66
66
  * Promise to a tuple with the redacted string and a function to unredact it.
67
67
  */
68
- declare function redact<const DetectedEntities extends string | undefined = undefined, const ListedEntities extends ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined> = ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined>>(candidate: string, options?: RedactOptions<DetectedEntities, ListedEntities>): Promise<[string, Unredact]>;
69
- //#endregion
70
- export { ArcjetSensitiveInfoType, RedactOptions, redact };
68
+ export declare function redact<const DetectedEntities extends string | undefined = undefined, const ListedEntities extends ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined> = ArcjetSensitiveInfoType | Exclude<DetectedEntities, undefined>>(candidate: string, options?: RedactOptions<DetectedEntities, ListedEntities>): Promise<[string, Unredact]>;
69
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcjet/redact",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Arcjet sensitive information redaction library",
5
5
  "keywords": [
6
6
  "arcjet",
@@ -48,11 +48,11 @@
48
48
  "test": "npm run build && npm run test-coverage"
49
49
  },
50
50
  "dependencies": {
51
- "@arcjet/redact-wasm": "1.12.0"
51
+ "@arcjet/redact-wasm": "1.14.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@types/node": "22.20.1",
55
- "tsdown": "0.22.14",
54
+ "@types/node": "22.20.4",
55
+ "tsdown": "0.23.0",
56
56
  "typescript": "7.0.2"
57
57
  },
58
58
  "engines": {