@sx3/ultra 0.2.2 → 0.2.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/auth.d.mts +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/cors.d.mts +1 -1
- package/dist/{middleware-BXszEB7Z.d.mts → middleware-DBH3SF9B.d.mts} +3 -3
- package/dist/middleware.d.mts +1 -1
- package/dist/procedure.d.mts +1 -1
- package/dist/session.d.mts +1 -1
- package/dist/ultra.d.mts +1 -1
- package/package.json +1 -1
package/dist/auth.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as Promisable } from "./types-DDhVsVEu.mjs";
|
|
2
2
|
import { n as DeriveRecord, t as BaseContext } from "./context-BdPiiQY2.mjs";
|
|
3
3
|
import "./http-DW9-I0jB.mjs";
|
|
4
|
-
import { t as Middleware } from "./middleware-
|
|
4
|
+
import { t as Middleware } from "./middleware-DBH3SF9B.mjs";
|
|
5
5
|
import { ProceduresMap, Ultra } from "./ultra.mjs";
|
|
6
6
|
import { SessionContext } from "./session.mjs";
|
|
7
7
|
|
package/dist/client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as Simplify } from "./types-DDhVsVEu.mjs";
|
|
2
2
|
import "./context-BdPiiQY2.mjs";
|
|
3
3
|
import "./http-DW9-I0jB.mjs";
|
|
4
|
-
import { i as GetOutput, o as Procedure, r as GetInput } from "./middleware-
|
|
4
|
+
import { i as GetOutput, o as Procedure, r as GetInput } from "./middleware-DBH3SF9B.mjs";
|
|
5
5
|
import { ProceduresMap, Ultra } from "./ultra.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/client.d.ts
|
package/dist/cors.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BaseContext } from "./context-BdPiiQY2.mjs";
|
|
2
2
|
import "./http-DW9-I0jB.mjs";
|
|
3
|
-
import { t as Middleware } from "./middleware-
|
|
3
|
+
import { t as Middleware } from "./middleware-DBH3SF9B.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/cors.d.ts
|
|
6
6
|
interface CorsConfig {
|
|
@@ -21,7 +21,7 @@ interface HTTPOptions {
|
|
|
21
21
|
* @generic C is context
|
|
22
22
|
*/
|
|
23
23
|
declare class Procedure<I = unknown, O = unknown, C = unknown> {
|
|
24
|
-
protected readonly middlewares: Set<Middleware<I
|
|
24
|
+
protected readonly middlewares: Set<Middleware<GetOutput<I>, GetOutput<O>, C>>;
|
|
25
25
|
protected inputSchema?: StandardSchemaV1<I>;
|
|
26
26
|
protected outputSchema?: StandardSchemaV1<O>;
|
|
27
27
|
protected handlerFunction?: ProcedureHandler<I, O, C>;
|
|
@@ -35,13 +35,13 @@ declare class Procedure<I = unknown, O = unknown, C = unknown> {
|
|
|
35
35
|
/** Set HTTP options for the procedure */
|
|
36
36
|
http(options?: HTTPOptions | boolean | HTTPMethod): Procedure<I, O, C>;
|
|
37
37
|
/** Add middleware to the procedure */
|
|
38
|
-
use(middleware: Middleware<I
|
|
38
|
+
use(middleware: Middleware<GetOutput<I>, GetOutput<O>, C>): this;
|
|
39
39
|
/** Returns a function that checks input and output parameters. */
|
|
40
40
|
compile(): ProcedureHandler<I, O, C>;
|
|
41
41
|
/** Get procedure metadata information */
|
|
42
42
|
metadata(): {
|
|
43
43
|
http: HTTPOptions | undefined;
|
|
44
|
-
middlewares: Set<Middleware<I
|
|
44
|
+
middlewares: Set<Middleware<GetOutput<I>, GetOutput<O>, C>>;
|
|
45
45
|
has: {
|
|
46
46
|
handler: boolean;
|
|
47
47
|
middleware: boolean;
|
package/dist/middleware.d.mts
CHANGED
package/dist/procedure.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./http-DW9-I0jB.mjs";
|
|
2
|
-
import { a as HTTPOptions, c as ProcedureOptions, i as GetOutput, o as Procedure, r as GetInput, s as ProcedureHandler } from "./middleware-
|
|
2
|
+
import { a as HTTPOptions, c as ProcedureOptions, i as GetOutput, o as Procedure, r as GetInput, s as ProcedureHandler } from "./middleware-DBH3SF9B.mjs";
|
|
3
3
|
export { GetInput, GetOutput, HTTPOptions, Procedure, ProcedureHandler, ProcedureOptions };
|
package/dist/session.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as JSONObject, o as JSONValue, s as Promisable, t as DeepReadonly } from "./types-DDhVsVEu.mjs";
|
|
2
2
|
import { n as DeriveRecord, t as BaseContext } from "./context-BdPiiQY2.mjs";
|
|
3
3
|
import "./http-DW9-I0jB.mjs";
|
|
4
|
-
import { o as Procedure } from "./middleware-
|
|
4
|
+
import { o as Procedure } from "./middleware-DBH3SF9B.mjs";
|
|
5
5
|
import { ProceduresMap, Ultra } from "./ultra.mjs";
|
|
6
6
|
import { BunRequest, CookieSameSite, RedisClient } from "bun";
|
|
7
7
|
|
package/dist/ultra.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as Simplify } from "./types-DDhVsVEu.mjs";
|
|
2
2
|
import { a as DeriveValue, i as DeriveUpgradeValue, l as ReplaceSocketData, n as DeriveRecord, o as GetDerived, s as GetDerivedUpgradeData, t as BaseContext } from "./context-BdPiiQY2.mjs";
|
|
3
3
|
import { n as BunRoutes } from "./http-DW9-I0jB.mjs";
|
|
4
|
-
import { o as Procedure, s as ProcedureHandler, t as Middleware } from "./middleware-
|
|
4
|
+
import { o as Procedure, s as ProcedureHandler, t as Middleware } from "./middleware-DBH3SF9B.mjs";
|
|
5
5
|
import { n as Payload } from "./rpc-BzGFmZuu.mjs";
|
|
6
6
|
import { BunRequest, ErrorLike, Server, ServerWebSocket } from "bun";
|
|
7
7
|
|