@optimuslabs/harness-map-staging 1.5.31 → 1.5.32
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/pii_scrub.js +15 -0
- package/package.json +5 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pii-scrub shim: the one place that imports @optimuslabs/pii-scrub-staging.
|
|
3
|
+
*
|
|
4
|
+
* Loaded the way tofu.ts loads tofu: the sibling local dist when environment=development and it
|
|
5
|
+
* is built, the published npm package otherwise.
|
|
6
|
+
*/
|
|
7
|
+
import path from "path";
|
|
8
|
+
import { fileURLToPath } from "url";
|
|
9
|
+
import { shouldUseLocalTofuDist } from "./tofu_environment.js";
|
|
10
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
const localPiiScrubPath = path.join(__dirname, "../../pii-scrub/dist/index.js");
|
|
12
|
+
const piiScrub = (shouldUseLocalTofuDist(localPiiScrubPath)
|
|
13
|
+
? await import(localPiiScrubPath)
|
|
14
|
+
: await import("@optimuslabs/pii-scrub-staging"));
|
|
15
|
+
export const { SCRUBBER_VERSION, containsPlaceholder, scrubFields, scrubText, scrubValue } = piiScrub;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optimuslabs/harness-map-staging",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.32",
|
|
4
4
|
"description": "CLI helpers for logging hardware UUIDs and posting startup payloads to Optimus Security.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^24.10.1",
|
|
52
|
-
"@vitest/coverage-v8": "^4.1.
|
|
53
|
-
"@vitest/ui": "^4.1.
|
|
52
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
53
|
+
"@vitest/ui": "^4.1.12",
|
|
54
54
|
"ts-node": "^10.9.2",
|
|
55
55
|
"typescript": "^5.4.5",
|
|
56
|
-
"vitest": "^4.1.
|
|
56
|
+
"vitest": "^4.1.12"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@optimuslabs/tofu-staging": "^0.1.18",
|
|
60
60
|
"axios": "^1.20.0",
|
|
61
61
|
"canonicalize": "^2.1.0",
|
|
62
|
-
"smol-toml": "^1.
|
|
62
|
+
"smol-toml": "^1.9.1"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|