Skip to content

Commit

Permalink
fix: make map enumerable re: #11381
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 13, 2022
1 parent e5f13a8 commit 562fb9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 14, 16]
node: [12, 14, 16, 17]
os: [ubuntu-18.04, ubuntu-20.04]
include:
- os: ubuntu-18.04
Expand Down
5 changes: 3 additions & 2 deletions lib/cursor/AggregationCursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ Object.defineProperty(AggregationCursor.prototype, 'map', {
this._transforms.push(fn);
return this;
},
enumerable: false,
enumerable: true,
configurable: true,
writable: false
writable: true
});

/*!
* Marks this cursor as errored
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/cursor/QueryCursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ Object.defineProperty(QueryCursor.prototype, 'map', {
this._transforms.push(fn);
return this;
},
enumerable: false,
enumerable: true,
configurable: true,
writable: false
writable: true
});

/*!
Expand Down

0 comments on commit 562fb9d

Please sign in to comment.