Skip to content

Commit 6c9e463

Browse files
committed
Add qrc module to exports
Prune exports to avoid polluting module with unnecessary stuff.
1 parent 949cb7f commit 6c9e463

File tree

7 files changed

+8
-23
lines changed

7 files changed

+8
-23
lines changed

keeperapi/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

keeperapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@keeper-security/keeperapi",
33
"description": "Keeper API Javascript SDK",
4-
"version": "16.0.91",
4+
"version": "16.0.92",
55
"browser": "dist/index.es.js",
66
"main": "dist/index.cjs.js",
77
"types": "dist/node/index.d.ts",

keeperapi/src/__tests__/qrc.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ import {
1515
mlKemKeygen,
1616
mlKemEncapsulate,
1717
mlKemDecapsulate,
18-
ML_KEM_768_CIPHERTEXT_LENGTH,
1918
} from '../qrc';
20-
import { EC_PUBLIC_KEY_LENGTH, EC_SHARED_SECRET_LENGTH, ML_KEM_1024_CIPHERTEXT_LENGTH } from '../qrc/constants';
19+
import { EC_PUBLIC_KEY_LENGTH, EC_SHARED_SECRET_LENGTH, ML_KEM_768_CIPHERTEXT_LENGTH, ML_KEM_1024_CIPHERTEXT_LENGTH } from '../qrc/constants';
2120
import { getKeeperMlKemKeys, getKeeperMlKemKeyVariant, isAllowedMlKemKeyId } from '../transmissionKeys';
2221

2322
Object.assign(global, { TextDecoder, TextEncoder });

keeperapi/src/browser/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export * from "../utils";
1010
export * from "../platform";
1111
export * from "../proto";
1212
export * from "../cryptoWorker";
13+
export * from "../qrc";
1314
import {connectPlatform} from "../platform";
1415
import {browserPlatform} from "./platform";
1516

keeperapi/src/node/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export * from "../utils";
1010
export * from "../platform";
1111
export * from "../proto";
1212
export * from "../cryptoWorker";
13+
export * from "../qrc";
1314
import {connectPlatform} from "../platform";
1415
import {nodePlatform} from "./platform";
1516

keeperapi/src/qrc/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ export {
1818
Ciphersuite,
1919
MlKemVariant,
2020
getMlKemVariant,
21-
getMlKemCiphertextLength,
22-
getMlKemPublicKeyLength,
23-
QRC_PROTOCOL_VERSION,
24-
OPTIONAL_DATA_LENGTH,
25-
ML_KEM_768_CIPHERTEXT_LENGTH,
26-
ML_KEM_1024_CIPHERTEXT_LENGTH,
27-
ML_KEM_768_PUBLIC_KEY_LENGTH,
28-
ML_KEM_1024_PUBLIC_KEY_LENGTH,
29-
EC_PUBLIC_KEY_LENGTH,
30-
EC_PRIVATE_KEY_LENGTH,
31-
AES_KEY_LENGTH
3221
} from './constants';
3322

3423
// Utilities
@@ -42,9 +31,3 @@ export {
4231
mlKemEncapsulate,
4332
mlKemDecapsulate
4433
} from './mlkem';
45-
46-
// Context info builder
47-
export {
48-
buildContextInfo,
49-
validateContextInfoParams
50-
} from './context';

keeperapi/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {KeyWrapper, LogOptions, Platform, platform} from "./platform";
22
import type {KeeperHost, TransmissionKey, TransmissionKeyHpke} from './configuration';
33
import { AllowedEcKeyIds, AllowedMlKemKeyIds, getKeeperMlKemKeyVariant, isAllowedEcKeyId, isAllowedMlKemKeyId } from "./transmissionKeys";
4-
import { Ciphersuite, HPKE_ECDH_KYBER, MlKemVariant, OPTIONAL_DATA_LENGTH } from "./qrc";
4+
import { Ciphersuite, HPKE_ECDH_KYBER, MlKemVariant } from "./qrc";
5+
import { OPTIONAL_DATA_LENGTH } from "./qrc/constants";
56

67
export const log = (message: string, options: LogOptions = 'default') => {
78
platform.log(message, options)

0 commit comments

Comments
 (0)