Skip to content

Commit f50dc3e

Browse files
lint and CI
1 parent 2ba775b commit f50dc3e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class MongoCrypt implements IMongoCrypt {
151151
throw this.errorWrapper(error);
152152
}
153153
}
154-
makeExplicitDecryptionContext(buffer: Uint8Array): IMongoCryptContext {
154+
makeExplicitDecryptionContext(buffer: Uint8Array): MongoCryptContext {
155155
try {
156156
return new MongoCryptContext(
157157
this.mc.makeExplicitDecryptionContext(buffer),
@@ -177,7 +177,7 @@ export class MongoCrypt implements IMongoCrypt {
177177
throw this.errorWrapper(error);
178178
}
179179
}
180-
makeRewrapManyDataKeyContext(filter: Uint8Array, encryptionKey?: Uint8Array): IMongoCryptContext {
180+
makeRewrapManyDataKeyContext(filter: Uint8Array, encryptionKey?: Uint8Array): MongoCryptContext {
181181
try {
182182
return new MongoCryptContext(
183183
this.mc.makeRewrapManyDataKeyContext(filter, encryptionKey),
@@ -195,3 +195,9 @@ export class MongoCrypt implements IMongoCrypt {
195195
}
196196
}
197197
}
198+
199+
export type {
200+
MongoCryptOptions,
201+
ExplicitEncryptionContextOptions,
202+
MongoCryptKMSRequest
203+
} from './bindings';

test/unit/release.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ const REQUIRED_FILES = [
2525
'package/lib/crypto_callbacks.d.ts',
2626
'package/lib/crypto_callbacks.d.ts.map',
2727
'package/lib/crypto_callbacks.js',
28-
'package/lib/crypto_callbacks.js.map'
28+
'package/lib/crypto_callbacks.js.map',
29+
30+
'package/src/bindings.ts',
31+
'package/lib/bindings.d.ts',
32+
'package/lib/bindings.d.ts.map',
33+
'package/lib/bindings.js',
34+
'package/lib/bindings.js.map'
2935
];
3036

3137
describe(`Release ${packFile}`, function () {

0 commit comments

Comments
 (0)