@stemy/backend 3.4.3 → 3.4.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/bundles/stemy-backend.umd.js +4 -1
- package/bundles/stemy-backend.umd.js.map +1 -1
- package/esm2015/public_api.js +2 -2
- package/esm2015/services/mongo-connector.js +1 -3
- package/esm2015/utils.js +4 -1
- package/fesm2015/stemy-backend.js +4 -2
- package/fesm2015/stemy-backend.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/stemy-backend.metadata.json +1 -1
- package/utils.d.ts +1 -0
|
@@ -810,6 +810,9 @@
|
|
|
810
810
|
var name = path.basename(path$1 || "");
|
|
811
811
|
return name.split(".").pop();
|
|
812
812
|
}
|
|
813
|
+
function createIdString() {
|
|
814
|
+
return new mongodb.ObjectId().toHexString();
|
|
815
|
+
}
|
|
813
816
|
function idToString(value) {
|
|
814
817
|
if (Array.isArray(value)) {
|
|
815
818
|
return value.map(idToString);
|
|
@@ -1495,7 +1498,6 @@
|
|
|
1495
1498
|
case 1:
|
|
1496
1499
|
_a.conn = (_b.sent()).connection;
|
|
1497
1500
|
this.db = this.conn.db;
|
|
1498
|
-
console.log("DB INSTANCE", getType(this.db));
|
|
1499
1501
|
this.fsBucket = new mongodb.GridFSBucket(this.db, { bucketName: "assets" });
|
|
1500
1502
|
return [2 /*return*/];
|
|
1501
1503
|
}
|
|
@@ -6497,6 +6499,7 @@
|
|
|
6497
6499
|
exports.convertValue = convertValue;
|
|
6498
6500
|
exports.copy = copy;
|
|
6499
6501
|
exports.copyStream = copyStream;
|
|
6502
|
+
exports.createIdString = createIdString;
|
|
6500
6503
|
exports.createServices = createServices;
|
|
6501
6504
|
exports.createTransformer = createTransformer;
|
|
6502
6505
|
exports.deleteFile = deleteFile;
|