@stemy/backend 3.5.10 → 3.5.12
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 +12 -1
- package/bundles/stemy-backend.umd.js.map +1 -1
- package/esm2015/public_api.js +2 -2
- package/esm2015/utils.js +8 -1
- package/fesm2015/stemy-backend.js +9 -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 +4 -1
|
@@ -1278,7 +1278,15 @@
|
|
|
1278
1278
|
return e;
|
|
1279
1279
|
}
|
|
1280
1280
|
return new routingControllers.HttpError(httpCode, message + ": " + e);
|
|
1281
|
-
}
|
|
1281
|
+
}
|
|
1282
|
+
function prepareUrl(ending) {
|
|
1283
|
+
if (ending === void 0) { ending = "/"; }
|
|
1284
|
+
return function (url) {
|
|
1285
|
+
return url ? "" + url.replace(/\/+$/, "") + ending : ending;
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
var prepareUrlSlash = prepareUrl("/");
|
|
1289
|
+
var prepareUrlEmpty = prepareUrl("");
|
|
1282
1290
|
|
|
1283
1291
|
var __decorate$B = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1284
1292
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -7031,6 +7039,9 @@
|
|
|
7031
7039
|
exports.padRight = padRight;
|
|
7032
7040
|
exports.paginate = paginate;
|
|
7033
7041
|
exports.paginateAggregations = paginateAggregations;
|
|
7042
|
+
exports.prepareUrl = prepareUrl;
|
|
7043
|
+
exports.prepareUrlEmpty = prepareUrlEmpty;
|
|
7044
|
+
exports.prepareUrlSlash = prepareUrlSlash;
|
|
7034
7045
|
exports.projectStage = projectStage;
|
|
7035
7046
|
exports.promiseTimeout = promiseTimeout;
|
|
7036
7047
|
exports.rand = rand;
|