@fairfox/polly 0.34.0 → 0.36.0

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.
@@ -438,8 +438,8 @@ class ProjectDetector {
438
438
  return score;
439
439
  }
440
440
  detectMonorepo(packageJson) {
441
- const workspacesRaw = packageJson.workspaces;
442
- const patterns = Array.isArray(workspacesRaw) ? workspacesRaw : Array.isArray(workspacesRaw?.packages) ? workspacesRaw.packages : [];
441
+ const workspacesRaw = packageJson["workspaces"];
442
+ const patterns = Array.isArray(workspacesRaw) ? workspacesRaw : Array.isArray(workspacesRaw?.["packages"]) ? workspacesRaw["packages"] : [];
443
443
  if (patterns.length === 0)
444
444
  return null;
445
445
  const workspaceDirs = this.resolveWorkspaceGlobs(patterns);
@@ -458,7 +458,7 @@ class ProjectDetector {
458
458
  } catch {
459
459
  continue;
460
460
  }
461
- const pkgName = wsPkg.name || path3.basename(wsDir);
461
+ const pkgName = wsPkg["name"] || path3.basename(wsDir);
462
462
  const context = this.inferContextFromPackageName(pkgName);
463
463
  const serverCandidates = [
464
464
  "src/server.ts",
@@ -517,9 +517,9 @@ class ProjectDetector {
517
517
  contextMapping,
518
518
  workspacePackages,
519
519
  metadata: {
520
- name: packageJson.name,
521
- version: packageJson.version,
522
- description: packageJson.description
520
+ name: packageJson["name"],
521
+ version: packageJson["version"],
522
+ description: packageJson["description"]
523
523
  }
524
524
  };
525
525
  }
@@ -3843,6 +3843,8 @@ class HandlerExtractor {
3843
3843
  if (match) {
3844
3844
  const signalName = match[1];
3845
3845
  const fieldName = match[2];
3846
+ if (!signalName)
3847
+ return;
3846
3848
  if (fieldName) {
3847
3849
  signals.push(`${signalName}_${fieldName}`);
3848
3850
  } else {
@@ -6235,4 +6237,4 @@ main().catch((_error) => {
6235
6237
  process.exit(1);
6236
6238
  });
6237
6239
 
6238
- //# debugId=ED3EBA8D328D579464756E2164756E21
6240
+ //# debugId=06FFF8A43205986564756E2164756E21