ts-procedures 3.0.0 → 3.0.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-procedures",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "A TypeScript RPC framework that creates type-safe, schema-validated procedure calls with a single function definition. Define your procedures once and get full type inference, runtime validation, and framework integration hooks.",
|
|
5
5
|
"main": "build/exports.js",
|
|
6
6
|
"types": "build/exports.d.ts",
|
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|
"types": "./build/exports.d.ts",
|
|
18
18
|
"import": "./build/exports.js"
|
|
19
19
|
},
|
|
20
|
-
"./
|
|
21
|
-
"types": "./build/implementations/http/
|
|
22
|
-
"import": "./build/implementations/http/express/index.js"
|
|
20
|
+
"./http-rpc": {
|
|
21
|
+
"types": "./build/implementations/http/types.d.ts"
|
|
23
22
|
},
|
|
24
23
|
"./express-rpc": {
|
|
25
24
|
"types": "./build/implementations/http/express-rpc/index.d.ts",
|
|
@@ -13,7 +13,7 @@ npm install ts-procedures express
|
|
|
13
13
|
```typescript
|
|
14
14
|
import express from 'express'
|
|
15
15
|
import { Procedures } from 'ts-procedures'
|
|
16
|
-
import { ExpressRPCAppBuilder, RPCConfig } from 'ts-procedures/
|
|
16
|
+
import { ExpressRPCAppBuilder, RPCConfig } from 'ts-procedures/express-rpc'
|
|
17
17
|
import { v } from 'suretype'
|
|
18
18
|
|
|
19
19
|
// Define your context type
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
ExpressRPCAppBuilderConfig,
|
|
174
174
|
RPCConfig,
|
|
175
175
|
RPCHttpRouteDoc
|
|
176
|
-
} from 'ts-procedures/
|
|
176
|
+
} from 'ts-procedures/express-rpc'
|
|
177
177
|
```
|
|
178
178
|
|
|
179
179
|
## Full Example
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
```typescript
|
|
182
182
|
import express from 'express'
|
|
183
183
|
import { Procedures } from 'ts-procedures'
|
|
184
|
-
import { ExpressRPCAppBuilder, RPCConfig } from 'ts-procedures/
|
|
184
|
+
import { ExpressRPCAppBuilder, RPCConfig } from 'ts-procedures/express-rpc'
|
|
185
185
|
import { v } from 'suretype'
|
|
186
186
|
|
|
187
187
|
// Context types
|
|
@@ -13,7 +13,7 @@ npm install ts-procedures hono
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Hono } from 'hono'
|
|
15
15
|
import { Procedures } from 'ts-procedures'
|
|
16
|
-
import { HonoRPCAppBuilder, RPCConfig } from 'ts-procedures/
|
|
16
|
+
import { HonoRPCAppBuilder, RPCConfig } from 'ts-procedures/hono-rpc'
|
|
17
17
|
import { v } from 'suretype'
|
|
18
18
|
|
|
19
19
|
// Define your context type
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
HonoRPCAppBuilderConfig,
|
|
213
213
|
RPCConfig,
|
|
214
214
|
RPCHttpRouteDoc
|
|
215
|
-
} from 'ts-procedures/
|
|
215
|
+
} from 'ts-procedures/hono-rpc'
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
## Full Example
|
|
@@ -220,7 +220,7 @@ import {
|
|
|
220
220
|
```typescript
|
|
221
221
|
import { Hono, Context } from 'hono'
|
|
222
222
|
import { Procedures } from 'ts-procedures'
|
|
223
|
-
import { HonoRPCAppBuilder, RPCConfig } from 'ts-procedures/
|
|
223
|
+
import { HonoRPCAppBuilder, RPCConfig } from 'ts-procedures/hono-rpc'
|
|
224
224
|
import { v } from 'suretype'
|
|
225
225
|
|
|
226
226
|
// Context types
|