@kaito-http/core 4.0.0-beta.1 → 4.0.0-beta.3
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/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/stream/stream.cjs +3 -0
- package/dist/stream/stream.d.cts +1 -0
- package/dist/stream/stream.d.ts +1 -0
- package/dist/stream/stream.js +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -385,8 +385,8 @@ var Router = class _Router {
|
|
|
385
385
|
});
|
|
386
386
|
return this.add("GET", "/openapi.json", async () => Response.json(doc));
|
|
387
387
|
};
|
|
388
|
-
method = (method) =>
|
|
389
|
-
return this.add(method, path, route);
|
|
388
|
+
method = (method) => {
|
|
389
|
+
return (path, route) => this.add(method, path, route);
|
|
390
390
|
};
|
|
391
391
|
get = this.method("GET");
|
|
392
392
|
post = this.method("POST");
|
package/dist/index.d.cts
CHANGED
|
@@ -27,7 +27,7 @@ declare class KaitoRequest {
|
|
|
27
27
|
get request(): Request;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
type KaitoMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS'
|
|
30
|
+
type KaitoMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* This class is merely a wrapper around a `Headers` object and a status code.
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare class KaitoRequest {
|
|
|
27
27
|
get request(): Request;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
type KaitoMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS'
|
|
30
|
+
type KaitoMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* This class is merely a wrapper around a `Headers` object and a status code.
|
package/dist/index.js
CHANGED
|
@@ -354,8 +354,8 @@ var Router = class _Router {
|
|
|
354
354
|
});
|
|
355
355
|
return this.add("GET", "/openapi.json", async () => Response.json(doc));
|
|
356
356
|
};
|
|
357
|
-
method = (method) =>
|
|
358
|
-
return this.add(method, path, route);
|
|
357
|
+
method = (method) => {
|
|
358
|
+
return (path, route) => this.add(method, path, route);
|
|
359
359
|
};
|
|
360
360
|
get = this.method("GET");
|
|
361
361
|
post = this.method("POST");
|
package/dist/stream/stream.cjs
CHANGED
package/dist/stream/stream.d.cts
CHANGED
package/dist/stream/stream.d.ts
CHANGED
package/dist/stream/stream.js
CHANGED