@stemy/backend 3.5.10 → 3.5.11

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.
@@ -1278,6 +1278,12 @@
1278
1278
  return e;
1279
1279
  }
1280
1280
  return new routingControllers.HttpError(httpCode, message + ": " + e);
1281
+ }
1282
+ function prepareUrl(ending) {
1283
+ if (ending === void 0) { ending = ""; }
1284
+ return function (url) {
1285
+ return url ? "" + url.replace(/\/+$/, "") + ending : ending;
1286
+ };
1281
1287
  }
1282
1288
 
1283
1289
  var __decorate$B = (this && this.__decorate) || function (decorators, target, key, desc) {
@@ -7031,6 +7037,7 @@
7031
7037
  exports.padRight = padRight;
7032
7038
  exports.paginate = paginate;
7033
7039
  exports.paginateAggregations = paginateAggregations;
7040
+ exports.prepareUrl = prepareUrl;
7034
7041
  exports.projectStage = projectStage;
7035
7042
  exports.promiseTimeout = promiseTimeout;
7036
7043
  exports.rand = rand;