@orpc/contract 0.0.0-next.55d0b4f → 0.0.0-next.56e31fa
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.js +60 -85
- package/dist/src/builder.d.ts +6 -5
- package/dist/src/index.d.ts +2 -2
- package/dist/src/procedure-decorated.d.ts +12 -0
- package/dist/src/procedure.d.ts +14 -35
- package/dist/src/router-builder.d.ts +15 -11
- package/dist/src/router.d.ts +2 -6
- package/dist/src/types.d.ts +4 -5
- package/package.json +8 -5
- package/dist/src/constants.d.ts +0 -3
- package/dist/src/utils.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -1,93 +1,102 @@
|
|
|
1
1
|
// src/procedure.ts
|
|
2
2
|
var ContractProcedure = class {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
"~type" = "ContractProcedure";
|
|
4
|
+
"~orpc";
|
|
5
|
+
constructor(def) {
|
|
6
|
+
this["~orpc"] = def;
|
|
5
7
|
}
|
|
6
8
|
};
|
|
9
|
+
function isContractProcedure(item) {
|
|
10
|
+
return item instanceof ContractProcedure;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/procedure-decorated.ts
|
|
7
14
|
var DecoratedContractProcedure = class _DecoratedContractProcedure extends ContractProcedure {
|
|
8
|
-
static decorate(
|
|
9
|
-
if (
|
|
10
|
-
return
|
|
11
|
-
|
|
15
|
+
static decorate(procedure) {
|
|
16
|
+
if (procedure instanceof _DecoratedContractProcedure) {
|
|
17
|
+
return procedure;
|
|
18
|
+
}
|
|
19
|
+
return new _DecoratedContractProcedure(procedure["~orpc"]);
|
|
12
20
|
}
|
|
13
|
-
route(
|
|
21
|
+
route(route) {
|
|
14
22
|
return new _DecoratedContractProcedure({
|
|
15
|
-
...this
|
|
16
|
-
|
|
17
|
-
method: opts.method,
|
|
18
|
-
path: opts.path
|
|
23
|
+
...this["~orpc"],
|
|
24
|
+
route
|
|
19
25
|
});
|
|
20
26
|
}
|
|
21
27
|
prefix(prefix) {
|
|
22
|
-
if (!this.zz$cp.path)
|
|
23
|
-
return this;
|
|
24
28
|
return new _DecoratedContractProcedure({
|
|
25
|
-
...this
|
|
26
|
-
path
|
|
29
|
+
...this["~orpc"],
|
|
30
|
+
...this["~orpc"].route?.path ? {
|
|
31
|
+
route: {
|
|
32
|
+
...this["~orpc"].route,
|
|
33
|
+
path: `${prefix}${this["~orpc"].route.path}`
|
|
34
|
+
}
|
|
35
|
+
} : void 0
|
|
27
36
|
});
|
|
28
37
|
}
|
|
29
|
-
|
|
30
|
-
if (!tags.length)
|
|
31
|
-
return this;
|
|
38
|
+
pushTag(...tags) {
|
|
32
39
|
return new _DecoratedContractProcedure({
|
|
33
|
-
...this
|
|
34
|
-
|
|
40
|
+
...this["~orpc"],
|
|
41
|
+
route: {
|
|
42
|
+
...this["~orpc"].route,
|
|
43
|
+
tags: [...this["~orpc"].route?.tags ?? [], ...tags]
|
|
44
|
+
}
|
|
35
45
|
});
|
|
36
46
|
}
|
|
37
47
|
input(schema, example) {
|
|
38
48
|
return new _DecoratedContractProcedure({
|
|
39
|
-
...this
|
|
49
|
+
...this["~orpc"],
|
|
40
50
|
InputSchema: schema,
|
|
41
51
|
inputExample: example
|
|
42
52
|
});
|
|
43
53
|
}
|
|
44
54
|
output(schema, example) {
|
|
45
55
|
return new _DecoratedContractProcedure({
|
|
46
|
-
...this
|
|
56
|
+
...this["~orpc"],
|
|
47
57
|
OutputSchema: schema,
|
|
48
58
|
outputExample: example
|
|
49
59
|
});
|
|
50
60
|
}
|
|
51
61
|
};
|
|
52
|
-
function isContractProcedure(item) {
|
|
53
|
-
if (item instanceof ContractProcedure)
|
|
54
|
-
return true;
|
|
55
|
-
return (typeof item === "object" || typeof item === "function") && item !== null && "zz$cp" in item && typeof item.zz$cp === "object" && item.zz$cp !== null && "InputSchema" in item.zz$cp && "OutputSchema" in item.zz$cp;
|
|
56
|
-
}
|
|
57
62
|
|
|
58
63
|
// src/router-builder.ts
|
|
59
64
|
var ContractRouterBuilder = class _ContractRouterBuilder {
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
"~type" = "ContractProcedure";
|
|
66
|
+
"~orpc";
|
|
67
|
+
constructor(def) {
|
|
68
|
+
this["~orpc"] = def;
|
|
62
69
|
}
|
|
63
70
|
prefix(prefix) {
|
|
64
71
|
return new _ContractRouterBuilder({
|
|
65
|
-
...this
|
|
66
|
-
prefix: `${this.
|
|
72
|
+
...this["~orpc"],
|
|
73
|
+
prefix: `${this["~orpc"].prefix ?? ""}${prefix}`
|
|
67
74
|
});
|
|
68
75
|
}
|
|
69
|
-
|
|
70
|
-
if (!tags.length)
|
|
71
|
-
return this;
|
|
76
|
+
tag(...tags) {
|
|
72
77
|
return new _ContractRouterBuilder({
|
|
73
|
-
...this
|
|
74
|
-
tags: [...this.
|
|
78
|
+
...this["~orpc"],
|
|
79
|
+
tags: [...this["~orpc"].tags ?? [], ...tags]
|
|
75
80
|
});
|
|
76
81
|
}
|
|
77
82
|
router(router) {
|
|
78
|
-
const
|
|
83
|
+
const adapted = {};
|
|
79
84
|
for (const key in router) {
|
|
80
85
|
const item = router[key];
|
|
81
86
|
if (isContractProcedure(item)) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
let decorated = DecoratedContractProcedure.decorate(item);
|
|
88
|
+
if (this["~orpc"].tags) {
|
|
89
|
+
decorated = decorated.pushTag(...this["~orpc"].tags);
|
|
90
|
+
}
|
|
91
|
+
if (this["~orpc"].prefix) {
|
|
92
|
+
decorated = decorated.prefix(this["~orpc"].prefix);
|
|
93
|
+
}
|
|
94
|
+
adapted[key] = decorated;
|
|
86
95
|
} else {
|
|
87
|
-
|
|
96
|
+
adapted[key] = this.router(item);
|
|
88
97
|
}
|
|
89
98
|
}
|
|
90
|
-
return
|
|
99
|
+
return adapted;
|
|
91
100
|
}
|
|
92
101
|
};
|
|
93
102
|
|
|
@@ -98,16 +107,16 @@ var ContractBuilder = class {
|
|
|
98
107
|
prefix
|
|
99
108
|
});
|
|
100
109
|
}
|
|
101
|
-
|
|
110
|
+
tag(...tags) {
|
|
102
111
|
return new ContractRouterBuilder({
|
|
103
112
|
tags
|
|
104
113
|
});
|
|
105
114
|
}
|
|
106
|
-
route(
|
|
115
|
+
route(route) {
|
|
107
116
|
return new DecoratedContractProcedure({
|
|
117
|
+
route,
|
|
108
118
|
InputSchema: void 0,
|
|
109
|
-
OutputSchema: void 0
|
|
110
|
-
...opts
|
|
119
|
+
OutputSchema: void 0
|
|
111
120
|
});
|
|
112
121
|
}
|
|
113
122
|
input(schema, example) {
|
|
@@ -119,9 +128,9 @@ var ContractBuilder = class {
|
|
|
119
128
|
}
|
|
120
129
|
output(schema, example) {
|
|
121
130
|
return new DecoratedContractProcedure({
|
|
122
|
-
InputSchema: void 0,
|
|
123
131
|
OutputSchema: schema,
|
|
124
|
-
outputExample: example
|
|
132
|
+
outputExample: example,
|
|
133
|
+
InputSchema: void 0
|
|
125
134
|
});
|
|
126
135
|
}
|
|
127
136
|
router(router) {
|
|
@@ -129,48 +138,14 @@ var ContractBuilder = class {
|
|
|
129
138
|
}
|
|
130
139
|
};
|
|
131
140
|
|
|
132
|
-
// src/constants.ts
|
|
133
|
-
var ORPC_HEADER = "x-orpc-transformer";
|
|
134
|
-
var ORPC_HEADER_VALUE = "t";
|
|
135
|
-
|
|
136
|
-
// src/router.ts
|
|
137
|
-
function eachContractRouterLeaf(router, callback, prefix = []) {
|
|
138
|
-
for (const key in router) {
|
|
139
|
-
const item = router[key];
|
|
140
|
-
if (isContractProcedure(item)) {
|
|
141
|
-
callback(item, [...prefix, key]);
|
|
142
|
-
} else {
|
|
143
|
-
eachContractRouterLeaf(item, callback, [...prefix, key]);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// src/utils.ts
|
|
149
|
-
function standardizeHTTPPath(path) {
|
|
150
|
-
return `/${path.replace(/\/{2,}/g, "/").replace(/^\/|\/$/g, "")}`;
|
|
151
|
-
}
|
|
152
|
-
function prefixHTTPPath(prefix, path) {
|
|
153
|
-
const prefix_ = standardizeHTTPPath(prefix);
|
|
154
|
-
const path_ = standardizeHTTPPath(path);
|
|
155
|
-
if (prefix_ === "/")
|
|
156
|
-
return path_;
|
|
157
|
-
if (path_ === "/")
|
|
158
|
-
return prefix_;
|
|
159
|
-
return `${prefix_}${path_}`;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
141
|
// src/index.ts
|
|
163
142
|
var oc = new ContractBuilder();
|
|
164
143
|
export {
|
|
165
144
|
ContractBuilder,
|
|
166
145
|
ContractProcedure,
|
|
146
|
+
ContractRouterBuilder,
|
|
167
147
|
DecoratedContractProcedure,
|
|
168
|
-
ORPC_HEADER,
|
|
169
|
-
ORPC_HEADER_VALUE,
|
|
170
|
-
eachContractRouterLeaf,
|
|
171
148
|
isContractProcedure,
|
|
172
|
-
oc
|
|
173
|
-
prefixHTTPPath,
|
|
174
|
-
standardizeHTTPPath
|
|
149
|
+
oc
|
|
175
150
|
};
|
|
176
151
|
//# sourceMappingURL=index.js.map
|
package/dist/src/builder.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import type { RouteOptions } from './procedure';
|
|
1
2
|
import type { ContractRouter } from './router';
|
|
2
3
|
import type { HTTPPath, Schema, SchemaInput, SchemaOutput } from './types';
|
|
3
|
-
import { DecoratedContractProcedure
|
|
4
|
+
import { DecoratedContractProcedure } from './procedure-decorated';
|
|
4
5
|
import { ContractRouterBuilder } from './router-builder';
|
|
5
6
|
export declare class ContractBuilder {
|
|
6
7
|
prefix(prefix: HTTPPath): ContractRouterBuilder;
|
|
7
|
-
|
|
8
|
-
route(
|
|
9
|
-
input<
|
|
10
|
-
output<
|
|
8
|
+
tag(...tags: string[]): ContractRouterBuilder;
|
|
9
|
+
route(route: RouteOptions): DecoratedContractProcedure<undefined, undefined>;
|
|
10
|
+
input<U extends Schema>(schema: U, example?: SchemaInput<U>): DecoratedContractProcedure<U, undefined>;
|
|
11
|
+
output<U extends Schema>(schema: U, example?: SchemaOutput<U>): DecoratedContractProcedure<undefined, U>;
|
|
11
12
|
router<T extends ContractRouter>(router: T): T;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=builder.d.ts.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** unnoq */
|
|
2
2
|
import { ContractBuilder } from './builder';
|
|
3
3
|
export * from './builder';
|
|
4
|
-
export * from './constants';
|
|
5
4
|
export * from './procedure';
|
|
5
|
+
export * from './procedure-decorated';
|
|
6
6
|
export * from './router';
|
|
7
|
+
export * from './router-builder';
|
|
7
8
|
export * from './types';
|
|
8
|
-
export * from './utils';
|
|
9
9
|
export declare const oc: ContractBuilder;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RouteOptions } from './procedure';
|
|
2
|
+
import type { HTTPPath, Schema, SchemaInput, SchemaOutput } from './types';
|
|
3
|
+
import { ContractProcedure } from './procedure';
|
|
4
|
+
export declare class DecoratedContractProcedure<TInputSchema extends Schema, TOutputSchema extends Schema> extends ContractProcedure<TInputSchema, TOutputSchema> {
|
|
5
|
+
static decorate<UInputSchema extends Schema = undefined, UOutputSchema extends Schema = undefined>(procedure: ContractProcedure<UInputSchema, UOutputSchema>): DecoratedContractProcedure<UInputSchema, UOutputSchema>;
|
|
6
|
+
route(route: RouteOptions): DecoratedContractProcedure<TInputSchema, TOutputSchema>;
|
|
7
|
+
prefix(prefix: HTTPPath): DecoratedContractProcedure<TInputSchema, TOutputSchema>;
|
|
8
|
+
pushTag(...tags: string[]): DecoratedContractProcedure<TInputSchema, TOutputSchema>;
|
|
9
|
+
input<U extends Schema = undefined>(schema: U, example?: SchemaInput<U>): DecoratedContractProcedure<U, TOutputSchema>;
|
|
10
|
+
output<U extends Schema = undefined>(schema: U, example?: SchemaOutput<U>): DecoratedContractProcedure<TInputSchema, U>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=procedure-decorated.d.ts.map
|
package/dist/src/procedure.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HTTPMethod, HTTPPath, Schema,
|
|
1
|
+
import type { HTTPMethod, HTTPPath, Schema, SchemaOutput } from './types';
|
|
2
2
|
export interface RouteOptions {
|
|
3
3
|
method?: HTTPMethod;
|
|
4
4
|
path?: HTTPPath;
|
|
@@ -7,40 +7,19 @@ export interface RouteOptions {
|
|
|
7
7
|
deprecated?: boolean;
|
|
8
8
|
tags?: string[];
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
deprecated?: boolean;
|
|
17
|
-
tags?: string[];
|
|
18
|
-
InputSchema: TInputSchema;
|
|
19
|
-
inputExample?: SchemaOutput<TInputSchema>;
|
|
20
|
-
OutputSchema: TOutputSchema;
|
|
21
|
-
outputExample?: SchemaOutput<TOutputSchema>;
|
|
22
|
-
};
|
|
23
|
-
constructor(zz$cp: {
|
|
24
|
-
path?: HTTPPath;
|
|
25
|
-
method?: HTTPMethod;
|
|
26
|
-
summary?: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
deprecated?: boolean;
|
|
29
|
-
tags?: string[];
|
|
30
|
-
InputSchema: TInputSchema;
|
|
31
|
-
inputExample?: SchemaOutput<TInputSchema>;
|
|
32
|
-
OutputSchema: TOutputSchema;
|
|
33
|
-
outputExample?: SchemaOutput<TOutputSchema>;
|
|
34
|
-
});
|
|
10
|
+
export interface ContractProcedureDef<TInputSchema extends Schema, TOutputSchema extends Schema> {
|
|
11
|
+
route?: RouteOptions;
|
|
12
|
+
InputSchema: TInputSchema;
|
|
13
|
+
inputExample?: SchemaOutput<TInputSchema>;
|
|
14
|
+
OutputSchema: TOutputSchema;
|
|
15
|
+
outputExample?: SchemaOutput<TOutputSchema>;
|
|
35
16
|
}
|
|
36
|
-
export declare class
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
addTags(...tags: string[]): DecoratedContractProcedure<TInputSchema, TOutputSchema>;
|
|
41
|
-
input<USchema extends Schema>(schema: USchema, example?: SchemaInput<USchema>): DecoratedContractProcedure<USchema, TOutputSchema>;
|
|
42
|
-
output<USchema extends Schema>(schema: USchema, example?: SchemaOutput<USchema>): DecoratedContractProcedure<TInputSchema, USchema>;
|
|
17
|
+
export declare class ContractProcedure<TInputSchema extends Schema, TOutputSchema extends Schema> {
|
|
18
|
+
'~type': "ContractProcedure";
|
|
19
|
+
'~orpc': ContractProcedureDef<TInputSchema, TOutputSchema>;
|
|
20
|
+
constructor(def: ContractProcedureDef<TInputSchema, TOutputSchema>);
|
|
43
21
|
}
|
|
44
|
-
export type
|
|
45
|
-
export
|
|
22
|
+
export type ANY_CONTRACT_PROCEDURE = ContractProcedure<any, any>;
|
|
23
|
+
export type WELL_CONTRACT_PROCEDURE = ContractProcedure<Schema, Schema>;
|
|
24
|
+
export declare function isContractProcedure(item: unknown): item is ANY_CONTRACT_PROCEDURE;
|
|
46
25
|
//# sourceMappingURL=procedure.d.ts.map
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ContractProcedure } from './procedure';
|
|
2
|
+
import type { ContractRouter } from './router';
|
|
2
3
|
import type { HTTPPath } from './types';
|
|
4
|
+
import { DecoratedContractProcedure } from './procedure-decorated';
|
|
5
|
+
export type AdaptedContractRouter<TContract extends ContractRouter> = {
|
|
6
|
+
[K in keyof TContract]: TContract[K] extends ContractProcedure<infer UInputSchema, infer UOutputSchema> ? DecoratedContractProcedure<UInputSchema, UOutputSchema> : TContract[K] extends ContractRouter ? AdaptedContractRouter<TContract[K]> : never;
|
|
7
|
+
};
|
|
8
|
+
export interface ContractRouterBuilderDef {
|
|
9
|
+
prefix?: HTTPPath;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
}
|
|
3
12
|
export declare class ContractRouterBuilder {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
constructor(zz$crb: {
|
|
9
|
-
prefix?: HTTPPath;
|
|
10
|
-
tags?: string[];
|
|
11
|
-
});
|
|
13
|
+
'~type': "ContractProcedure";
|
|
14
|
+
'~orpc': ContractRouterBuilderDef;
|
|
15
|
+
constructor(def: ContractRouterBuilderDef);
|
|
12
16
|
prefix(prefix: HTTPPath): ContractRouterBuilder;
|
|
13
|
-
|
|
14
|
-
router<T extends ContractRouter>(router: T):
|
|
17
|
+
tag(...tags: string[]): ContractRouterBuilder;
|
|
18
|
+
router<T extends ContractRouter>(router: T): AdaptedContractRouter<T>;
|
|
15
19
|
}
|
|
16
20
|
//# sourceMappingURL=router-builder.d.ts.map
|
package/dist/src/router.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
+
import type { ANY_CONTRACT_PROCEDURE, ContractProcedure } from './procedure';
|
|
1
2
|
import type { SchemaInput, SchemaOutput } from './types';
|
|
2
|
-
import { type ContractProcedure, type DecoratedContractProcedure, type WELL_DEFINED_CONTRACT_PROCEDURE } from './procedure';
|
|
3
3
|
export interface ContractRouter {
|
|
4
|
-
[k: string]:
|
|
4
|
+
[k: string]: ANY_CONTRACT_PROCEDURE | ContractRouter;
|
|
5
5
|
}
|
|
6
|
-
export type HandledContractRouter<TContract extends ContractRouter> = {
|
|
7
|
-
[K in keyof TContract]: TContract[K] extends ContractProcedure<infer UInputSchema, infer UOutputSchema> ? DecoratedContractProcedure<UInputSchema, UOutputSchema> : TContract[K] extends ContractRouter ? HandledContractRouter<TContract[K]> : never;
|
|
8
|
-
};
|
|
9
|
-
export declare function eachContractRouterLeaf(router: ContractRouter, callback: (item: WELL_DEFINED_CONTRACT_PROCEDURE, path: string[]) => void, prefix?: string[]): void;
|
|
10
6
|
export type InferContractRouterInputs<T extends ContractRouter> = {
|
|
11
7
|
[K in keyof T]: T[K] extends ContractProcedure<infer UInputSchema, any> ? SchemaInput<UInputSchema> : T[K] extends ContractRouter ? InferContractRouterInputs<T[K]> : never;
|
|
12
8
|
};
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
2
|
export type HTTPPath = `/${string}`;
|
|
3
3
|
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
4
|
-
export type
|
|
5
|
-
export type Schema =
|
|
6
|
-
export type
|
|
7
|
-
export type SchemaOutput<TSchema extends Schema, TFallback = unknown> = TSchema extends undefined ? TFallback : TSchema extends ZodType<any, any, any> ? output<TSchema> : TFallback;
|
|
4
|
+
export type Schema = StandardSchemaV1 | undefined;
|
|
5
|
+
export type SchemaInput<TSchema extends Schema, TFallback = unknown> = TSchema extends undefined ? TFallback : TSchema extends StandardSchemaV1 ? StandardSchemaV1.InferInput<TSchema> : TFallback;
|
|
6
|
+
export type SchemaOutput<TSchema extends Schema, TFallback = unknown> = TSchema extends undefined ? TFallback : TSchema extends StandardSchemaV1 ? StandardSchemaV1.InferOutput<TSchema> : TFallback;
|
|
8
7
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/contract",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.56e31fa",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -28,11 +28,14 @@
|
|
|
28
28
|
"!**/*.tsbuildinfo",
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"zod": ">=3.23.0"
|
|
33
|
-
},
|
|
34
31
|
"dependencies": {
|
|
35
|
-
"@
|
|
32
|
+
"@standard-schema/spec": "1.0.0-beta.4",
|
|
33
|
+
"@orpc/shared": "0.0.0-next.56e31fa"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"arktype": "2.0.0-rc.26",
|
|
37
|
+
"valibot": "1.0.0-beta.9",
|
|
38
|
+
"zod": "3.24.1"
|
|
36
39
|
},
|
|
37
40
|
"scripts": {
|
|
38
41
|
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
|
package/dist/src/constants.d.ts
DELETED
package/dist/src/utils.d.ts
DELETED