@crvouga/mockingbird-service-fcm 2.10.3 → 2.10.5

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/dist/admin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  fcmCredential
3
- } from "./chunk-HCCHGJSH.js";
3
+ } from "./chunk-7FHD4M64.js";
4
4
 
5
5
  // src/admin.ts
6
6
  import { Agent, createServer } from "node:https";
@@ -495,6 +495,7 @@ var parsePath = (rawKey) => {
495
495
  return path;
496
496
  };
497
497
  var isIndex = (segment) => /^(0|[1-9][0-9]*)$/.test(segment);
498
+ var MAX_ARRAY_INDEX = 4294967294;
498
499
  var put = (target, key, value) => {
499
500
  if (key === "__proto__") {
500
501
  Object.defineProperty(target, key, {
@@ -557,8 +558,17 @@ var decodeFormPairs = (pairs) => {
557
558
  var densify = (value) => {
558
559
  if (typeof value === "string")
559
560
  return value;
560
- if (Array.isArray(value))
561
- return value.filter((item) => item !== void 0).map(densify);
561
+ if (Array.isArray(value)) {
562
+ const dense = [];
563
+ for (const key of Object.keys(value)) {
564
+ if (!isIndex(key) || Number(key) > MAX_ARRAY_INDEX)
565
+ continue;
566
+ const item = value[Number(key)];
567
+ if (item !== void 0)
568
+ dense.push(densify(item));
569
+ }
570
+ return dense;
571
+ }
562
572
  const out = {};
563
573
  for (const [key, item] of Object.entries(value))
564
574
  put(out, key, densify(item));
@@ -4015,7 +4025,7 @@ var stateAdminRoutes = (routes) => {
4015
4025
  };
4016
4026
 
4017
4027
  // ../core/dist/version.js
4018
- var PACKAGE_VERSION = true ? "2.10.3" : UNRELEASED_VERSION;
4028
+ var PACKAGE_VERSION = true ? "2.10.5" : UNRELEASED_VERSION;
4019
4029
 
4020
4030
  // ../core/dist/webhooks.js
4021
4031
  var json4 = (status, body) => new Response(JSON.stringify(body), {
@@ -6145,4 +6155,4 @@ export {
6145
6155
  fcmCredential,
6146
6156
  FcmAPI
6147
6157
  };
6148
- //# sourceMappingURL=chunk-HCCHGJSH.js.map
6158
+ //# sourceMappingURL=chunk-7FHD4M64.js.map