@orpc/nest 1.8.2 → 1.8.4
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.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +16 -0
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
@@ -11,6 +11,11 @@ interface ORPCModuleConfig extends CreateProcedureClientOptions<object, AnySchem
|
|
11
11
|
}
|
12
12
|
declare class ORPCModule {
|
13
13
|
static forRoot(config: ORPCModuleConfig): DynamicModule;
|
14
|
+
static forRootAsync(options: {
|
15
|
+
imports?: any[];
|
16
|
+
useFactory: (...args: any[]) => Promise<ORPCModuleConfig> | ORPCModuleConfig;
|
17
|
+
inject?: any[];
|
18
|
+
}): DynamicModule;
|
14
19
|
}
|
15
20
|
|
16
21
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -11,6 +11,11 @@ interface ORPCModuleConfig extends CreateProcedureClientOptions<object, AnySchem
|
|
11
11
|
}
|
12
12
|
declare class ORPCModule {
|
13
13
|
static forRoot(config: ORPCModuleConfig): DynamicModule;
|
14
|
+
static forRootAsync(options: {
|
15
|
+
imports?: any[];
|
16
|
+
useFactory: (...args: any[]) => Promise<ORPCModuleConfig> | ORPCModuleConfig;
|
17
|
+
inject?: any[];
|
18
|
+
}): DynamicModule;
|
14
19
|
}
|
15
20
|
|
16
21
|
/**
|
package/dist/index.mjs
CHANGED
@@ -35,6 +35,22 @@ let ORPCModule = class {
|
|
35
35
|
global: true
|
36
36
|
};
|
37
37
|
}
|
38
|
+
static forRootAsync(options) {
|
39
|
+
return {
|
40
|
+
module: ORPCModule,
|
41
|
+
imports: options.imports,
|
42
|
+
providers: [
|
43
|
+
{
|
44
|
+
provide: ORPC_MODULE_CONFIG_SYMBOL,
|
45
|
+
useFactory: options.useFactory,
|
46
|
+
inject: options.inject
|
47
|
+
},
|
48
|
+
ImplementInterceptor
|
49
|
+
],
|
50
|
+
exports: [ORPC_MODULE_CONFIG_SYMBOL, ImplementInterceptor],
|
51
|
+
global: true
|
52
|
+
};
|
53
|
+
}
|
38
54
|
};
|
39
55
|
ORPCModule = __decorateClass$1([
|
40
56
|
Module({})
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/nest",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.8.
|
4
|
+
"version": "1.8.4",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -39,14 +39,14 @@
|
|
39
39
|
}
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@orpc/
|
43
|
-
"@orpc/openapi": "1.8.
|
44
|
-
"@orpc/
|
45
|
-
"@orpc/openapi-client": "1.8.
|
46
|
-
"@orpc/server": "1.8.
|
47
|
-
"@orpc/
|
48
|
-
"@orpc/standard-server
|
49
|
-
"@orpc/
|
42
|
+
"@orpc/client": "1.8.4",
|
43
|
+
"@orpc/openapi": "1.8.4",
|
44
|
+
"@orpc/contract": "1.8.4",
|
45
|
+
"@orpc/openapi-client": "1.8.4",
|
46
|
+
"@orpc/server": "1.8.4",
|
47
|
+
"@orpc/shared": "1.8.4",
|
48
|
+
"@orpc/standard-server": "1.8.4",
|
49
|
+
"@orpc/standard-server-node": "1.8.4"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@nestjs/common": "^11.1.6",
|