@virtru/dsp-sdk 0.3.2 → 0.4.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/.rush/temp/chunked-rush-logs/dsp-sdk._phase_build.chunks.jsonl +9 -20
- package/.rush/temp/chunked-rush-logs/dsp-sdk._phase_test.chunks.jsonl +28 -16
- package/.rush/temp/package-deps__phase_build.json +7 -5
- package/.rush/temp/shrinkwrap-deps.json +821 -116
- package/CHANGELOG.json +14 -0
- package/CHANGELOG.md +8 -1
- package/config/jest.config.json +6 -0
- package/config/rig.json +8 -0
- package/lib-commonjs/src/gen/buf/validate/validate_pb.js +487 -0
- package/lib-commonjs/src/gen/config/v1/config_pb.js +142 -0
- package/lib-commonjs/src/gen/config/v1/kas_config_pb.js +72 -0
- package/lib-commonjs/src/gen/config/v1/meta_pb.js +36 -0
- package/lib-commonjs/src/gen/config/v1/outlook_config_pb.js +67 -0
- package/lib-commonjs/src/gen/config/v1/secureviewer_config_pb.js +67 -0
- package/lib-commonjs/src/gen/config/v1/tagging_pb.js +246 -0
- package/lib-commonjs/src/gen/google/api/annotations_pb.js +33 -0
- package/lib-commonjs/src/gen/google/api/http_pb.js +44 -0
- package/lib-commonjs/src/gen/policyimportexport/v1/policy_import_export_pb.js +93 -0
- package/lib-commonjs/src/gen/shared/v1/shared_pb.js +95 -0
- package/lib-commonjs/src/gen/tagging/pdp/v2/tagging_pb.js +277 -0
- package/lib-commonjs/src/gen/version/v1/version_pb.js +40 -0
- package/lib-commonjs/src/gen/virtru/common/common_pb.js +76 -0
- package/lib-commonjs/src/gen/virtru/policy/certificates/v1/certificates_pb.js +77 -0
- package/lib-commonjs/src/gen/virtru/policy/objects_pb.js +143 -0
- package/lib-commonjs/src/index.js +48 -0
- package/lib-commonjs/src/lib/client.js +66 -0
- package/lib-commonjs/src/lib/consts.js +10 -0
- package/lib-commonjs/src/lib/dsp.js +49 -0
- package/lib-commonjs/src/lib/utils.js +402 -0
- package/lib-commonjs/tests/dsp-client.test.js +75 -0
- package/lib-commonjs/tests/dsp.test.js +94 -0
- package/lib-commonjs/tests/mocks/create-export-artifacts.js +17 -0
- package/lib-commonjs/tests/mocks/tagging-pdp-tag.js +15 -0
- package/lib-commonjs/tests/mocks/well-known-configuration.js +16 -0
- package/lib-commonjs/tests/setup-msw.js +33 -0
- package/package.json +5 -4
- package/temp/build/lint/_eslint-5eVG3S6w.json +30 -0
- package/temp/test/jest/haste-map-b055a9550e6d9f9b43d8ad29b1607278-49d19aee56a0732eca9c014a51272338-8710993d07b75a801b0956e67ffc46fa +0 -0
- package/vitest.config.ts +1 -0
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
{"kind":"O","text":"Invoking: heft build --clean --production\n"}
|
|
2
|
-
{"kind":"O","text":"
|
|
3
|
-
{"kind":"O","text":"\n"}
|
|
4
|
-
{"kind":"O","text":"
|
|
5
|
-
{"kind":"O","text":"
|
|
6
|
-
{"kind":"O","text":"
|
|
7
|
-
{"kind":"O","text":"
|
|
8
|
-
{"kind":"O","text":"
|
|
9
|
-
{"kind":"O","text":" ----
|
|
10
|
-
{"kind":"O","text":"
|
|
11
|
-
{"kind":"O","text":"[typescript] The TypeScript compiler version 5.8.2 is newer than the latest version that was tested with Heft (5.0); it may not work correctly.\n"}
|
|
12
|
-
{"kind":"O","text":"[typescript] Using TypeScript version 5.8.2\n"}
|
|
13
|
-
{"kind":"O","text":" ---- Compile finished (4355ms) ---- \n"}
|
|
14
|
-
{"kind":"O","text":" ---- Bundle started ---- \n"}
|
|
15
|
-
{"kind":"O","text":" ---- Bundle finished (1ms) ---- \n"}
|
|
16
|
-
{"kind":"O","text":" ---- Post-build started ---- \n"}
|
|
17
|
-
{"kind":"O","text":" ---- Post-build finished (0ms) ---- \n"}
|
|
18
|
-
{"kind":"O","text":"-------------------- Finished (4.689s) --------------------\n"}
|
|
19
|
-
{"kind":"O","text":"Project: @virtru/dsp-sdk@0.3.1\n"}
|
|
20
|
-
{"kind":"O","text":"Heft version: 0.50.7\n"}
|
|
21
|
-
{"kind":"O","text":"Node version: v22.20.0\n"}
|
|
2
|
+
{"kind":"O","text":" ---- build started ---- \n"}
|
|
3
|
+
{"kind":"O","text":"[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1\n"}
|
|
4
|
+
{"kind":"O","text":"[build:sass] Starting...\n"}
|
|
5
|
+
{"kind":"O","text":"[build:sass] No SCSS files to process.\n"}
|
|
6
|
+
{"kind":"O","text":"[build:typescript] Using TypeScript version 5.8.2\n"}
|
|
7
|
+
{"kind":"O","text":"[build:webpack] No Webpack configuration found\n"}
|
|
8
|
+
{"kind":"O","text":"[build:lint] Using ESLint version 9.39.3\n"}
|
|
9
|
+
{"kind":"O","text":" ---- build finished (9.629s) ---- \n"}
|
|
10
|
+
{"kind":"O","text":"-------------------- Finished (9.637s) --------------------\n"}
|
|
@@ -1,29 +1,41 @@
|
|
|
1
|
-
{"kind":"O","text":"Invoking: npm run test && heft test --
|
|
1
|
+
{"kind":"O","text":"Invoking: npm run test && heft test --production\n"}
|
|
2
2
|
{"kind":"O","text":"\n"}
|
|
3
|
-
{"kind":"O","text":"> @virtru/dsp-sdk@0.3.
|
|
4
|
-
{"kind":"O","text":">
|
|
3
|
+
{"kind":"O","text":"> @virtru/dsp-sdk@0.3.2 test\n"}
|
|
4
|
+
{"kind":"O","text":"> vitest --run\n"}
|
|
5
5
|
{"kind":"O","text":"\n"}
|
|
6
6
|
{"kind":"E","text":"\u001b[33mThe CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.\u001b[39m\n"}
|
|
7
7
|
{"kind":"O","text":"\n"}
|
|
8
8
|
{"kind":"O","text":"\u001b[1m\u001b[46m RUN \u001b[49m\u001b[22m \u001b[36mv3.1.4 \u001b[39m\u001b[90m/home/runner/_work/js-lib-monorepo/js-lib-monorepo/libraries/dsp-sdk\u001b[39m\n"}
|
|
9
9
|
{"kind":"O","text":"\n"}
|
|
10
|
-
{"kind":"O","text":" \u001b[32m✓\u001b[39m src/lib/utils.test.ts \u001b[2m(\u001b[22m\u001b[2m16 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m
|
|
10
|
+
{"kind":"O","text":" \u001b[32m✓\u001b[39m src/lib/utils.test.ts \u001b[2m(\u001b[22m\u001b[2m16 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m 79\u001b[2mms\u001b[22m\u001b[39m\n"}
|
|
11
11
|
{"kind":"E","text":"\u001b[90mstderr\u001b[2m | tests/dsp.test.ts\u001b[2m > \u001b[22m\u001b[2mshould throw an error if platformUrl is not provided\n"}
|
|
12
12
|
{"kind":"E","text":"\u001b[22m\u001b[39mWarning: 'platformUrl' is required for security to ensure the SDK uses the platform-configured Key Access Server list\n"}
|
|
13
13
|
{"kind":"E","text":"\n"}
|
|
14
|
-
{"kind":"O","text":" \u001b[32m✓\u001b[39m tests/dsp.test.ts \u001b[2m(\u001b[22m\u001b[
|
|
15
|
-
{"kind":"O","text":" \u001b[32m✓\u001b[39m tests/dsp
|
|
14
|
+
{"kind":"O","text":" \u001b[32m✓\u001b[39m tests/dsp-client.test.ts \u001b[2m(\u001b[22m\u001b[2m5 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m 47\u001b[2mms\u001b[22m\u001b[39m\n"}
|
|
15
|
+
{"kind":"O","text":" \u001b[32m✓\u001b[39m tests/dsp.test.ts \u001b[2m(\u001b[22m\u001b[2m8 tests\u001b[22m\u001b[2m)\u001b[22m\u001b[32m 69\u001b[2mms\u001b[22m\u001b[39m\n"}
|
|
16
16
|
{"kind":"O","text":"\n"}
|
|
17
17
|
{"kind":"O","text":"\u001b[2m Test Files \u001b[22m \u001b[1m\u001b[32m3 passed\u001b[39m\u001b[22m\u001b[90m (3)\u001b[39m\n"}
|
|
18
18
|
{"kind":"O","text":"\u001b[2m Tests \u001b[22m \u001b[1m\u001b[32m29 passed\u001b[39m\u001b[22m\u001b[90m (29)\u001b[39m\n"}
|
|
19
|
-
{"kind":"O","text":"\u001b[2m Start at \u001b[22m
|
|
20
|
-
{"kind":"O","text":"\u001b[2m Duration \u001b[22m
|
|
19
|
+
{"kind":"O","text":"\u001b[2m Start at \u001b[22m 15:06:59\n"}
|
|
20
|
+
{"kind":"O","text":"\u001b[2m Duration \u001b[22m 6.42s\u001b[2m (transform 833ms, setup 0ms, collect 5.32s, tests 195ms, environment 7.86s, prepare 1.40s)\u001b[22m\n"}
|
|
21
21
|
{"kind":"O","text":"\n"}
|
|
22
|
-
{"kind":"O","text":"
|
|
23
|
-
{"kind":"O","text":"\n"}
|
|
24
|
-
{"kind":"O","text":"
|
|
25
|
-
{"kind":"O","text":"
|
|
26
|
-
{"kind":"O","text":"
|
|
27
|
-
{"kind":"O","text":"
|
|
28
|
-
{"kind":"O","text":"
|
|
29
|
-
{"kind":"O","text":"
|
|
22
|
+
{"kind":"O","text":" ---- build started ---- \n"}
|
|
23
|
+
{"kind":"O","text":"[build:set-browserslist-ignore-old-data-env-var] Setting environment variable BROWSERSLIST_IGNORE_OLD_DATA=1\n"}
|
|
24
|
+
{"kind":"O","text":"[build:sass] Starting...\n"}
|
|
25
|
+
{"kind":"O","text":"[build:sass] No SCSS files to process.\n"}
|
|
26
|
+
{"kind":"O","text":"[build:typescript] Using TypeScript version 5.8.2\n"}
|
|
27
|
+
{"kind":"O","text":"[build:webpack] No Webpack configuration found\n"}
|
|
28
|
+
{"kind":"O","text":"[build:lint] Using ESLint version 9.39.3\n"}
|
|
29
|
+
{"kind":"O","text":" ---- build finished (11.802s) ---- \n"}
|
|
30
|
+
{"kind":"O","text":" ---- test started ---- \n"}
|
|
31
|
+
{"kind":"O","text":"[test:jest] Using Jest version 29.5.0\n"}
|
|
32
|
+
{"kind":"O","text":"No tests found, exiting with code 0\n"}
|
|
33
|
+
{"kind":"O","text":"[test:jest] \n"}
|
|
34
|
+
{"kind":"O","text":"[test:jest] Run start. 0 test suites\n"}
|
|
35
|
+
{"kind":"O","text":"[test:jest] \n"}
|
|
36
|
+
{"kind":"O","text":"[test:jest] Tests finished:\n"}
|
|
37
|
+
{"kind":"O","text":"[test:jest] Successes: 0\n"}
|
|
38
|
+
{"kind":"O","text":"[test:jest] Failures: 0\n"}
|
|
39
|
+
{"kind":"O","text":"[test:jest] Total: 0\n"}
|
|
40
|
+
{"kind":"O","text":" ---- test finished (0.539s) ---- \n"}
|
|
41
|
+
{"kind":"O","text":"-------------------- Finished (12.352s) --------------------\n"}
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
"files": {
|
|
3
3
|
"libraries/dsp-sdk/.gitignore": "63ff9c3c57396245247098596ed79b36fd1d76a6",
|
|
4
4
|
"libraries/dsp-sdk/.prettierrc": "544138be45652abc7bc3873341deacd3f4f90c61",
|
|
5
|
-
"libraries/dsp-sdk/.rush/temp/shrinkwrap-deps.json": "
|
|
6
|
-
"libraries/dsp-sdk/CHANGELOG.json": "
|
|
7
|
-
"libraries/dsp-sdk/CHANGELOG.md": "
|
|
5
|
+
"libraries/dsp-sdk/.rush/temp/shrinkwrap-deps.json": "a4eeeeba68ec205fd317124c3fdfa357ead27627",
|
|
6
|
+
"libraries/dsp-sdk/CHANGELOG.json": "ca29e50259bbff282acade49bc6359bd6766b586",
|
|
7
|
+
"libraries/dsp-sdk/CHANGELOG.md": "d8a07fe176431564953180de7ce9b50aa6e4ccca",
|
|
8
8
|
"libraries/dsp-sdk/LICENSE": "5e54fddf2616afa01260ae06b6b1f09e07d71077",
|
|
9
9
|
"libraries/dsp-sdk/README.md": "3ef29762152a5f57734f01b06a03775a7f17e633",
|
|
10
10
|
"libraries/dsp-sdk/buf.gen.yaml": "0b5a95cb8a60b7e8f29cb816359fe7ce6cfc5a7e",
|
|
11
11
|
"libraries/dsp-sdk/buf.yaml": "c135bda377d5b6c143504328b57e85ed816dfa13",
|
|
12
|
+
"libraries/dsp-sdk/config/jest.config.json": "c2d3e44f320a6703b01ad6ac1fc562a9400e31a7",
|
|
13
|
+
"libraries/dsp-sdk/config/rig.json": "a75d77481094429136022458a72d3a98973e2c42",
|
|
12
14
|
"libraries/dsp-sdk/eslint.config.mjs": "a0b9402f6b9a945b8610d66a0b564c7b59238aba",
|
|
13
|
-
"libraries/dsp-sdk/package.json": "
|
|
15
|
+
"libraries/dsp-sdk/package.json": "2bed875861c06f79257b4d420754cb47b3130483",
|
|
14
16
|
"libraries/dsp-sdk/src/gen/buf/validate/validate_pb.ts": "f944ab8ae554fdc9cc773fdd55fd90557407f8c6",
|
|
15
17
|
"libraries/dsp-sdk/src/gen/config/formatters/testdata/v1/test_pb.ts": "6875e00a5ea2500550890b52aa82b98ccba04692",
|
|
16
18
|
"libraries/dsp-sdk/src/gen/config/v1/config_connect.ts": "c9a01a4aa689225187c3dcdd2fb7d530d2ebdfe8",
|
|
@@ -60,7 +62,7 @@
|
|
|
60
62
|
"libraries/dsp-sdk/tests/setup-msw.ts": "63f071cd77ee3f0ba56fc25fbc928ca3e4920ddf",
|
|
61
63
|
"libraries/dsp-sdk/tsconfig.json": "0aa1510e86d91b5c0cb278421d346dac0d9f1a67",
|
|
62
64
|
"libraries/dsp-sdk/update-protos.sh": "5e5f1f25463ffacd1b558ef2b4cb99d87e086d39",
|
|
63
|
-
"libraries/dsp-sdk/vitest.config.ts": "
|
|
65
|
+
"libraries/dsp-sdk/vitest.config.ts": "c73b5f508059bd3ea9bdb0b00a5cd10f84ec34dd"
|
|
64
66
|
},
|
|
65
67
|
"arguments": "heft build --clean --production"
|
|
66
68
|
}
|