@orpc/nest 1.12.0 → 1.12.2
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/README.md +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<image align="center" src="https://orpc.
|
|
2
|
+
<image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
5
|
<h1></h1>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
## Documentation
|
|
47
47
|
|
|
48
|
-
You can find the full documentation [here](https://orpc.
|
|
48
|
+
You can find the full documentation [here](https://orpc.dev).
|
|
49
49
|
|
|
50
50
|
## Packages
|
|
51
51
|
|
|
@@ -66,11 +66,11 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
66
66
|
|
|
67
67
|
## `@orpc/nest`
|
|
68
68
|
|
|
69
|
-
Deeply integrate oRPC with [NestJS](https://nestjs.com/). Read the [documentation](https://orpc.
|
|
69
|
+
Deeply integrate oRPC with [NestJS](https://nestjs.com/). Read the [documentation](https://orpc.dev/docs/openapi/integrations/implement-contract-in-nest) for more information.
|
|
70
70
|
|
|
71
71
|
### Implement Contract
|
|
72
72
|
|
|
73
|
-
An overview of how to implement an [oRPC contract](https://orpc.
|
|
73
|
+
An overview of how to implement an [oRPC contract](https://orpc.dev/docs/contract-first/define-contract) in NestJS.
|
|
74
74
|
|
|
75
75
|
```ts
|
|
76
76
|
import { Implement, implement, ORPCError } from '@orpc/nest'
|
package/dist/index.d.mts
CHANGED
|
@@ -44,7 +44,7 @@ declare class ORPCModule {
|
|
|
44
44
|
/**
|
|
45
45
|
* Decorator in controller handler to implement a oRPC contract.
|
|
46
46
|
*
|
|
47
|
-
* @see {@link https://orpc.
|
|
47
|
+
* @see {@link https://orpc.dev/docs/openapi/integrations/implement-contract-in-nest#implement-your-contract NestJS Implement Contract Docs}
|
|
48
48
|
*/
|
|
49
49
|
declare function Implement<T extends ContractRouter<any>>(contract: T): <U extends Promisable<Router<T, ORPCGlobalContext>>>(target: Record<PropertyKey, any>, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => U>) => void;
|
|
50
50
|
declare class ImplementInterceptor implements NestInterceptor {
|
|
@@ -67,7 +67,7 @@ interface PopulateContractRouterPathsOptions {
|
|
|
67
67
|
* This utility automatically populates any missing paths
|
|
68
68
|
* Using the router's keys + `/`.
|
|
69
69
|
*
|
|
70
|
-
* @see {@link https://orpc.
|
|
70
|
+
* @see {@link https://orpc.dev/docs/openapi/integrations/implement-contract-in-nest#define-your-contract NestJS Implement Contract Docs}
|
|
71
71
|
*/
|
|
72
72
|
declare function populateContractRouterPaths<T extends AnyContractRouter>(router: T, options?: PopulateContractRouterPathsOptions): PopulatedContractRouterPaths<T>;
|
|
73
73
|
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare class ORPCModule {
|
|
|
44
44
|
/**
|
|
45
45
|
* Decorator in controller handler to implement a oRPC contract.
|
|
46
46
|
*
|
|
47
|
-
* @see {@link https://orpc.
|
|
47
|
+
* @see {@link https://orpc.dev/docs/openapi/integrations/implement-contract-in-nest#implement-your-contract NestJS Implement Contract Docs}
|
|
48
48
|
*/
|
|
49
49
|
declare function Implement<T extends ContractRouter<any>>(contract: T): <U extends Promisable<Router<T, ORPCGlobalContext>>>(target: Record<PropertyKey, any>, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => U>) => void;
|
|
50
50
|
declare class ImplementInterceptor implements NestInterceptor {
|
|
@@ -67,7 +67,7 @@ interface PopulateContractRouterPathsOptions {
|
|
|
67
67
|
* This utility automatically populates any missing paths
|
|
68
68
|
* Using the router's keys + `/`.
|
|
69
69
|
*
|
|
70
|
-
* @see {@link https://orpc.
|
|
70
|
+
* @see {@link https://orpc.dev/docs/openapi/integrations/implement-contract-in-nest#define-your-contract NestJS Implement Contract Docs}
|
|
71
71
|
*/
|
|
72
72
|
declare function populateContractRouterPaths<T extends AnyContractRouter>(router: T, options?: PopulateContractRouterPathsOptions): PopulatedContractRouterPaths<T>;
|
|
73
73
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/nest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.12.
|
|
4
|
+
"version": "1.12.2",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://orpc.
|
|
6
|
+
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/unnoq/orpc.git",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@orpc/
|
|
43
|
-
"@orpc/
|
|
44
|
-
"@orpc/
|
|
45
|
-
"@orpc/
|
|
46
|
-
"@orpc/
|
|
47
|
-
"@orpc/
|
|
48
|
-
"@orpc/standard-server": "1.12.
|
|
49
|
-
"@orpc/standard-server-fastify": "1.12.
|
|
50
|
-
"@orpc/standard-server-node": "1.12.
|
|
42
|
+
"@orpc/client": "1.12.2",
|
|
43
|
+
"@orpc/openapi": "1.12.2",
|
|
44
|
+
"@orpc/contract": "1.12.2",
|
|
45
|
+
"@orpc/openapi-client": "1.12.2",
|
|
46
|
+
"@orpc/server": "1.12.2",
|
|
47
|
+
"@orpc/shared": "1.12.2",
|
|
48
|
+
"@orpc/standard-server": "1.12.2",
|
|
49
|
+
"@orpc/standard-server-fastify": "1.12.2",
|
|
50
|
+
"@orpc/standard-server-node": "1.12.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@fastify/cookie": "^11.0.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@nestjs/testing": "^11.1.9",
|
|
59
59
|
"@ts-rest/core": "^3.52.1",
|
|
60
60
|
"@types/express": "^5.0.5",
|
|
61
|
-
"express": "^5.
|
|
61
|
+
"express": "^5.2.0",
|
|
62
62
|
"fastify": "^5.6.2",
|
|
63
63
|
"rxjs": "^7.8.1",
|
|
64
64
|
"supertest": "^7.1.4",
|