nestjs-infisical 1.0.12 → 1.0.14
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/infisical.module.js +8 -2
- package/package.json +1 -1
package/dist/infisical.module.js
CHANGED
|
@@ -61,12 +61,15 @@ let InfisicalModule = (() => {
|
|
|
61
61
|
module: InfisicalModule,
|
|
62
62
|
providers: [
|
|
63
63
|
{
|
|
64
|
-
provide: '
|
|
64
|
+
provide: 'INFISICAL_BOOTSTRAP',
|
|
65
65
|
useFactory: async () => {
|
|
66
|
+
console.log('[nestjs-infisical] BOOTSTRAP provider START');
|
|
66
67
|
await (0, infisical_service_1.initializeInfisical)(resolved);
|
|
68
|
+
console.log('[nestjs-infisical] BOOTSTRAP provider END');
|
|
67
69
|
},
|
|
68
70
|
},
|
|
69
71
|
],
|
|
72
|
+
exports: ['INFISICAL_BOOTSTRAP'],
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
75
|
static forRootAsync(options) {
|
|
@@ -75,14 +78,17 @@ let InfisicalModule = (() => {
|
|
|
75
78
|
imports: options.imports,
|
|
76
79
|
providers: [
|
|
77
80
|
{
|
|
78
|
-
provide: '
|
|
81
|
+
provide: 'INFISICAL_BOOTSTRAP',
|
|
79
82
|
inject: options.inject ?? [],
|
|
80
83
|
useFactory: async (...args) => {
|
|
84
|
+
console.log('[nestjs-infisical] BOOTSTRAP provider START');
|
|
81
85
|
const resolved = await options.useFactory(...args);
|
|
82
86
|
await (0, infisical_service_1.initializeInfisical)(resolved);
|
|
87
|
+
console.log('[nestjs-infisical] BOOTSTRAP provider END');
|
|
83
88
|
},
|
|
84
89
|
},
|
|
85
90
|
],
|
|
91
|
+
exports: ['INFISICAL_BOOTSTRAP']
|
|
86
92
|
};
|
|
87
93
|
}
|
|
88
94
|
};
|