Comparing version 4.6.3 to 4.6.4
@@ -25,3 +25,3 @@ { | ||
], | ||
"version": "4.6.3" | ||
"version": "4.6.4" | ||
} |
@@ -50,3 +50,4 @@ "use strict"; | ||
else if (ArrayBuffer.isView(workingId) && workingId.byteLength === 12) { | ||
this[kId] = ensure_buffer_1.ensureBuffer(workingId); | ||
// If intstanceof matches we can escape calling ensure buffer in Node.js environments | ||
this[kId] = workingId instanceof buffer_1.Buffer ? workingId : ensure_buffer_1.ensureBuffer(workingId); | ||
} | ||
@@ -53,0 +54,0 @@ else if (typeof workingId === 'string') { |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "4.6.3", | ||
"version": "4.6.4", | ||
"author": { | ||
@@ -29,0 +29,0 @@ "name": "The MongoDB NodeJS Team", |
@@ -75,3 +75,4 @@ import { Buffer } from 'buffer'; | ||
} else if (ArrayBuffer.isView(workingId) && workingId.byteLength === 12) { | ||
this[kId] = ensureBuffer(workingId); | ||
// If intstanceof matches we can escape calling ensure buffer in Node.js environments | ||
this[kId] = workingId instanceof Buffer ? workingId : ensureBuffer(workingId); | ||
} else if (typeof workingId === 'string') { | ||
@@ -78,0 +79,0 @@ if (workingId.length === 12) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2937576
40939