Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions packages/service-provider-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/service-provider-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bson": "^4.4.1",
"mongodb": "^4.1.0",
"mongodb-build-info": "^1.2.0",
"mongodb-connection-string-url": "^1.1.2"
"mongodb-connection-string-url": "^2.0.0"
},
"optionalDependencies": {
"mongodb-client-encryption": "^1.2.6"
Expand Down
8 changes: 5 additions & 3 deletions packages/service-provider-core/src/textencoder-polyfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
// so we need to (crudely) polyfill that as well in order to use that
// pure-JS implementation.
if (
typeof require('util').TextDecoder !== 'function' ||
typeof require('util').TextEncoder !== 'function'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
typeof TextDecoder !== 'function' || typeof TextEncoder !== 'function'
) {
Object.assign(require('util'), textEncodingPolyfill());
// eslint-disable-next-line no-new-func
Object.assign(Function('return this')(), textEncodingPolyfill());
}

// Basic encoder/decoder polyfill for java-shell environment (see above)
Expand Down
21 changes: 16 additions & 5 deletions packages/service-provider-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/service-provider-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/sinon-chai": "^3.2.3",
"mongodb": "^4.1.0",
"saslprep": "mongodb-js/saslprep#v1.0.4",
"mongodb-connection-string-url": "^1.1.2"
"mongodb-connection-string-url": "^2.0.0"
},
"optionalDependencies": {
"mongodb-client-encryption": "^1.2.6",
Expand Down