@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.
@@ -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;