File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 2020 - uses : actions/setup-node@v4
2121 with :
2222 node-version : ${{ matrix.node }}
23- cache : ' npm'
24- registry-url : ' https://registry.npmjs.org'
23+ cache : " npm"
24+ registry-url : " https://registry.npmjs.org"
2525
2626 - name : Build with Node.js ${{ matrix.node }} on ${{ matrix.os }}
2727 run : node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }}
6161 - name : Run Buildx
6262 run : |
6363 docker buildx create --name builder --bootstrap --use
64- docker buildx build --progress=plain --no-cache \
64+ docker buildx build \
6565 --platform linux/${{ matrix.linux_arch }} \
6666 --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
6767 --build-arg="NODE_VERSION=${{ steps.get_nodejs_version.outputs.version }}" \
Original file line number Diff line number Diff line change 1+ import { resolve } from 'path' ;
12import { cryptoCallbacks } from './crypto_callbacks' ;
23export { cryptoCallbacks } ;
34
5+ function loadBindings ( ) : MongoCryptBindings {
6+ return require ( resolve ( __dirname , '../build/Release/mongocrypt.node' ) ) ;
7+
8+ }
49import bindings = require( 'bindings' ) ;
510const mc : MongoCryptBindings = bindings ( 'mongocrypt' ) ;
611
@@ -54,7 +59,7 @@ type MongoCryptConstructorOptions = {
5459} ;
5560
5661export interface MongoCryptConstructor {
57- new ( options : MongoCryptConstructorOptions ) : MongoCrypt ;
62+ new ( options : MongoCryptConstructorOptions ) : MongoCrypt ;
5863 libmongocryptVersion : string ;
5964}
6065
@@ -116,6 +121,6 @@ export const MongoCrypt: MongoCryptConstructor = class MongoCrypt extends mc.Mon
116121
117122/** exported for testing only. */
118123interface MongoCryptContextCtor {
119- new ( ) : MongoCryptContext ;
124+ new ( ) : MongoCryptContext ;
120125}
121126export const MongoCryptContextCtor : MongoCryptContextCtor = mc . MongoCryptContextCtor ;
You can’t perform that action at this time.
0 commit comments