@staff0rd/assist 0.975.0 → 0.976.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.
- package/dist/commands/sessions/web/bundle.js +447 -447
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.976.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -4236,6 +4236,7 @@ async function browserRelay(req, res) {
|
|
|
4236
4236
|
import { z as z8 } from "zod";
|
|
4237
4237
|
var clientFailureSchema = z8.object({
|
|
4238
4238
|
at: z8.string(),
|
|
4239
|
+
kind: z8.enum(["error", "rejection"]).optional(),
|
|
4239
4240
|
method: z8.string(),
|
|
4240
4241
|
path: z8.string(),
|
|
4241
4242
|
base: z8.string(),
|
|
@@ -4250,6 +4251,8 @@ var clientErrorsSchema = z8.object({
|
|
|
4250
4251
|
|
|
4251
4252
|
// src/commands/sessions/web/clientErrors/clientErrors.ts
|
|
4252
4253
|
function formatClientFailure(failure) {
|
|
4254
|
+
if (failure.kind)
|
|
4255
|
+
return `client: ${failure.kind === "error" ? "uncaught error" : "unhandled rejection"} on ${failure.path}: ${failure.error ?? "unknown error"} at ${failure.at}`;
|
|
4253
4256
|
const target = failure.node ? `node=${failure.node} via ${failure.base}` : failure.base;
|
|
4254
4257
|
const outcome = [
|
|
4255
4258
|
failure.status === void 0 ? void 0 : `HTTP ${failure.status}`,
|