@mongosh/snippet-uuidhelpers 0.1.1 → 0.1.2
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/index.js +3 -1
- package/package.json +2 -2
package/index.js
CHANGED
@@ -138,8 +138,10 @@ BinData.prototype.toHexUUID = function () {
|
|
138
138
|
}
|
139
139
|
|
140
140
|
// for compatibility with the new mongosh shell
|
141
|
-
if (BinData.prototype.base64 === undefined
|
141
|
+
if (BinData.prototype.base64 === undefined) {
|
142
142
|
BinData.prototype.base64 = function() { return this.buffer.base64Slice(); };
|
143
|
+
}
|
144
|
+
if (BinData.prototype.subtype === undefined) {
|
143
145
|
BinData.prototype.subtype = function() { return this.sub_type; };
|
144
146
|
}
|
145
147
|
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mongosh/snippet-uuidhelpers",
|
3
3
|
"snippetName": "uuidhelpers",
|
4
|
-
"version": "0.1.
|
4
|
+
"version": "0.1.2",
|
5
5
|
"description": "Mongosh snippet containing various small utilities for working with UUIDs.",
|
6
6
|
"main": "index.js",
|
7
7
|
"license": "Apache-2.0",
|
8
8
|
"publishConfig": {
|
9
9
|
"access": "public"
|
10
10
|
},
|
11
|
-
"gitHead": "
|
11
|
+
"gitHead": "388f82ec678592e8ffd2fb4b92baae853bc37c2a"
|
12
12
|
}
|