Skip to content

Commit 041a9f3

Browse files
committed
chore: remove __original__ exports
1 parent c126425 commit 041a9f3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,6 @@ const classesWithAsyncAPIs = new Map([
3636
for (const [mongodbExportName, mongodbExportValue] of Object.entries(mongodb)) {
3737
let makeLegacyClass = classesWithAsyncAPIs.get(mongodbExportName);
3838
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-
});
4639
const patchedClass = makeLegacyClass(mongodbExportValue);
4740
Object.defineProperty(module.exports, mongodbExportName, {
4841
enumerable: true,

0 commit comments

Comments
 (0)