@cultured_computer/sight 0.8.1 → 0.8.2

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.d.cts CHANGED
@@ -1431,9 +1431,9 @@ declare const ProbeConfigSchema: z.ZodObject<{
1431
1431
  */
1432
1432
  debug: z.ZodDefault<z.ZodBoolean>;
1433
1433
  }, "strip", z.ZodTypeAny, {
1434
+ endpoint: string;
1434
1435
  apiKey: string;
1435
1436
  deployment: string;
1436
- endpoint: string;
1437
1437
  dashboardUrl: string;
1438
1438
  sampleRate: number;
1439
1439
  debug: boolean;
package/dist/index.d.ts CHANGED
@@ -1431,9 +1431,9 @@ declare const ProbeConfigSchema: z.ZodObject<{
1431
1431
  */
1432
1432
  debug: z.ZodDefault<z.ZodBoolean>;
1433
1433
  }, "strip", z.ZodTypeAny, {
1434
+ endpoint: string;
1434
1435
  apiKey: string;
1435
1436
  deployment: string;
1436
- endpoint: string;
1437
1437
  dashboardUrl: string;
1438
1438
  sampleRate: number;
1439
1439
  debug: boolean;
package/dist/index.js CHANGED
@@ -334,7 +334,7 @@ var IngestClient = class {
334
334
  const cls = status === 401 ? "401" : status === 403 ? "403" : "other";
335
335
  if (this.rejectionAnnounced.has(cls)) return;
336
336
  this.rejectionAnnounced.add(cls);
337
- const line = cls === "401" ? "[sight] the API rejected the key (401). Nothing is being captured. Set apiKey to a key with the ingest capability." : cls === "403" ? '[sight] this key cannot capture (403): it lacks the ingest capability. Nothing is being captured. Ask the project owner for a key with access "ingest".' : `[sight] the API rejected ${what} (${status}) and it was dropped. Set debug: true to log every failed send. This warning prints once per process.`;
337
+ const line = cls === "401" ? "[sight] the API rejected the key (401). Nothing is being captured. Set apiKey to a key with the ingest capability." : cls === "403" ? "[sight] this key cannot capture (403): it lacks the ingest permission. Nothing is being captured. Ask the project owner for a Capture key." : `[sight] the API rejected ${what} (${status}) and it was dropped. Set debug: true to log every failed send. This warning prints once per process.`;
338
338
  console.error(line);
339
339
  }
340
340
  log(msg) {