tspace-spear 1.2.5-beta.2 → 1.2.5-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.
|
@@ -10,7 +10,7 @@ type RequestInput<TRoutes extends AnyRoutes, TPath extends keyof TRoutes, TMetho
|
|
|
10
10
|
query?: RequestQuery<TRoutes, TPath, TMethod>;
|
|
11
11
|
files?: RequestFiles<TRoutes, TPath, TMethod>;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
declare class ApiClient<TRoutes extends AnyRoutes = AppRoutes> {
|
|
14
14
|
private baseURL;
|
|
15
15
|
constructor(baseURL: string);
|
|
16
16
|
protected request<TPath extends keyof TRoutes, TMethod extends keyof TRoutes[TPath]>(method: TMethod, path: TPath, input?: RequestInput<TRoutes, TPath, TMethod>): Promise<ResponseType<TRoutes, TPath, TMethod>>;
|
|
@@ -20,4 +20,5 @@ export declare class ApiClient<TRoutes extends AnyRoutes = AppRoutes> {
|
|
|
20
20
|
patch<TPath extends RoutesWithMethod<TRoutes, "PATCH">>(path: TPath, input: RequestInput<TRoutes, TPath, "PATCH">): Promise<ResponseType<TRoutes, TPath, "PATCH">>;
|
|
21
21
|
delete<TPath extends RoutesWithMethod<TRoutes, "DELETE">>(path: TPath, input?: RequestInput<TRoutes, TPath, "DELETE">): Promise<ResponseType<TRoutes, TPath, "DELETE">>;
|
|
22
22
|
}
|
|
23
|
-
export {};
|
|
23
|
+
export { ApiClient };
|
|
24
|
+
export default ApiClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/core/client/index.ts"],"names":[],"mappings":";;;AAmEA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/core/client/index.ts"],"names":[],"mappings":";;;AAmEA,MAAM,SAAS;IAGL,OAAO,CAAS;IAExB,YAAY,OAAe;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;I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J,KAAK,CACN,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,GAAG,CAMd,IAAW,EACX,KAIC;QAED,OAAO,IAAI,CAAC,OAAO,CACjB,KAAK,EACL,IAAI,EACJ,KAAK,CACN,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,KAAK,CAMhB,IAAW,EACX,KAIC;QAED,OAAO,IAAI,CAAC,OAAO,CACjB,OAAO,EACP,IAAI,EACJ,KAAK,CACN,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,MAAM,CAMjB,IAAW,EACX,KAIC;QAED,OAAO,IAAI,CAAC,OAAO,CACjB,QAAQ,EACR,IAAI,EACJ,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAEQ,8BAAS;AAClB,kBAAe,SAAS,CAAC"}
|
package/dist/lib/index.d.ts
CHANGED
package/dist/lib/index.js
CHANGED
|
@@ -27,6 +27,5 @@ __exportStar(require("./core/decorators"), exports);
|
|
|
27
27
|
__exportStar(require("./core/types"), exports);
|
|
28
28
|
__exportStar(require("./core/server"), exports);
|
|
29
29
|
__exportStar(require("./core/server/router"), exports);
|
|
30
|
-
__exportStar(require("./core/client"), exports);
|
|
31
30
|
exports.default = server_1.default;
|
|
32
31
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;IAII;AACJ,2DAAkC;AAElC,oDAAkC;AAClC,+CAA6B;AAC7B,gDAA8B;AAC9B,uDAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;IAII;AACJ,2DAAkC;AAElC,oDAAkC;AAClC,+CAA6B;AAC7B,gDAA8B;AAC9B,uDAAqC;AAErC,kBAAe,gBAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tspace-spear",
|
|
3
|
-
"version": "1.2.5-beta.
|
|
3
|
+
"version": "1.2.5-beta.3",
|
|
4
4
|
"description": "tspace-spear is a lightweight, high-performance API framework for Node.js that leverages the native HTTP server and supports uWebSockets.js (C++) for maximum speed and efficiency.",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"types": "./dist/lib/index.d.ts",
|
|
@@ -50,14 +50,9 @@
|
|
|
50
50
|
"types": "./dist/index.d.ts",
|
|
51
51
|
"import": "./dist/index.js"
|
|
52
52
|
},
|
|
53
|
-
|
|
54
53
|
"./client": {
|
|
55
|
-
"types": "./dist/client/index.d.ts",
|
|
56
|
-
"import": "./dist/client/index.js"
|
|
57
|
-
},
|
|
58
|
-
"./server": {
|
|
59
|
-
"types": "./dist/server/index.d.ts",
|
|
60
|
-
"import": "./dist/server/index.js"
|
|
54
|
+
"types": "./dist/lib/core/client/index.d.ts",
|
|
55
|
+
"import": "./dist/lib/core/client/index.js"
|
|
61
56
|
}
|
|
62
57
|
},
|
|
63
58
|
"engines": {
|