getaura 0.5.0 → 0.5.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/dist/index.js CHANGED
@@ -143,6 +143,15 @@ function lineAt(text, index) {
143
143
  const end = text.indexOf("\n", index);
144
144
  return text.slice(start, end === -1 ? void 0 : end);
145
145
  }
146
+ var FIREBASE_FIELD = /\b(?:authDomain|projectId|storageBucket|messagingSenderId|appId|measurementId)\b/g;
147
+ var OTHER_GOOGLE = /GEMINI|GENAI|GENERATIVE|GOOGLE_AI|MAPS|PLACES|YOUTUBE|TRANSLATE|VISION|SPEECH|CUSTOM_SEARCH/i;
148
+ function isFirebaseWebKey(m, text) {
149
+ const line = lineAt(text, m.index);
150
+ if (OTHER_GOOGLE.test(line)) return false;
151
+ if (/FIREBASE/i.test(line)) return true;
152
+ const near = text.slice(Math.max(0, m.index - 400), m.index + m.value.length + 400);
153
+ return new Set(near.match(FIREBASE_FIELD) ?? []).size >= 2;
154
+ }
146
155
  var assignedValue = (match) => match.match(/[:=]\s*["'`]([^"'`]*)["'`]\s*$/)?.[1] ?? match;
147
156
  function isPlaceholderSecret(m, text) {
148
157
  if (m.patternId === "database-url") {
@@ -160,6 +169,7 @@ function isPlaceholderSecret(m, text) {
160
169
  if (COMMENT_LINE.test(lineAt(text, m.index))) return true;
161
170
  return /^[0-9a-f]{32}$/i.test(value) && /algolia|docsearch/i.test(text);
162
171
  }
172
+ if (m.patternId === "google-api-key" && isFirebaseWebKey(m, text)) return true;
163
173
  return KEY_PLACEHOLDER.test(m.value);
164
174
  }
165
175
  function findLeakedSecrets(text) {
@@ -22363,7 +22373,7 @@ function describeProject(p2) {
22363
22373
  // package.json
22364
22374
  var package_default = {
22365
22375
  name: "getaura",
22366
- version: "0.5.0",
22376
+ version: "0.5.1",
22367
22377
  description: "Aura helps you and your coding agent follow best practices while you vibe code.",
22368
22378
  type: "module",
22369
22379
  bin: {