bson 4.6.3 → 4.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/dist/bson.browser.esm.js +2 -1
- package/dist/bson.browser.esm.js.map +1 -1
- package/dist/bson.browser.umd.js +2 -1
- package/dist/bson.browser.umd.js.map +1 -1
- package/dist/bson.bundle.js +2 -1
- package/dist/bson.bundle.js.map +1 -1
- package/dist/bson.esm.js +2 -1
- package/dist/bson.esm.js.map +1 -1
- package/lib/objectid.js +2 -1
- package/lib/objectid.js.map +1 -1
- package/package.json +1 -1
- package/src/objectid.ts +2 -1
package/dist/bson.bundle.js
CHANGED
|
@@ -4590,7 +4590,8 @@ var BSON = (function (exports) {
|
|
|
4590
4590
|
this[kId] = ObjectId.generate(typeof workingId === 'number' ? workingId : undefined);
|
|
4591
4591
|
}
|
|
4592
4592
|
else if (ArrayBuffer.isView(workingId) && workingId.byteLength === 12) {
|
|
4593
|
-
|
|
4593
|
+
// If intstanceof matches we can escape calling ensure buffer in Node.js environments
|
|
4594
|
+
this[kId] = workingId instanceof buffer_1 ? workingId : ensureBuffer(workingId);
|
|
4594
4595
|
}
|
|
4595
4596
|
else if (typeof workingId === 'string') {
|
|
4596
4597
|
if (workingId.length === 12) {
|