@noxfly/noxus 3.0.0-dev.6 → 3.0.0-dev.8
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/README.md +6 -0
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/main.mjs +2 -2
- package/dist/main.mjs.map +1 -1
- package/dist/renderer.d.mts +13 -2
- package/dist/renderer.d.ts +13 -2
- package/dist/renderer.js +5 -4
- package/dist/renderer.js.map +1 -1
- package/dist/renderer.mjs +5 -4
- package/dist/renderer.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -536,6 +536,12 @@ await client.request({ method: 'GET', path: 'users/list', query: { r
|
|
|
536
536
|
await client.request({ method: 'POST', path: 'users/create', body: { name: 'Bob' } });
|
|
537
537
|
await client.request({ method: 'PUT', path: 'users/42', body: { name: 'Bob Updated' } });
|
|
538
538
|
await client.request({ method: 'DELETE', path: 'users/42' });
|
|
539
|
+
|
|
540
|
+
// Per-request timeout override (takes precedence over the global requestTimeout)
|
|
541
|
+
const report = await client.request<Report>(
|
|
542
|
+
{ method: 'GET', path: 'reports/heavy' },
|
|
543
|
+
{ timeout: 60_000 }, // 60s for this specific request
|
|
544
|
+
);
|
|
539
545
|
```
|
|
540
546
|
|
|
541
547
|
### Push events (main → renderer)
|
package/dist/main.js
CHANGED
|
@@ -1354,13 +1354,13 @@ var Router = class {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
normalizeBatchItem(entry, index) {
|
|
1356
1356
|
if (entry === null || typeof entry !== "object") throw new BadRequestException(`Batch request at index ${index} must be an object.`);
|
|
1357
|
-
const { requestId, path: path2, method, body } = entry;
|
|
1357
|
+
const { requestId, path: path2, method, body, query } = entry;
|
|
1358
1358
|
if (requestId !== void 0 && typeof requestId !== "string") throw new BadRequestException(`Batch request at index ${index} has an invalid requestId.`);
|
|
1359
1359
|
if (typeof path2 !== "string" || !path2.length) throw new BadRequestException(`Batch request at index ${index} must define a non-empty path.`);
|
|
1360
1360
|
if (typeof method !== "string") throw new BadRequestException(`Batch request at index ${index} must define an HTTP method.`);
|
|
1361
1361
|
const normalized = method.toUpperCase();
|
|
1362
1362
|
if (!isAtomicHttpMethod(normalized)) throw new BadRequestException(`Batch request at index ${index} uses unsupported method ${method}.`);
|
|
1363
|
-
return { requestId, path: path2, method: normalized, body };
|
|
1363
|
+
return { requestId, path: path2, method: normalized, body, query };
|
|
1364
1364
|
}
|
|
1365
1365
|
fillErrorResponse(response, error, setCritical) {
|
|
1366
1366
|
response.body = void 0;
|