Skip to content

Commit 90e293f

Browse files
committed
fix: add an addon for native-machine-id
1 parent 2987d62 commit 90e293f

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

package-lock.json

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

packages/build/src/compile/signable-compiler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ export class SignableCompiler {
132132
path: await findModulePath('cli-repl', 'glibc-version'),
133133
requireRegexp: /\bglibc_version\.node$/,
134134
};
135+
const nativeDeviceIdAddon = {
136+
path: await findModulePath('logging', 'native-machine-id'),
137+
requireRegexp: /\bnative_device_id\.node$/,
138+
};
135139
// Warning! Until https://jira.mongodb.org/browse/MONGOSH-990,
136140
// packages/service-provider-node-driver *also* has a copy of these.
137141
// We use the versions included in packages/cli-repl here, so these
@@ -186,6 +190,7 @@ export class SignableCompiler {
186190
kerberosAddon,
187191
cryptLibraryVersionAddon,
188192
glibcVersionAddon,
193+
nativeDeviceIdAddon,
189194
]
190195
.concat(winCAAddon ? [winCAAddon] : [])
191196
.concat(winConsoleProcessListAddon ? [winConsoleProcessListAddon] : [])

packages/logging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@mongosh/types": "3.6.0",
2424
"mongodb-log-writer": "^2.3.1",
2525
"mongodb-redact": "^1.1.5",
26-
"native-machine-id": "^0.0.1"
26+
"native-machine-id": "^0.0.2"
2727
},
2828
"devDependencies": {
2929
"@mongodb-js/eslint-config-mongosh": "^1.0.0",

0 commit comments

Comments
 (0)