We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c126425 commit 041a9f3Copy full SHA for 041a9f3
src/index.js
@@ -36,13 +36,6 @@ const classesWithAsyncAPIs = new Map([
36
for (const [mongodbExportName, mongodbExportValue] of Object.entries(mongodb)) {
37
let makeLegacyClass = classesWithAsyncAPIs.get(mongodbExportName);
38
if (makeLegacyClass != null) {
39
- // Maintain access to underlying classes
40
- Object.defineProperty(module.exports, `__original__${mongodbExportName}`, {
41
- enumerable: false,
42
- get: function () {
43
- return mongodbExportValue;
44
- }
45
- });
46
const patchedClass = makeLegacyClass(mongodbExportValue);
47
Object.defineProperty(module.exports, mongodbExportName, {
48
enumerable: true,
0 commit comments