@orpc/openapi-client 0.0.0
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 +68 -0
- package/dist/adapters/standard/index.d.mts +27 -0
- package/dist/adapters/standard/index.d.ts +27 -0
- package/dist/adapters/standard/index.mjs +213 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 oRPC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<image align="center" src="https://orpc.unnoq.com/logo.webp" width=280 />
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<h1></h1>
|
|
6
|
+
|
|
7
|
+
<div align="center">
|
|
8
|
+
<a href="https://codecov.io/gh/unnoq/orpc">
|
|
9
|
+
<img alt="codecov" src="https://codecov.io/gh/unnoq/orpc/branch/main/graph/badge.svg">
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/@orpc/openapi-client">
|
|
12
|
+
<img alt="weekly downloads" src="https://img.shields.io/npm/dw/%40orpc%2Fopenapi-client?logo=npm" />
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://github.com/unnoq/orpc/blob/main/LICENSE">
|
|
15
|
+
<img alt="MIT License" src="https://img.shields.io/github/license/unnoq/orpc?logo=open-source-initiative" />
|
|
16
|
+
</a>
|
|
17
|
+
<a href="https://discord.gg/TXEbwRBvQn">
|
|
18
|
+
<img alt="Discord" src="https://img.shields.io/discord/1308966753044398161?color=7389D8&label&logo=discord&logoColor=ffffff" />
|
|
19
|
+
</a>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<h3 align="center">Typesafe APIs Made Simple 🪄</h3>
|
|
23
|
+
|
|
24
|
+
**oRPC is a powerful combination of RPC and OpenAPI**, makes it easy to build APIs that are end-to-end type-safe and adhere to OpenAPI standards, ensuring a smooth and enjoyable developer experience.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Highlights
|
|
29
|
+
|
|
30
|
+
- **End-to-End Type Safety 🔒**: Ensure complete type safety from inputs to outputs and errors, bridging server and client seamlessly.
|
|
31
|
+
- **First-Class OpenAPI 📄**: Adheres to the OpenAPI standard out of the box, ensuring seamless integration and comprehensive API documentation.
|
|
32
|
+
- **Contract-First Development 📜**: (Optional) Define your API contract upfront and implement it with confidence.
|
|
33
|
+
- **Exceptional Developer Experience ✨**: Enjoy a streamlined workflow with robust typing and clear, in-code documentation.
|
|
34
|
+
- **Multi-Runtime Support 🌍**: Run your code seamlessly on Cloudflare, Deno, Bun, Node.js, and more.
|
|
35
|
+
- **Framework Integrations 🧩**: Supports Tanstack Query (React, Vue), Pinia Colada, and more.
|
|
36
|
+
- **Server Actions ⚡️**: Fully compatible with React Server Actions on Next.js, TanStack Start, and more.
|
|
37
|
+
- **Standard Schema Support 🗂️**: Effortlessly work with Zod, Valibot, ArkType, and others right out of the box.
|
|
38
|
+
- **Fast & Lightweight 💨**: Built on native APIs across all runtimes – optimized for speed and efficiency.
|
|
39
|
+
- **Native Types 📦**: Enjoy built-in support for Date, File, Blob, BigInt, URL and more with no extra setup.
|
|
40
|
+
- **Lazy Router ⏱️**: Improve cold start times with our lazy routing feature.
|
|
41
|
+
- **SSE & Streaming 📡**: Provides SSE and streaming features – perfect for real-time notifications and AI-powered streaming responses.
|
|
42
|
+
- **Reusability 🔄**: Write once and reuse your code across multiple purposes effortlessly.
|
|
43
|
+
- **Extendability 🔌**: Easily enhance oRPC with plugins, middleware, and interceptors.
|
|
44
|
+
- **Reliability 🛡️**: Well-tested, fully TypeScript, production-ready, and MIT licensed for peace of mind.
|
|
45
|
+
- **Simplicity 💡**: Enjoy straightforward, clean code with no hidden magic.
|
|
46
|
+
|
|
47
|
+
## Documentation
|
|
48
|
+
|
|
49
|
+
You can find the full documentation [here](https://orpc.unnoq.com).
|
|
50
|
+
|
|
51
|
+
## Packages
|
|
52
|
+
|
|
53
|
+
- [@orpc/contract](https://www.npmjs.com/package/@orpc/contract): Build your API contract.
|
|
54
|
+
- [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
|
|
55
|
+
- [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
|
|
56
|
+
- [@orpc/react-query](https://www.npmjs.com/package/@orpc/react-query): Integration with [React Query](https://tanstack.com/query/latest/docs/framework/react/overview).
|
|
57
|
+
- [@orpc/vue-query](https://www.npmjs.com/package/@orpc/vue-query): Integration with [Vue Query](https://tanstack.com/query/latest/docs/framework/vue/overview).
|
|
58
|
+
- [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
|
|
59
|
+
- [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
|
|
60
|
+
- [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
|
|
61
|
+
|
|
62
|
+
## `@orpc/openapi-client`
|
|
63
|
+
|
|
64
|
+
Provides core serializer for OpenAPI requests and responses.
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Segment } from '@orpc/shared';
|
|
2
|
+
|
|
3
|
+
type BracketNotationSerialized = [string, unknown][];
|
|
4
|
+
declare class BracketNotationSerializer {
|
|
5
|
+
serialize(data: unknown, segments?: Segment[], result?: BracketNotationSerialized): BracketNotationSerialized;
|
|
6
|
+
deserialize(serialized: BracketNotationSerialized): unknown;
|
|
7
|
+
stringifyPath(segments: readonly Segment[]): string;
|
|
8
|
+
parsePath(path: string): string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type OpenAPIJsonSerialized = [json: unknown, hasBlob: boolean];
|
|
12
|
+
declare class OpenAPIJsonSerializer {
|
|
13
|
+
serialize(data: unknown, hasBlobRef?: {
|
|
14
|
+
value: boolean;
|
|
15
|
+
}): OpenAPIJsonSerialized;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class OpenAPISerializer {
|
|
19
|
+
#private;
|
|
20
|
+
private readonly jsonSerializer;
|
|
21
|
+
private readonly bracketNotation;
|
|
22
|
+
constructor(jsonSerializer?: OpenAPIJsonSerializer, bracketNotation?: BracketNotationSerializer);
|
|
23
|
+
serialize(data: unknown): unknown;
|
|
24
|
+
deserialize(data: unknown): unknown;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { type BracketNotationSerialized, BracketNotationSerializer, type OpenAPIJsonSerialized, OpenAPIJsonSerializer, OpenAPISerializer };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Segment } from '@orpc/shared';
|
|
2
|
+
|
|
3
|
+
type BracketNotationSerialized = [string, unknown][];
|
|
4
|
+
declare class BracketNotationSerializer {
|
|
5
|
+
serialize(data: unknown, segments?: Segment[], result?: BracketNotationSerialized): BracketNotationSerialized;
|
|
6
|
+
deserialize(serialized: BracketNotationSerialized): unknown;
|
|
7
|
+
stringifyPath(segments: readonly Segment[]): string;
|
|
8
|
+
parsePath(path: string): string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type OpenAPIJsonSerialized = [json: unknown, hasBlob: boolean];
|
|
12
|
+
declare class OpenAPIJsonSerializer {
|
|
13
|
+
serialize(data: unknown, hasBlobRef?: {
|
|
14
|
+
value: boolean;
|
|
15
|
+
}): OpenAPIJsonSerialized;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class OpenAPISerializer {
|
|
19
|
+
#private;
|
|
20
|
+
private readonly jsonSerializer;
|
|
21
|
+
private readonly bracketNotation;
|
|
22
|
+
constructor(jsonSerializer?: OpenAPIJsonSerializer, bracketNotation?: BracketNotationSerializer);
|
|
23
|
+
serialize(data: unknown): unknown;
|
|
24
|
+
deserialize(data: unknown): unknown;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { type BracketNotationSerialized, BracketNotationSerializer, type OpenAPIJsonSerialized, OpenAPIJsonSerializer, OpenAPISerializer };
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { isObject, isAsyncIteratorObject } from '@orpc/shared';
|
|
2
|
+
import { mapEventIterator, toORPCError, ORPCError } from '@orpc/client';
|
|
3
|
+
import { ErrorEvent } from '@orpc/standard-server';
|
|
4
|
+
|
|
5
|
+
class BracketNotationSerializer {
|
|
6
|
+
serialize(data, segments = [], result = []) {
|
|
7
|
+
if (Array.isArray(data)) {
|
|
8
|
+
data.forEach((item, i) => {
|
|
9
|
+
this.serialize(item, [...segments, i], result);
|
|
10
|
+
});
|
|
11
|
+
} else if (isObject(data)) {
|
|
12
|
+
for (const key in data) {
|
|
13
|
+
this.serialize(data[key], [...segments, key], result);
|
|
14
|
+
}
|
|
15
|
+
} else {
|
|
16
|
+
result.push([this.stringifyPath(segments), data]);
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
deserialize(serialized) {
|
|
21
|
+
const arrayPushStyles = /* @__PURE__ */ new WeakSet();
|
|
22
|
+
const ref = { value: [] };
|
|
23
|
+
for (const [path, value] of serialized) {
|
|
24
|
+
const segments = this.parsePath(path);
|
|
25
|
+
let currentRef = ref;
|
|
26
|
+
let nextSegment = "value";
|
|
27
|
+
segments.forEach((segment, i) => {
|
|
28
|
+
if (!Array.isArray(currentRef[nextSegment]) && !isObject(currentRef[nextSegment])) {
|
|
29
|
+
currentRef[nextSegment] = [];
|
|
30
|
+
}
|
|
31
|
+
if (i !== segments.length - 1) {
|
|
32
|
+
if (Array.isArray(currentRef[nextSegment]) && !isValidArrayIndex(segment)) {
|
|
33
|
+
currentRef[nextSegment] = { ...currentRef[nextSegment] };
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
if (Array.isArray(currentRef[nextSegment])) {
|
|
37
|
+
if (segment === "") {
|
|
38
|
+
if (currentRef[nextSegment].length && !arrayPushStyles.has(currentRef[nextSegment])) {
|
|
39
|
+
currentRef[nextSegment] = { ...currentRef[nextSegment] };
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
if (arrayPushStyles.has(currentRef[nextSegment])) {
|
|
43
|
+
currentRef[nextSegment] = { "": currentRef[nextSegment].at(-1) };
|
|
44
|
+
} else if (!isValidArrayIndex(segment)) {
|
|
45
|
+
currentRef[nextSegment] = { ...currentRef[nextSegment] };
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
currentRef = currentRef[nextSegment];
|
|
51
|
+
nextSegment = segment;
|
|
52
|
+
});
|
|
53
|
+
if (Array.isArray(currentRef)) {
|
|
54
|
+
if (nextSegment === "") {
|
|
55
|
+
arrayPushStyles.add(currentRef);
|
|
56
|
+
currentRef.push(value);
|
|
57
|
+
} else {
|
|
58
|
+
currentRef[Number(nextSegment)] = value;
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
currentRef[nextSegment] = value;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return ref.value;
|
|
65
|
+
}
|
|
66
|
+
stringifyPath(segments) {
|
|
67
|
+
return segments.map((segment) => {
|
|
68
|
+
return segment.toString().replace(/[\\[\]]/g, (match) => {
|
|
69
|
+
switch (match) {
|
|
70
|
+
case "\\":
|
|
71
|
+
return "\\\\";
|
|
72
|
+
case "[":
|
|
73
|
+
return "\\[";
|
|
74
|
+
case "]":
|
|
75
|
+
return "\\]";
|
|
76
|
+
/* v8 ignore next 2 */
|
|
77
|
+
default:
|
|
78
|
+
return match;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}).reduce((result, segment, i) => {
|
|
82
|
+
if (i === 0) {
|
|
83
|
+
return segment;
|
|
84
|
+
}
|
|
85
|
+
return `${result}[${segment}]`;
|
|
86
|
+
}, "");
|
|
87
|
+
}
|
|
88
|
+
parsePath(path) {
|
|
89
|
+
const segments = [];
|
|
90
|
+
let inBrackets = false;
|
|
91
|
+
let currentSegment = "";
|
|
92
|
+
let backslashCount = 0;
|
|
93
|
+
for (let i = 0; i < path.length; i++) {
|
|
94
|
+
const char = path[i];
|
|
95
|
+
const nextChar = path[i + 1];
|
|
96
|
+
if (inBrackets && char === "]" && (nextChar === void 0 || nextChar === "[") && backslashCount % 2 === 0) {
|
|
97
|
+
if (nextChar === void 0) {
|
|
98
|
+
inBrackets = false;
|
|
99
|
+
}
|
|
100
|
+
segments.push(currentSegment);
|
|
101
|
+
currentSegment = "";
|
|
102
|
+
i++;
|
|
103
|
+
} else if (segments.length === 0 && char === "[" && backslashCount % 2 === 0) {
|
|
104
|
+
inBrackets = true;
|
|
105
|
+
segments.push(currentSegment);
|
|
106
|
+
currentSegment = "";
|
|
107
|
+
} else if (char === "\\") {
|
|
108
|
+
backslashCount++;
|
|
109
|
+
} else {
|
|
110
|
+
currentSegment += "\\".repeat(backslashCount / 2) + char;
|
|
111
|
+
backslashCount = 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return inBrackets || segments.length === 0 ? [path] : segments;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function isValidArrayIndex(value) {
|
|
118
|
+
return /^0$|^[1-9]\d*$/.test(value);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class OpenAPIJsonSerializer {
|
|
122
|
+
serialize(data, hasBlobRef = { value: false }) {
|
|
123
|
+
if (data instanceof Blob) {
|
|
124
|
+
hasBlobRef.value = true;
|
|
125
|
+
return [data, hasBlobRef.value];
|
|
126
|
+
}
|
|
127
|
+
if (data instanceof Set) {
|
|
128
|
+
return this.serialize(Array.from(data), hasBlobRef);
|
|
129
|
+
}
|
|
130
|
+
if (data instanceof Map) {
|
|
131
|
+
return this.serialize(Array.from(data.entries()), hasBlobRef);
|
|
132
|
+
}
|
|
133
|
+
if (Array.isArray(data)) {
|
|
134
|
+
const json = data.map((v) => v === void 0 ? null : this.serialize(v, hasBlobRef)[0]);
|
|
135
|
+
return [json, hasBlobRef.value];
|
|
136
|
+
}
|
|
137
|
+
if (isObject(data)) {
|
|
138
|
+
const json = {};
|
|
139
|
+
for (const k in data) {
|
|
140
|
+
json[k] = this.serialize(data[k], hasBlobRef)[0];
|
|
141
|
+
}
|
|
142
|
+
return [json, hasBlobRef.value];
|
|
143
|
+
}
|
|
144
|
+
if (typeof data === "bigint" || data instanceof RegExp || data instanceof URL) {
|
|
145
|
+
return [data.toString(), hasBlobRef.value];
|
|
146
|
+
}
|
|
147
|
+
if (data instanceof Date) {
|
|
148
|
+
return [Number.isNaN(data.getTime()) ? null : data.toISOString(), hasBlobRef.value];
|
|
149
|
+
}
|
|
150
|
+
if (Number.isNaN(data)) {
|
|
151
|
+
return [null, hasBlobRef.value];
|
|
152
|
+
}
|
|
153
|
+
return [data, hasBlobRef.value];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
class OpenAPISerializer {
|
|
158
|
+
constructor(jsonSerializer = new OpenAPIJsonSerializer(), bracketNotation = new BracketNotationSerializer()) {
|
|
159
|
+
this.jsonSerializer = jsonSerializer;
|
|
160
|
+
this.bracketNotation = bracketNotation;
|
|
161
|
+
}
|
|
162
|
+
serialize(data) {
|
|
163
|
+
if (isAsyncIteratorObject(data)) {
|
|
164
|
+
return mapEventIterator(data, {
|
|
165
|
+
value: async (value) => this.#serialize(value, false),
|
|
166
|
+
error: async (e) => {
|
|
167
|
+
return new ErrorEvent({
|
|
168
|
+
data: this.#serialize(toORPCError(e).toJSON(), false),
|
|
169
|
+
cause: e
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return this.#serialize(data, true);
|
|
175
|
+
}
|
|
176
|
+
#serialize(data, enableFormData) {
|
|
177
|
+
if (data instanceof Blob || data === void 0) {
|
|
178
|
+
return data;
|
|
179
|
+
}
|
|
180
|
+
const [json, hasBlob] = this.jsonSerializer.serialize(data);
|
|
181
|
+
if (!enableFormData || !hasBlob) {
|
|
182
|
+
return json;
|
|
183
|
+
}
|
|
184
|
+
const form = new FormData();
|
|
185
|
+
for (const [path, value] of this.bracketNotation.serialize(json)) {
|
|
186
|
+
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
187
|
+
form.append(path, value.toString());
|
|
188
|
+
} else if (value instanceof Blob) {
|
|
189
|
+
form.append(path, value);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return form;
|
|
193
|
+
}
|
|
194
|
+
deserialize(data) {
|
|
195
|
+
if (data instanceof URLSearchParams || data instanceof FormData) {
|
|
196
|
+
return this.bracketNotation.deserialize(Array.from(data.entries()));
|
|
197
|
+
}
|
|
198
|
+
if (isAsyncIteratorObject(data)) {
|
|
199
|
+
return mapEventIterator(data, {
|
|
200
|
+
value: async (value) => value,
|
|
201
|
+
error: async (e) => {
|
|
202
|
+
if (e instanceof ErrorEvent && ORPCError.isValidJSON(e.data)) {
|
|
203
|
+
return ORPCError.fromJSON(e.data, { cause: e });
|
|
204
|
+
}
|
|
205
|
+
return e;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
return data;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export { BracketNotationSerializer, OpenAPIJsonSerializer, OpenAPISerializer };
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orpc/openapi-client",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://orpc.unnoq.com",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/unnoq/orpc.git",
|
|
10
|
+
"directory": "packages/openapi-client"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"unnoq",
|
|
14
|
+
"orpc"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.mts",
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"default": "./dist/index.mjs"
|
|
21
|
+
},
|
|
22
|
+
"./standard": {
|
|
23
|
+
"types": "./dist/adapters/standard/index.d.mts",
|
|
24
|
+
"import": "./dist/adapters/standard/index.mjs",
|
|
25
|
+
"default": "./dist/adapters/standard/index.mjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@orpc/client": "0.43.0",
|
|
33
|
+
"@orpc/shared": "0.43.0",
|
|
34
|
+
"@orpc/standard-server": "0.43.0"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "unbuild",
|
|
38
|
+
"build:watch": "pnpm run build --watch",
|
|
39
|
+
"type:check": "tsc -b"
|
|
40
|
+
}
|
|
41
|
+
}
|