firebase-tools 15.19.0 → 15.19.1

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/lib/utils.js CHANGED
@@ -62,6 +62,7 @@ exports.newUniqueId = newUniqueId;
62
62
  exports.commandExistsSync = commandExistsSync;
63
63
  exports.resolveWithin = resolveWithin;
64
64
  exports.toLowerSnakeCase = toLowerSnakeCase;
65
+ exports.murmurHashV3 = murmurHashV3;
65
66
  const fs = require("fs-extra");
66
67
  const tty = require("tty");
67
68
  const path = require("node:path");
@@ -696,3 +697,50 @@ function toLowerSnakeCase(s) {
696
697
  .replace(/[-\s]+/g, "_")
697
698
  .toLowerCase();
698
699
  }
700
+ function murmurHashV3(key, seed = 0) {
701
+ if (typeof key === "string") {
702
+ key = new TextEncoder().encode(key);
703
+ }
704
+ const remainder = key.length & 3;
705
+ const bytes = key.length - remainder;
706
+ const c1 = 3432918353;
707
+ const c2 = 461845907;
708
+ let h1 = seed;
709
+ let i = 0;
710
+ let k1 = 0;
711
+ while (i < bytes) {
712
+ k1 =
713
+ (key[i] & 255) |
714
+ ((key[++i] & 255) << 8) |
715
+ ((key[++i] & 255) << 16) |
716
+ ((key[++i] & 255) << 24);
717
+ ++i;
718
+ k1 = ((k1 & 65535) * c1 + ((((k1 >>> 16) * c1) & 65535) << 16)) & 4294967295;
719
+ k1 = (k1 << 15) | (k1 >>> 17);
720
+ k1 = ((k1 & 65535) * c2 + ((((k1 >>> 16) * c2) & 65535) << 16)) & 4294967295;
721
+ h1 ^= k1;
722
+ h1 = (h1 << 13) | (h1 >>> 19);
723
+ const h1b = ((h1 & 65535) * 5 + ((((h1 >>> 16) * 5) & 65535) << 16)) & 4294967295;
724
+ h1 = (h1b & 65535) + 27492 + ((((h1b >>> 16) + 58964) & 65535) << 16);
725
+ }
726
+ k1 = 0;
727
+ switch (remainder) {
728
+ case 3:
729
+ k1 ^= (key[i + 2] & 255) << 16;
730
+ case 2:
731
+ k1 ^= (key[i + 1] & 255) << 8;
732
+ case 1:
733
+ k1 ^= key[i] & 255;
734
+ k1 = ((k1 & 65535) * c1 + ((((k1 >>> 16) * c1) & 65535) << 16)) & 4294967295;
735
+ k1 = (k1 << 15) | (k1 >>> 17);
736
+ k1 = ((k1 & 65535) * c2 + ((((k1 >>> 16) * c2) & 65535) << 16)) & 4294967295;
737
+ h1 ^= k1;
738
+ }
739
+ h1 ^= key.length;
740
+ h1 ^= h1 >>> 16;
741
+ h1 = ((h1 & 65535) * 2246822507 + ((((h1 >>> 16) * 2246822507) & 65535) << 16)) & 4294967295;
742
+ h1 ^= h1 >>> 13;
743
+ h1 = ((h1 & 65535) * 3266489909 + ((((h1 >>> 16) * 3266489909) & 65535) << 16)) & 4294967295;
744
+ h1 ^= h1 >>> 16;
745
+ return h1 >>> 0;
746
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "15.19.0",
3
+ "version": "15.19.1",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "mcpName": "io.github.firebase/firebase-mcp",
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });