Skip to content

Commit 5244711

Browse files
authoredAug 17, 2023
feat(NODE-5398): use mongodb-js/saslprep instead of saslprep (#3820)
1 parent 2910dca commit 5244711

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed
 

‎package-lock.json

+10-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"homepage": "https://github.com/mongodb/node-mongodb-native",
8888
"optionalDependencies": {
8989
"@aws-sdk/credential-providers": "^3.186.0",
90-
"saslprep": "^1.0.3"
90+
"@mongodb-js/saslprep": "^1.1.0"
9191
},
9292
"scripts": {
9393
"build:evergreen": "node .evergreen/generate_evergreen_tasks.js",

‎src/deps.ts

+8-7
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,14 @@ try {
133133
} catch {} // eslint-disable-line
134134
} catch {} // eslint-disable-line
135135

136-
export let saslprep: typeof import('saslprep') | { kModuleError: MongoMissingDependencyError } =
137-
makeErrorModule(
138-
new MongoMissingDependencyError(
139-
'Optional module `saslprep` not found.' +
140-
' Please install it to enable Stringprep Profile for User Names and Passwords'
141-
)
142-
);
136+
export let saslprep:
137+
| typeof import('@mongodb-js/saslprep')
138+
| { kModuleError: MongoMissingDependencyError } = makeErrorModule(
139+
new MongoMissingDependencyError(
140+
'Optional module `@mongodb-js/saslprep` not found.' +
141+
' Please install it to enable Stringprep Profile for User Names and Passwords'
142+
)
143+
);
143144

144145
try {
145146
// Ensure you always wrap an optional require in the try block NODE-3199

0 commit comments

Comments
 (0)
Please sign in to comment.