remove underscore

This commit is contained in:
Leonardo Venturini
2024-10-28 09:07:32 -04:00
parent 4d3abb9def
commit 873c68966b
2 changed files with 2 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ export class AsynchronousCursor {
if (!doc) return null;
doc = replaceTypes(doc, replaceMongoAtomWithMeteor);
if (!this._cursorDescription.options.tailable && _.has(doc, '_id')) {
if (!this._cursorDescription.options.tailable && '_id' in doc) {
// Did Mongo give us duplicate documents in the same cursor? If so,
// ignore this one. (Do this before the transform, since transform might
// return some unrelated value.) We don't do this for tailable cursors,
@@ -127,7 +127,7 @@ export class AsynchronousCursor {
}
fetch() {
return this.map(_.identity);
return this.map(doc => doc);
}
/**

View File

@@ -19,7 +19,6 @@ Npm.depends({
"lodash.has": "4.5.2",
"lodash.throttle": "4.1.1",
"lodash.once": "4.1.1",
"lodash.identity": "3.0.0",
"lodash.isobject": "3.0.2",
"lodash.clone": "4.5.0"
});