reykit 1.0.63 → 1.0.65

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 (3) hide show
  1. package/dist/index.js +2386 -2385
  2. package/dist/net.d.ts +2 -1
  3. package/package.json +1 -1
package/dist/net.d.ts CHANGED
@@ -20,9 +20,10 @@
20
20
  * @param option.method - Request method.
21
21
  * - `undefined` : Automatic judge. When parameter `data` not has value, then is `get`, otherwise is `post`.
22
22
  * @param option.check - Whether to throw an error if the response is not in the 200–299 range.
23
+ * Note: `Error.message` is response body string, `Error.cause` is `Response` instance.
23
24
  * - `undefined` : False.
24
25
  */
25
- export declare function request(url: string, { params, body, headers, method, check, }: {
26
+ export declare function request(url: string, option: {
26
27
  params?: Record<string, string | number | boolean>;
27
28
  body?: URLSearchParams | File | FormData | Blob | Record<string, any> | string;
28
29
  headers?: Record<string, string | number | boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [