glitchgrab 1.7.1 → 1.7.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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -130,15 +130,15 @@ Use the REST API to fetch reports for a specific user by their primary key:
130
130
  ```bash
131
131
  # Fetch all reports
132
132
  curl -H "Authorization: Bearer gg_your_token" \
133
- https://glitchgrab.dev/api/v1/sdk/reports
133
+ https://www.glitchgrab.dev/api/v1/sdk/reports
134
134
 
135
135
  # Fetch reports by a specific user
136
136
  curl -H "Authorization: Bearer gg_your_token" \
137
- "https://glitchgrab.dev/api/v1/sdk/reports?reporterPrimaryKey=user_123"
137
+ "https://www.glitchgrab.dev/api/v1/sdk/reports?reporterPrimaryKey=user_123"
138
138
 
139
139
  # Filter by status
140
140
  curl -H "Authorization: Bearer gg_your_token" \
141
- "https://glitchgrab.dev/api/v1/sdk/reports?status=CREATED&limit=20"
141
+ "https://www.glitchgrab.dev/api/v1/sdk/reports?status=CREATED&limit=20"
142
142
  ```
143
143
 
144
144
  ### Response
@@ -209,7 +209,7 @@ curl -X POST \
209
209
  -H "Authorization: Bearer gg_your_token" \
210
210
  -H "Content-Type: application/json" \
211
211
  -d '{"action": "label", "label": "approved"}' \
212
- https://glitchgrab.dev/api/v1/reports/REPORT_ID/actions
212
+ https://www.glitchgrab.dev/api/v1/reports/REPORT_ID/actions
213
213
  ```
214
214
 
215
215
  #### Reject a report
@@ -219,7 +219,7 @@ curl -X POST \
219
219
  -H "Authorization: Bearer gg_your_token" \
220
220
  -H "Content-Type: application/json" \
221
221
  -d '{"action": "label", "label": "rejected"}' \
222
- https://glitchgrab.dev/api/v1/reports/REPORT_ID/actions
222
+ https://www.glitchgrab.dev/api/v1/reports/REPORT_ID/actions
223
223
  ```
224
224
 
225
225
  #### Close an issue
@@ -229,7 +229,7 @@ curl -X POST \
229
229
  -H "Authorization: Bearer gg_your_token" \
230
230
  -H "Content-Type: application/json" \
231
231
  -d '{"action": "close"}' \
232
- https://glitchgrab.dev/api/v1/reports/REPORT_ID/actions
232
+ https://www.glitchgrab.dev/api/v1/reports/REPORT_ID/actions
233
233
  ```
234
234
 
235
235
  #### Reopen an issue
@@ -239,7 +239,7 @@ curl -X POST \
239
239
  -H "Authorization: Bearer gg_your_token" \
240
240
  -H "Content-Type: application/json" \
241
241
  -d '{"action": "reopen"}' \
242
- https://glitchgrab.dev/api/v1/reports/REPORT_ID/actions
242
+ https://www.glitchgrab.dev/api/v1/reports/REPORT_ID/actions
243
243
  ```
244
244
 
245
245
  #### Remove a label
@@ -249,7 +249,7 @@ curl -X POST \
249
249
  -H "Authorization: Bearer gg_your_token" \
250
250
  -H "Content-Type: application/json" \
251
251
  -d '{"action": "unlabel", "label": "rejected"}' \
252
- https://glitchgrab.dev/api/v1/reports/REPORT_ID/actions
252
+ https://www.glitchgrab.dev/api/v1/reports/REPORT_ID/actions
253
253
  ```
254
254
 
255
255
  #### Add any custom label
@@ -259,7 +259,7 @@ curl -X POST \
259
259
  -H "Authorization: Bearer gg_your_token" \
260
260
  -H "Content-Type: application/json" \
261
261
  -d '{"action": "label", "label": "high-priority"}' \
262
- https://glitchgrab.dev/api/v1/reports/REPORT_ID/actions
262
+ https://www.glitchgrab.dev/api/v1/reports/REPORT_ID/actions
263
263
  ```
264
264
 
265
265
  ### How to get the report ID
@@ -281,7 +281,7 @@ Each report has a conversation thread powered by GitHub issue comments. No extra
281
281
 
282
282
  ```bash
283
283
  curl -H "Authorization: Bearer gg_your_token" \
284
- https://glitchgrab.dev/api/v1/sdk/reports/REPORT_ID
284
+ https://www.glitchgrab.dev/api/v1/sdk/reports/REPORT_ID
285
285
  ```
286
286
 
287
287
  Returns the full issue body + all comments:
@@ -320,7 +320,7 @@ curl -X POST \
320
320
  -H "Authorization: Bearer gg_your_token" \
321
321
  -H "Content-Type: application/json" \
322
322
  -d '{"message": "I can reproduce this, fixing now", "reporterName": "Vivek", "reporterEmail": "vivek@example.com"}' \
323
- https://glitchgrab.dev/api/v1/sdk/reports/REPORT_ID/comments
323
+ https://www.glitchgrab.dev/api/v1/sdk/reports/REPORT_ID/comments
324
324
  ```
325
325
 
326
326
  The comment is posted to the GitHub issue with attribution: "Commented by: **Vivek** (vivek@example.com)".
@@ -347,7 +347,7 @@ import { GlitchgrabErrorBoundary } from "glitchgrab";
347
347
  |------|------|---------|-------------|
348
348
  | `token` | `string` | required | Your Glitchgrab API token (`gg_...`) |
349
349
  | `session` | `GlitchgrabSession \| null` | `null` | Logged-in user info for report attribution |
350
- | `baseUrl` | `string` | `https://glitchgrab.dev` | API base URL |
350
+ | `baseUrl` | `string` | `https://www.glitchgrab.dev` | API base URL |
351
351
  | `breadcrumbs` | `boolean` | `true` | Enable automatic breadcrumb tracking |
352
352
  | `maxBreadcrumbs` | `number` | `50` | Max breadcrumbs to keep |
353
353
  | `onError` | `(error: Error) => void` | - | Called on unhandled errors |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitchgrab",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",