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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.0.82",
3
+ "version": "5.0.84",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -220,7 +220,7 @@ function clean(obj) {
220
220
  function stripUrl(url) {
221
221
  const newUrl = new URL(url);
222
222
 
223
- return `${newUrl.hostname}${newUrl.pathname}`.replace(/\/$/, '');
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: 7 });
229
+ return ctx.Manager.Utilities().randomId({ size: 8 });
230
230
  case '$apiKey':
231
231
  return `${uidgen.generateSync()}`;
232
232
  case '$oldDate':
@@ -24,6 +24,7 @@
24
24
  id: 'UA-123456789-1',
25
25
  secret: 'ABCx1234567890ABCDEFGH',
26
26
  },
27
+ oauth2: {},
27
28
  firebaseConfig: {
28
29
  apiKey: '123-456',
29
30
  authDomain: 'PROJECT-ID.firebaseapp.com',