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 20
20
- uses : actions/setup-node@v4
21
21
with :
22
22
node-version : ${{ matrix.node }}
23
- cache : ' npm'
24
- registry-url : ' https://registry.npmjs.org'
23
+ cache : " npm"
24
+ registry-url : " https://registry.npmjs.org"
25
25
26
26
- name : Build with Node.js ${{ matrix.node }} on ${{ matrix.os }}
27
27
run : node .github/scripts/libmongocrypt.mjs ${{ runner.os == 'Windows' && '--build' || '' }}
61
61
- name : Run Buildx
62
62
run : |
63
63
docker buildx create --name builder --bootstrap --use
64
- docker buildx build --progress=plain --no-cache \
64
+ docker buildx build \
65
65
--platform linux/${{ matrix.linux_arch }} \
66
66
--build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \
67
67
--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' ;
1
2
import { cryptoCallbacks } from './crypto_callbacks' ;
2
3
export { cryptoCallbacks } ;
3
4
5
+ function loadBindings ( ) : MongoCryptBindings {
6
+ return require ( resolve ( __dirname , '../build/Release/mongocrypt.node' ) ) ;
7
+
8
+ }
4
9
import bindings = require( 'bindings' ) ;
5
10
const mc : MongoCryptBindings = bindings ( 'mongocrypt' ) ;
6
11
@@ -54,7 +59,7 @@ type MongoCryptConstructorOptions = {
54
59
} ;
55
60
56
61
export interface MongoCryptConstructor {
57
- new ( options : MongoCryptConstructorOptions ) : MongoCrypt ;
62
+ new ( options : MongoCryptConstructorOptions ) : MongoCrypt ;
58
63
libmongocryptVersion : string ;
59
64
}
60
65
@@ -116,6 +121,6 @@ export const MongoCrypt: MongoCryptConstructor = class MongoCrypt extends mc.Mon
116
121
117
122
/** exported for testing only. */
118
123
interface MongoCryptContextCtor {
119
- new ( ) : MongoCryptContext ;
124
+ new ( ) : MongoCryptContext ;
120
125
}
121
126
export const MongoCryptContextCtor : MongoCryptContextCtor = mc . MongoCryptContextCtor ;
You can’t perform that action at this time.
0 commit comments