glitchgrab 1.67.0 → 1.68.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.
@@ -226,6 +226,19 @@ interface GlitchgrabProviderProps {
226
226
  * data you don't control and shouldn't forward into a GitHub issue.
227
227
  */
228
228
  responseBodyOrigins?: string[];
229
+ /**
230
+ * Which `console.error` / `console.warn` lines become issues. Default
231
+ * `["error", "warn"]`; `false` (or `[]`) turns it off. Production only.
232
+ * Repeats of one message are grouped onto a single issue. Needs `breadcrumbs`
233
+ * on (the default). Silence a noisy line with `ignoreErrors`.
234
+ */
235
+ captureConsole?: ("error" | "warn")[] | false;
236
+ /**
237
+ * File a `PERFORMANCE` issue when a same-origin request takes longer than this
238
+ * many milliseconds. Default `10000`; `0` turns it off. One issue per endpoint
239
+ * (ids folded to `[id]`). Production only. Needs `breadcrumbs` on.
240
+ */
241
+ slowRequestMs?: number;
229
242
  }
230
243
  interface ReportButtonProps {
231
244
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
@@ -226,6 +226,19 @@ interface GlitchgrabProviderProps {
226
226
  * data you don't control and shouldn't forward into a GitHub issue.
227
227
  */
228
228
  responseBodyOrigins?: string[];
229
+ /**
230
+ * Which `console.error` / `console.warn` lines become issues. Default
231
+ * `["error", "warn"]`; `false` (or `[]`) turns it off. Production only.
232
+ * Repeats of one message are grouped onto a single issue. Needs `breadcrumbs`
233
+ * on (the default). Silence a noisy line with `ignoreErrors`.
234
+ */
235
+ captureConsole?: ("error" | "warn")[] | false;
236
+ /**
237
+ * File a `PERFORMANCE` issue when a same-origin request takes longer than this
238
+ * many milliseconds. Default `10000`; `0` turns it off. One issue per endpoint
239
+ * (ids folded to `[id]`). Production only. Needs `breadcrumbs` on.
240
+ */
241
+ slowRequestMs?: number;
229
242
  }
230
243
  interface ReportButtonProps {
231
244
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "glitchgrab",
3
3
  "license": "SEE LICENSE IN LICENSE",
4
- "version": "1.67.0",
4
+ "version": "1.68.1",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",