@temporary-name/server 1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8
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/LICENSE +21 -0
- package/README.md +31 -0
- package/dist/adapters/aws-lambda/index.d.mts +24 -0
- package/dist/adapters/aws-lambda/index.d.ts +24 -0
- package/dist/adapters/aws-lambda/index.mjs +23 -0
- package/dist/adapters/fetch/index.d.mts +102 -0
- package/dist/adapters/fetch/index.d.ts +102 -0
- package/dist/adapters/fetch/index.mjs +171 -0
- package/dist/adapters/node/index.d.mts +77 -0
- package/dist/adapters/node/index.d.ts +77 -0
- package/dist/adapters/node/index.mjs +136 -0
- package/dist/adapters/standard/index.d.mts +16 -0
- package/dist/adapters/standard/index.d.ts +16 -0
- package/dist/adapters/standard/index.mjs +101 -0
- package/dist/helpers/index.d.mts +149 -0
- package/dist/helpers/index.d.ts +149 -0
- package/dist/helpers/index.mjs +168 -0
- package/dist/index.d.mts +705 -0
- package/dist/index.d.ts +705 -0
- package/dist/index.mjs +618 -0
- package/dist/plugins/index.d.mts +160 -0
- package/dist/plugins/index.d.ts +160 -0
- package/dist/plugins/index.mjs +288 -0
- package/dist/shared/server.BEQrAa3A.mjs +207 -0
- package/dist/shared/server.Bo94xDTv.d.mts +73 -0
- package/dist/shared/server.Btxrgkj5.d.ts +73 -0
- package/dist/shared/server.C1YnHvvf.d.mts +192 -0
- package/dist/shared/server.C1YnHvvf.d.ts +192 -0
- package/dist/shared/server.D6K9uoPI.mjs +35 -0
- package/dist/shared/server.DZ5BIITo.mjs +9 -0
- package/dist/shared/server.X0YaZxSJ.mjs +13 -0
- package/package.json +89 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { ErrorMap, ErrorMapItem, InferSchemaInput, AnySchema, Meta, ContractProcedureDef, InferSchemaOutput, ErrorFromErrorMap, AnyContractRouter, ContractProcedure } from '@temporary-name/contract';
|
|
2
|
+
import { ORPCErrorCode, MaybeOptionalOptions, ORPCErrorOptions, ORPCError, HTTPPath, Promisable, ClientContext, Interceptor, PromiseWithError, Value, Client } from '@temporary-name/shared';
|
|
3
|
+
|
|
4
|
+
type Context = Record<PropertyKey, any>;
|
|
5
|
+
type MergedInitialContext<TInitial extends Context, TAdditional extends Context, TCurrent extends Context> = TInitial & Omit<TAdditional, keyof TCurrent>;
|
|
6
|
+
type MergedCurrentContext<T extends Context, U extends Context> = Omit<T, keyof U> & U;
|
|
7
|
+
declare function mergeCurrentContext<T extends Context, U extends Context>(context: T, other: U): MergedCurrentContext<T, U>;
|
|
8
|
+
|
|
9
|
+
type ORPCErrorConstructorMapItemOptions<TData> = Omit<ORPCErrorOptions<TData>, 'defined' | 'status'>;
|
|
10
|
+
type ORPCErrorConstructorMapItem<TCode extends ORPCErrorCode, TInData> = (...rest: MaybeOptionalOptions<ORPCErrorConstructorMapItemOptions<TInData>>) => ORPCError<TCode, TInData>;
|
|
11
|
+
type ORPCErrorConstructorMap<T extends ErrorMap> = {
|
|
12
|
+
[K in keyof T]: K extends ORPCErrorCode ? T[K] extends ErrorMapItem<infer UInputSchema> ? ORPCErrorConstructorMapItem<K, InferSchemaInput<UInputSchema>> : never : never;
|
|
13
|
+
};
|
|
14
|
+
declare function createORPCErrorConstructorMap<T extends ErrorMap>(errors: T): ORPCErrorConstructorMap<T>;
|
|
15
|
+
|
|
16
|
+
declare const LAZY_SYMBOL: unique symbol;
|
|
17
|
+
interface LazyMeta {
|
|
18
|
+
prefix?: HTTPPath;
|
|
19
|
+
}
|
|
20
|
+
interface Lazy<T> {
|
|
21
|
+
[LAZY_SYMBOL]: {
|
|
22
|
+
loader: () => Promise<{
|
|
23
|
+
default: T;
|
|
24
|
+
}>;
|
|
25
|
+
meta: LazyMeta;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
type Lazyable<T> = T | Lazy<T>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a lazy-loaded item.
|
|
31
|
+
*
|
|
32
|
+
* @warning The `prefix` in `meta` only holds metadata and does not apply the prefix to the lazy router, use `os.prefix(...).lazyRoute(...)` instead.
|
|
33
|
+
*/
|
|
34
|
+
declare function lazy<T>(loader: () => Promise<{
|
|
35
|
+
default: T;
|
|
36
|
+
}>, meta?: LazyMeta): Lazy<T>;
|
|
37
|
+
declare function isLazy(item: unknown): item is Lazy<any>;
|
|
38
|
+
declare function getLazyMeta(lazied: Lazy<any>): LazyMeta;
|
|
39
|
+
declare function unlazy<T extends Lazyable<any>>(lazied: T): Promise<{
|
|
40
|
+
default: T extends Lazy<infer U> ? U : T;
|
|
41
|
+
}>;
|
|
42
|
+
|
|
43
|
+
interface ProcedureHandlerOptions<TCurrentContext extends Context, TInput, TErrorConstructorMap extends ORPCErrorConstructorMap<any>, TMeta extends Meta> {
|
|
44
|
+
context: TCurrentContext;
|
|
45
|
+
input: TInput;
|
|
46
|
+
path: readonly string[];
|
|
47
|
+
procedure: Procedure<Context, Context, AnySchema, AnySchema, ErrorMap, TMeta>;
|
|
48
|
+
signal?: AbortSignal;
|
|
49
|
+
lastEventId: string | undefined;
|
|
50
|
+
errors: TErrorConstructorMap;
|
|
51
|
+
}
|
|
52
|
+
interface ProcedureHandler<TCurrentContext extends Context, TInput, THandlerOutput, TErrorMap extends ErrorMap, TMeta extends Meta> {
|
|
53
|
+
(opt: ProcedureHandlerOptions<TCurrentContext, TInput, ORPCErrorConstructorMap<TErrorMap>, TMeta>): Promisable<THandlerOutput>;
|
|
54
|
+
}
|
|
55
|
+
interface ProcedureDef<TInitialContext extends Context, TCurrentContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> extends ContractProcedureDef<TInputSchema, TOutputSchema, TErrorMap, TMeta> {
|
|
56
|
+
__initialContext?: (type: TInitialContext) => unknown;
|
|
57
|
+
middlewares: readonly AnyMiddleware[];
|
|
58
|
+
inputValidationIndex: number;
|
|
59
|
+
outputValidationIndex: number;
|
|
60
|
+
handler: ProcedureHandler<TCurrentContext, any, any, any, any>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* This class represents a procedure.
|
|
64
|
+
*
|
|
65
|
+
* @see {@link https://orpc.unnoq.com/docs/procedure Procedure Docs}
|
|
66
|
+
*/
|
|
67
|
+
declare class Procedure<TInitialContext extends Context, TCurrentContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> {
|
|
68
|
+
/**
|
|
69
|
+
* This property holds the defined options.
|
|
70
|
+
*/
|
|
71
|
+
'~orpc': ProcedureDef<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>;
|
|
72
|
+
constructor(def: ProcedureDef<TInitialContext, TCurrentContext, TInputSchema, TOutputSchema, TErrorMap, TMeta>);
|
|
73
|
+
}
|
|
74
|
+
type AnyProcedure = Procedure<any, any, any, any, any, any>;
|
|
75
|
+
declare function isProcedure(item: unknown): item is AnyProcedure;
|
|
76
|
+
|
|
77
|
+
type MiddlewareResult<TOutContext extends Context, TOutput> = Promisable<{
|
|
78
|
+
output: TOutput;
|
|
79
|
+
context: TOutContext;
|
|
80
|
+
}>;
|
|
81
|
+
type MiddlewareNextFnOptions<TOutContext extends Context> = Record<never, never> extends TOutContext ? {
|
|
82
|
+
context?: TOutContext;
|
|
83
|
+
} : {
|
|
84
|
+
context: TOutContext;
|
|
85
|
+
};
|
|
86
|
+
interface MiddlewareNextFn<TOutput> {
|
|
87
|
+
<U extends Context = Record<never, never>>(...rest: MaybeOptionalOptions<MiddlewareNextFnOptions<U>>): MiddlewareResult<U, TOutput>;
|
|
88
|
+
}
|
|
89
|
+
interface MiddlewareOutputFn<TOutput> {
|
|
90
|
+
(output: TOutput): MiddlewareResult<Record<never, never>, TOutput>;
|
|
91
|
+
}
|
|
92
|
+
interface MiddlewareOptions<TInContext extends Context, TOutput, TErrorConstructorMap extends ORPCErrorConstructorMap<any>, TMeta extends Meta> {
|
|
93
|
+
context: TInContext;
|
|
94
|
+
path: readonly string[];
|
|
95
|
+
procedure: Procedure<Context, Context, AnySchema, AnySchema, ErrorMap, TMeta>;
|
|
96
|
+
signal?: AbortSignal;
|
|
97
|
+
lastEventId: string | undefined;
|
|
98
|
+
next: MiddlewareNextFn<TOutput>;
|
|
99
|
+
errors: TErrorConstructorMap;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* A function that represents a middleware.
|
|
103
|
+
*
|
|
104
|
+
* @see {@link https://orpc.unnoq.com/docs/middleware Middleware Docs}
|
|
105
|
+
*/
|
|
106
|
+
interface Middleware<TInContext extends Context, TOutContext extends Context, TInput, TOutput, TErrorConstructorMap extends ORPCErrorConstructorMap<any>, TMeta extends Meta> {
|
|
107
|
+
(options: MiddlewareOptions<TInContext, TOutput, TErrorConstructorMap, TMeta>, input: TInput, output: MiddlewareOutputFn<TOutput>): Promisable<MiddlewareResult<TOutContext, TOutput>>;
|
|
108
|
+
}
|
|
109
|
+
type AnyMiddleware = Middleware<any, any, any, any, any, any>;
|
|
110
|
+
interface MapInputMiddleware<TInput, TMappedInput> {
|
|
111
|
+
(input: TInput): TMappedInput;
|
|
112
|
+
}
|
|
113
|
+
declare function middlewareOutputFn<TOutput>(output: TOutput): MiddlewareResult<Record<never, never>, TOutput>;
|
|
114
|
+
|
|
115
|
+
type ProcedureClient<TClientContext extends ClientContext, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap> = Client<TClientContext, InferSchemaInput<TInputSchema>, InferSchemaOutput<TOutputSchema>, ErrorFromErrorMap<TErrorMap>>;
|
|
116
|
+
interface ProcedureClientInterceptorOptions<TInitialContext extends Context, TErrorMap extends ErrorMap, TMeta extends Meta> {
|
|
117
|
+
context: TInitialContext;
|
|
118
|
+
input: unknown;
|
|
119
|
+
errors: ORPCErrorConstructorMap<TErrorMap>;
|
|
120
|
+
path: readonly string[];
|
|
121
|
+
procedure: Procedure<Context, Context, AnySchema, AnySchema, ErrorMap, TMeta>;
|
|
122
|
+
signal?: AbortSignal;
|
|
123
|
+
lastEventId: string | undefined;
|
|
124
|
+
}
|
|
125
|
+
type CreateProcedureClientOptions<TInitialContext extends Context, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta, TClientContext extends ClientContext> = {
|
|
126
|
+
/**
|
|
127
|
+
* This is helpful for logging and analytics.
|
|
128
|
+
*/
|
|
129
|
+
path?: readonly string[];
|
|
130
|
+
interceptors?: Interceptor<ProcedureClientInterceptorOptions<TInitialContext, TErrorMap, TMeta>, PromiseWithError<InferSchemaOutput<TOutputSchema>, ErrorFromErrorMap<TErrorMap>>>[];
|
|
131
|
+
} & (Record<never, never> extends TInitialContext ? {
|
|
132
|
+
context?: Value<Promisable<TInitialContext>, [clientContext: TClientContext]>;
|
|
133
|
+
} : {
|
|
134
|
+
context: Value<Promisable<TInitialContext>, [clientContext: TClientContext]>;
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* Create Server-side client from a procedure.
|
|
138
|
+
*
|
|
139
|
+
* @see {@link https://orpc.unnoq.com/docs/client/server-side Server-side Client Docs}
|
|
140
|
+
*/
|
|
141
|
+
declare function createProcedureClient<TInitialContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta, TClientContext extends ClientContext>(lazyableProcedure: Lazyable<Procedure<TInitialContext, any, TInputSchema, TOutputSchema, TErrorMap, TMeta>>, ...rest: MaybeOptionalOptions<CreateProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TMeta, TClientContext>>): ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Represents a router, which defines a hierarchical structure of procedures.
|
|
145
|
+
*
|
|
146
|
+
* @info A procedure is a router too.
|
|
147
|
+
* @see {@link https://orpc.unnoq.com/docs/contract-first/define-contract#contract-router Contract Router Docs}
|
|
148
|
+
*/
|
|
149
|
+
type Router<T extends AnyContractRouter, TInitialContext extends Context> = T extends ContractProcedure<infer UInputSchema, infer UOutputSchema, infer UErrorMap, infer UMeta> ? Procedure<TInitialContext, any, UInputSchema, UOutputSchema, UErrorMap, UMeta> : {
|
|
150
|
+
[K in keyof T]: T[K] extends AnyContractRouter ? Lazyable<Router<T[K], TInitialContext>> : never;
|
|
151
|
+
};
|
|
152
|
+
type AnyRouter = Router<any, any>;
|
|
153
|
+
type InferRouterInitialContext<T extends AnyRouter> = T extends Router<any, infer UInitialContext> ? UInitialContext : never;
|
|
154
|
+
/**
|
|
155
|
+
* Infer all initial context of the router.
|
|
156
|
+
*
|
|
157
|
+
* @info A procedure is a router too.
|
|
158
|
+
* @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
|
|
159
|
+
*/
|
|
160
|
+
type InferRouterInitialContexts<T extends AnyRouter> = T extends Procedure<infer UInitialContext, any, any, any, any, any> ? UInitialContext : {
|
|
161
|
+
[K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterInitialContexts<U> : never;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Infer all current context of the router.
|
|
165
|
+
*
|
|
166
|
+
* @info A procedure is a router too.
|
|
167
|
+
* @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
|
|
168
|
+
*/
|
|
169
|
+
type InferRouterCurrentContexts<T extends AnyRouter> = T extends Procedure<any, infer UCurrentContext, any, any, any, any> ? UCurrentContext : {
|
|
170
|
+
[K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterCurrentContexts<U> : never;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Infer all router inputs
|
|
174
|
+
*
|
|
175
|
+
* @info A procedure is a router too.
|
|
176
|
+
* @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
|
|
177
|
+
*/
|
|
178
|
+
type InferRouterInputs<T extends AnyRouter> = T extends Procedure<any, any, infer UInputSchema, any, any, any> ? InferSchemaInput<UInputSchema> : {
|
|
179
|
+
[K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterInputs<U> : never;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Infer all router outputs
|
|
183
|
+
*
|
|
184
|
+
* @info A procedure is a router too.
|
|
185
|
+
* @see {@link https://orpc.unnoq.com/docs/router#utilities Router Utilities Docs}
|
|
186
|
+
*/
|
|
187
|
+
type InferRouterOutputs<T extends AnyRouter> = T extends Procedure<any, any, any, infer UOutputSchema, any, any> ? InferSchemaOutput<UOutputSchema> : {
|
|
188
|
+
[K in keyof T]: T[K] extends Lazyable<infer U extends AnyRouter> ? InferRouterOutputs<U> : never;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export { isProcedure as E, createProcedureClient as F, Procedure as b, mergeCurrentContext as m, createORPCErrorConstructorMap as n, LAZY_SYMBOL as o, lazy as q, isLazy as r, getLazyMeta as s, unlazy as u, middlewareOutputFn as z };
|
|
192
|
+
export type { AnyRouter as A, ProcedureHandlerOptions as B, Context as C, ProcedureDef as D, InferRouterInitialContexts as G, InferRouterCurrentContexts as H, InferRouterInitialContext as I, InferRouterInputs as J, InferRouterOutputs as K, Lazyable as L, Middleware as M, ORPCErrorConstructorMap as O, ProcedureClientInterceptorOptions as P, Router as R, AnyProcedure as a, MergedInitialContext as c, MergedCurrentContext as d, MapInputMiddleware as e, CreateProcedureClientOptions as f, ProcedureClient as g, AnyMiddleware as h, Lazy as i, ProcedureHandler as j, ORPCErrorConstructorMapItemOptions as k, ORPCErrorConstructorMapItem as l, LazyMeta as p, MiddlewareResult as t, MiddlewareNextFnOptions as v, MiddlewareNextFn as w, MiddlewareOutputFn as x, MiddlewareOptions as y };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
+
import 'zod';
|
|
3
|
+
import * as z4 from 'zod/v4/core';
|
|
4
|
+
|
|
5
|
+
const gatingContext = new AsyncLocalStorage();
|
|
6
|
+
function withoutGatedFields(data, schema, isGateEnabled) {
|
|
7
|
+
const filtered = { ...data };
|
|
8
|
+
const gatedFields = getGatedFields(schema);
|
|
9
|
+
for (const [fieldName, gate] of gatedFields) {
|
|
10
|
+
if (!isGateEnabled(gate)) {
|
|
11
|
+
delete filtered[fieldName];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return filtered;
|
|
15
|
+
}
|
|
16
|
+
function getGatedFields(schema) {
|
|
17
|
+
if (!schema || schema["~standard"].vendor !== "zod") {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
const gatedFields = [];
|
|
21
|
+
const zodDef = schema._zod.def;
|
|
22
|
+
if (zodDef.type === "object") {
|
|
23
|
+
const shape = zodDef.shape;
|
|
24
|
+
for (const fieldName in shape) {
|
|
25
|
+
const fieldSchema = shape[fieldName];
|
|
26
|
+
const gate = z4.globalRegistry.get(fieldSchema)?.gate;
|
|
27
|
+
if (gate) {
|
|
28
|
+
gatedFields.push([fieldName, gate]);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return gatedFields;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { gatingContext as g, withoutGatedFields as w };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class CompositeStandardHandlerPlugin {
|
|
2
|
+
plugins;
|
|
3
|
+
constructor(plugins = []) {
|
|
4
|
+
this.plugins = [...plugins].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
5
|
+
}
|
|
6
|
+
init(options, router) {
|
|
7
|
+
for (const plugin of this.plugins) {
|
|
8
|
+
plugin.init?.(options, router);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { CompositeStandardHandlerPlugin as C };
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@temporary-name/server",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://www.stainless.com/",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/unnoq/krusty.git",
|
|
10
|
+
"directory": "packages/server"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"krusty"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.mts",
|
|
18
|
+
"import": "./dist/index.mjs",
|
|
19
|
+
"default": "./dist/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"./helpers": {
|
|
22
|
+
"types": "./dist/helpers/index.d.mts",
|
|
23
|
+
"import": "./dist/helpers/index.mjs",
|
|
24
|
+
"default": "./dist/helpers/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./plugins": {
|
|
27
|
+
"types": "./dist/plugins/index.d.mts",
|
|
28
|
+
"import": "./dist/plugins/index.mjs",
|
|
29
|
+
"default": "./dist/plugins/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./standard": {
|
|
32
|
+
"types": "./dist/adapters/standard/index.d.mts",
|
|
33
|
+
"import": "./dist/adapters/standard/index.mjs",
|
|
34
|
+
"default": "./dist/adapters/standard/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./fetch": {
|
|
37
|
+
"types": "./dist/adapters/fetch/index.d.mts",
|
|
38
|
+
"import": "./dist/adapters/fetch/index.mjs",
|
|
39
|
+
"default": "./dist/adapters/fetch/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./node": {
|
|
42
|
+
"types": "./dist/adapters/node/index.d.mts",
|
|
43
|
+
"import": "./dist/adapters/node/index.mjs",
|
|
44
|
+
"default": "./dist/adapters/node/index.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./aws-lambda": {
|
|
47
|
+
"types": "./dist/adapters/aws-lambda/index.d.mts",
|
|
48
|
+
"import": "./dist/adapters/aws-lambda/index.mjs",
|
|
49
|
+
"default": "./dist/adapters/aws-lambda/index.mjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"dist"
|
|
54
|
+
],
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"drizzle-orm": "^0.44.5",
|
|
57
|
+
"drizzle-zod": "^0.8.3"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"drizzle-orm": {
|
|
61
|
+
"optional": true
|
|
62
|
+
},
|
|
63
|
+
"drizzle-zod": {
|
|
64
|
+
"optional": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"cookie": "^1.0.2",
|
|
69
|
+
"@standard-schema/spec": "^1.0.0",
|
|
70
|
+
"zod": "^4.1.12",
|
|
71
|
+
"@temporary-name/contract": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
72
|
+
"@temporary-name/interop": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
73
|
+
"@temporary-name/openapi": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
74
|
+
"@temporary-name/shared": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
75
|
+
"@temporary-name/standard-server": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
76
|
+
"@temporary-name/standard-server-aws-lambda": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
77
|
+
"@temporary-name/standard-server-fetch": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
|
|
78
|
+
"@temporary-name/standard-server-node": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@types/ws": "^8.18.1",
|
|
82
|
+
"supertest": "^7.1.4"
|
|
83
|
+
},
|
|
84
|
+
"scripts": {
|
|
85
|
+
"build": "unbuild",
|
|
86
|
+
"build:watch": "pnpm run build --watch",
|
|
87
|
+
"type:check": "tsc -b"
|
|
88
|
+
}
|
|
89
|
+
}
|