backend-manager 5.0.82 → 5.0.84
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/package.json
CHANGED
|
@@ -220,7 +220,7 @@ function clean(obj) {
|
|
|
220
220
|
function stripUrl(url) {
|
|
221
221
|
const newUrl = new URL(url);
|
|
222
222
|
|
|
223
|
-
return `${newUrl.
|
|
223
|
+
return `${newUrl.host}${newUrl.pathname}`.replace(/\/$/, '');
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
// Helper to safely stringify objects by truncating long strings (like base64)
|
|
@@ -226,7 +226,7 @@ function resolveDefault(def, ctx) {
|
|
|
226
226
|
case '$uuid':
|
|
227
227
|
return `${uuid4()}`;
|
|
228
228
|
case '$randomId':
|
|
229
|
-
return ctx.Manager.Utilities().randomId({ size:
|
|
229
|
+
return ctx.Manager.Utilities().randomId({ size: 8 });
|
|
230
230
|
case '$apiKey':
|
|
231
231
|
return `${uidgen.generateSync()}`;
|
|
232
232
|
case '$oldDate':
|