soonjs 0.0.8 → 0.0.10

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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5204,7 +5204,7 @@ const So = /* @__PURE__ */ Gs(vs), V1 = `declare module 'soonjs/auto/client' {
5204
5204
  body?: any;
5205
5205
  url?: string;
5206
5206
  query?: Record<string, string>;
5207
- extra?: Record<string, string>;
5207
+ extra?: Record<string, any>;
5208
5208
  };
5209
5209
  type SoonOnFetch = (args: SoonFetchOptions) => Promise<any>;
5210
5210
  function soonClientConfig(options: { baseUrl: string; onFetch: SoonOnFetch; defaultMethod: string }): Promise<any>;
@@ -38107,7 +38107,7 @@ class WV {
38107
38107
  } catch (k) {
38108
38108
  c.status = 400;
38109
38109
  const E = (b = k == null ? void 0 : k.issues) == null ? void 0 : b[0];
38110
- throw E && (E.message = (E.path ?? []).join(".") + ": " + E.message), E ? { ...E, code: 0 } : new Error("参数错误");
38110
+ throw E && (E.message = (E.path ?? []).join(".") + " " + E.message), E ? { ...E, code: 0 } : new Error("参数错误");
38111
38111
  }
38112
38112
  else
38113
38113
  throw c.status = 500, new Error("bodySchema must be ZodType");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soonjs",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",