@virtru/dsp-sdk 0.1.10-pr604.7ef7a158
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/.prettierrc +3 -0
- package/.rush/temp/operation/_phase_build/state.json +3 -0
- package/.rush/temp/package-deps__phase_build.json +41 -0
- package/.rush/temp/shrinkwrap-deps.json +329 -0
- package/CHANGELOG.json +103 -0
- package/CHANGELOG.md +53 -0
- package/README.md +98 -0
- package/dist/src/gen/buf/validate/validate_pb.d.ts +4517 -0
- package/dist/src/gen/buf/validate/validate_pb.js +484 -0
- package/dist/src/gen/config/v1/config_pb.d.ts +88 -0
- package/dist/src/gen/config/v1/config_pb.js +46 -0
- package/dist/src/gen/config/v1/meta_pb.d.ts +37 -0
- package/dist/src/gen/config/v1/meta_pb.js +33 -0
- package/dist/src/gen/config/v1/tagging_pb.d.ts +264 -0
- package/dist/src/gen/config/v1/tagging_pb.js +188 -0
- package/dist/src/gen/google/api/annotations_pb.d.ts +13 -0
- package/dist/src/gen/google/api/annotations_pb.js +30 -0
- package/dist/src/gen/google/api/http_pb.d.ts +440 -0
- package/dist/src/gen/google/api/http_pb.js +41 -0
- package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.d.ts +241 -0
- package/dist/src/gen/policyimportexport/v1/policy_import_export_pb.js +89 -0
- package/dist/src/gen/shared/v1/shared_pb.d.ts +172 -0
- package/dist/src/gen/shared/v1/shared_pb.js +92 -0
- package/dist/src/gen/tagging/pdp/v2/tagging_pb.d.ts +872 -0
- package/dist/src/gen/tagging/pdp/v2/tagging_pb.js +274 -0
- package/dist/src/gen/version/v1/version_pb.d.ts +96 -0
- package/dist/src/gen/version/v1/version_pb.js +37 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.js +28 -0
- package/dist/src/lib/client.d.ts +33 -0
- package/dist/src/lib/client.js +60 -0
- package/dist/src/lib/dsp.d.ts +18 -0
- package/dist/src/lib/dsp.js +44 -0
- package/dist/src/lib/utils.d.ts +15 -0
- package/dist/src/lib/utils.js +35 -0
- package/dist/tests/dsp-client.test.d.ts +1 -0
- package/dist/tests/dsp-client.test.js +49 -0
- package/dist/tests/dsp.test.d.ts +1 -0
- package/dist/tests/dsp.test.js +71 -0
- package/dist/tests/mocks/create-export-artifacts.d.ts +2 -0
- package/dist/tests/mocks/create-export-artifacts.js +13 -0
- package/dist/tests/mocks/tagging-pdp-tag.d.ts +2 -0
- package/dist/tests/mocks/tagging-pdp-tag.js +11 -0
- package/dist/tests/mocks/well-known-configuration.d.ts +2 -0
- package/dist/tests/mocks/well-known-configuration.js +12 -0
- package/dist/tests/setup-msw.d.ts +9 -0
- package/dist/tests/setup-msw.js +30 -0
- package/eslint.config.mjs +28 -0
- package/package.json +47 -0
- package/src/gen/buf/validate/validate_pb.ts +4879 -0
- package/src/gen/config/formatters/testdata/v1/test_pb.ts +287 -0
- package/src/gen/config/v1/config_pb.ts +137 -0
- package/src/gen/config/v1/meta_pb.ts +72 -0
- package/src/gen/config/v1/tagging_pb.ts +355 -0
- package/src/gen/google/api/annotations_pb.ts +43 -0
- package/src/gen/google/api/http_pb.ts +486 -0
- package/src/gen/helloworld/v1/helloworld_pb.ts +98 -0
- package/src/gen/policyimportexport/v1/policy_import_export_pb.ts +324 -0
- package/src/gen/shared/v1/shared_pb.ts +240 -0
- package/src/gen/shared/v2/shared_pb.ts +122 -0
- package/src/gen/tagging/pdp/v2/externalprocessors/processor_pb.ts +709 -0
- package/src/gen/tagging/pdp/v2/stanag/stanag_pb.ts +953 -0
- package/src/gen/tagging/pdp/v2/tagging_pb.ts +1064 -0
- package/src/gen/version/v1/version_pb.ts +143 -0
- package/src/index.ts +49 -0
- package/src/lib/client.ts +83 -0
- package/src/lib/dsp.ts +65 -0
- package/src/lib/utils.ts +43 -0
- package/src/vite-env.d.ts +7 -0
- package/tests/dsp-client.test.ts +67 -0
- package/tests/dsp.test.ts +95 -0
- package/tests/mocks/create-export-artifacts.ts +16 -0
- package/tests/mocks/tagging-pdp-tag.ts +13 -0
- package/tests/mocks/well-known-configuration.ts +15 -0
- package/tests/setup-msw.ts +35 -0
- package/tsconfig.json +32 -0
- package/vitest.config.ts +42 -0
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Virtru Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Your use of this file is governed by the Virtu Terms of Service <https://www.virtru.com/terms-of-service/>.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { defineConfig } from 'vitest/config';
|
|
8
|
+
import path from 'path';
|
|
9
|
+
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [],
|
|
12
|
+
test: {
|
|
13
|
+
environment: 'jsdom',
|
|
14
|
+
globals: true,
|
|
15
|
+
browser: {
|
|
16
|
+
headless: true,
|
|
17
|
+
provider: 'playwright',
|
|
18
|
+
enabled: true,
|
|
19
|
+
instances: [
|
|
20
|
+
{
|
|
21
|
+
browser: 'chromium',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
viewport: { width: 640, height: 480 },
|
|
25
|
+
},
|
|
26
|
+
setupFiles: [],
|
|
27
|
+
},
|
|
28
|
+
build: {
|
|
29
|
+
outDir: 'dist',
|
|
30
|
+
},
|
|
31
|
+
resolve: {
|
|
32
|
+
alias: {
|
|
33
|
+
'@src': path.resolve(__dirname, 'src'),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
define: {
|
|
37
|
+
global: {},
|
|
38
|
+
process: {
|
|
39
|
+
env: {},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|