@spinajs/configuration 2.0.179 → 2.0.181

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.
@@ -1,280 +1,280 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.FrameworkConfiguration = void 0;
16
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
17
- /* eslint-disable @typescript-eslint/no-unsafe-member-access */
18
- /* eslint-disable @typescript-eslint/no-unsafe-argument */
19
- /* eslint-disable @typescript-eslint/ban-ts-comment */
20
- /* eslint-disable prettier/prettier */
21
- /* eslint-disable @typescript-eslint/no-var-requires */
22
- /* eslint-disable @typescript-eslint/no-unsafe-call */
23
- const path_1 = require("path");
24
- const ajv_1 = __importDefault(require("ajv"));
25
- const lodash_1 = __importDefault(require("lodash"));
26
- const internal_logger_1 = require("@spinajs/internal-logger");
27
- const exceptions_1 = require("@spinajs/exceptions");
28
- const configuration_common_1 = require("@spinajs/configuration-common");
29
- const di_1 = require("@spinajs/di");
30
- const exception_js_1 = require("./exception.js");
31
- const util_js_1 = require("./util.js");
32
- const configuration_js_1 = __importDefault(require("./config/configuration.js"));
33
- require("./sources.js");
34
- const ajv_merge_patch_1 = __importDefault(require("ajv-merge-patch"));
35
- const ajv_formats_1 = __importDefault(require("ajv-formats"));
36
- const ajv_keywords_1 = __importDefault(require("ajv-keywords"));
37
- /**
38
- * HACK:
39
- * Becouse of ajv not supporting esm default exports we need to
40
- * check for default export module property and if not provided use module itself
41
- */
42
- let FrameworkConfiguration = class FrameworkConfiguration extends configuration_common_1.Configuration {
43
- get RootConfig() {
44
- return this.Config;
45
- }
46
- /**
47
- *
48
- * @param app - application name, pass it when you run in application mode
49
- * @param baseDir - configuration base dir, where to look for application configs
50
- * @param cfgCustomPaths - custom cfg paths eg. to load config from non standard folders ( usefull in tests )
51
- */
52
- constructor(options) {
53
- super();
54
- /**
55
- * Apps configuration base dir, where to look for app config
56
- */
57
- this.AppBaseDir = './';
58
- /**
59
- * Current running app name
60
- */
61
- this.RunApp = '';
62
- /**
63
- * Loaded & merged configuration
64
- */
65
- this.Config = {};
66
- this.CustomConfigPaths = options?.cfgCustomPaths ?? [];
67
- this.RunApp = options?.app ?? (0, util_js_1.parseArgv)('--app');
68
- this.AppBaseDir = options?.appBaseDir ?? (0, util_js_1.parseArgv)('--apppath') ?? (0, path_1.join)(process.cwd(), '../apps/');
69
- }
70
- /**
71
- * Get config value for given property. If value not exists it returns default value, if default value is not provided returns undefined
72
- *
73
- * @param path - path to property eg. ["system","dirs"]
74
- * @param defaultValue - optional, if value at specified path not exists returns default value
75
- */
76
- get(path, defaultValue) {
77
- return lodash_1.default.get(this.Config, path, defaultValue);
78
- }
79
- /**
80
- * Sets at given path configuration value. Use when you want to override config
81
- * loaded from files programatically
82
- *
83
- * @param path - config path
84
- * @param value - value to set
85
- */
86
- set(path, value) {
87
- this.Config = lodash_1.default.set(this.Config, path, value);
88
- }
89
- /**
90
- * Merge existing config value with new options instead overriding
91
- *
92
- * @param path - cfg path
93
- * @param value - value to merge
94
- */
95
- merge(path, value) {
96
- lodash_1.default.mergeWith(this.get(path), value, util_js_1.mergeArrays);
97
- }
98
- async resolve() {
99
- if (!this.Container.hasRegistered(configuration_common_1.ConfigurationSource)) {
100
- throw new exceptions_1.InvalidOperation('No configuration sources configured. Please ensure that config module have any source to read from !');
101
- }
102
- if (this.CustomConfigPaths) {
103
- // when using DI for resolving, options are injected and not type checked
104
- // double check for this
105
- if (!Array.isArray(this.CustomConfigPaths)) {
106
- throw new exceptions_1.InvalidArgument(`ConfigurationConfigPaths should be an array`);
107
- }
108
- this.CustomConfigPaths.forEach((p) => {
109
- internal_logger_1.InternalLogger.trace(`Custom config path at: ${p}`, 'Configuration');
110
- });
111
- }
112
- if (this.RunApp) {
113
- internal_logger_1.InternalLogger.info(`Run app is ${this.RunApp}`, 'Configuration');
114
- }
115
- internal_logger_1.InternalLogger.info(`App base dir is ${this.AppBaseDir}`, 'Configuration');
116
- this.initValidator();
117
- this.applyAppDirs();
118
- // add default configuration of this module
119
- // so we dont need to import it
120
- this.set('configuration', configuration_js_1.default);
121
- /**
122
- * Load and validate data from cfg sources
123
- * in proper order
124
- */
125
- this.loadSources();
126
- await this.load();
127
- this.validate();
128
- this.configure();
129
- }
130
- async mergeSource(sType) {
131
- const source = this.Container.resolve(sType);
132
- const sCfg = await source.Load(this);
133
- this.Sources.push(source);
134
- if (sCfg) {
135
- lodash_1.default.mergeWith(sCfg, util_js_1.mergeArrays);
136
- }
137
- }
138
- /**
139
- * Reloads configuration data
140
- */
141
- async load() {
142
- this.Config = {};
143
- // add env variables to config
144
- const env = di_1.DI.get('process.env');
145
- this.set('process.env', {
146
- ...process.env,
147
- ...env,
148
- APP_ENV: env?.APP_ENV ?? process.env.NODE_ENV ?? 'development',
149
- });
150
- internal_logger_1.InternalLogger.info(`APP_ENV set to ${this.get('process.env.APP_ENV')}`, 'Configuration');
151
- lodash_1.default.mergeWith(this.Config, this.onLoad(), util_js_1.mergeArrays);
152
- for (const source of this.Sources) {
153
- const rCfg = await source.Load(this);
154
- if (rCfg) {
155
- lodash_1.default.mergeWith(this.Config, rCfg, util_js_1.mergeArrays);
156
- }
157
- }
158
- /**
159
- * Merge from DI container
160
- * eg. when custom modules have config and dont want to use files
161
- * eg. in webpack environment
162
- */
163
- this.Container.resolve(Array.ofType('__configuration__')).forEach((c) => {
164
- Object.keys(c).forEach((k) => {
165
- this.merge(k, c[`${k}`]);
166
- });
167
- });
168
- }
169
- onLoad() {
170
- return null;
171
- }
172
- loadSources() {
173
- this.Sources = this.Container.resolve(Array.ofType(configuration_common_1.ConfigurationSource), [
174
- this.RunApp,
175
- this.CustomConfigPaths,
176
- this.AppBaseDir,
177
- ]);
178
- // sort asc sources
179
- this.Sources.sort((a, b) => {
180
- return a.Order < b.Order ? -1 : a.Order > b.Order ? 1 : 0;
181
- });
182
- }
183
- validate() {
184
- this.ValidationSchemas.forEach((s) => {
185
- const config = this.get(s.$configurationModule);
186
- if (!config) {
187
- internal_logger_1.InternalLogger.warn(`Cannot validate configuration for module ${s.$configurationModule}, configuration is not set`, 'Configuration');
188
- return;
189
- }
190
- const result = this.Validator.validate(s, config);
191
- if (!result) {
192
- const error = new exception_js_1.InvalidConfiguration('Validation error', this.Validator.errors);
193
- // @ts-ignore
194
- this.Validator.errors.forEach((ve) => {
195
- internal_logger_1.InternalLogger.error('Invalid configuration ! Message: %s, path: %s, keyword: %s, schemaPath: %s, configuration module: %s', 'Configuration', ve.message, ve.instancePath, ve.keyword, ve.schemaPath, s.$configurationModule);
196
- });
197
- throw error;
198
- }
199
- });
200
- }
201
- initValidator() {
202
- const options = {
203
- logger: {
204
- log: (msg) => internal_logger_1.InternalLogger.info(msg, 'Configuration'),
205
- warn: (msg) => internal_logger_1.InternalLogger.warn(msg, 'Configuration'),
206
- error: (msg) => internal_logger_1.InternalLogger.error(msg, 'Configuration'),
207
- },
208
- // enable all errors on validation, not only first one that occurred
209
- allErrors: true,
210
- // remove properties that are not defined in schema
211
- removeAdditional: true,
212
- // set default values if possible
213
- useDefaults: true,
214
- // The option coerceTypes allows you to have your data types coerced to the types specified in your schema type keywords
215
- coerceTypes: true,
216
- };
217
- // @ts-ignore
218
- if (ajv_1.default.default) {
219
- // @ts-ignore
220
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
221
- this.Validator = new ajv_1.default.default(options);
222
- }
223
- else {
224
- // @ts-ignore
225
- this.Validator = new ajv_1.default(options);
226
- }
227
- // add $merge & $patch for json schema
228
- (0, ajv_merge_patch_1.default)(this.Validator);
229
- // add common formats validation eg: date time
230
- ajv_formats_1.default.default(this.Validator);
231
- // add keywords
232
- ajv_keywords_1.default.default(this.Validator);
233
- // in strict mode ajv will throw when
234
- // unknown keyword in schema is met
235
- // we use $configurationModule keyword to identify
236
- // to match config module with config schema
237
- this.Validator.addKeyword('$configurationModule');
238
- /**
239
- * load all registered configuration json schemas
240
- * for config value validation
241
- */
242
- this.ValidationSchemas = this.Container.get(Array.ofType('__configurationSchema__'), true);
243
- }
244
- dir(toJoin) {
245
- return (0, path_1.normalize)((0, path_1.join)((0, path_1.resolve)(this.AppBaseDir), toJoin));
246
- }
247
- /**
248
- * adds app dirs to system.dirs config
249
- */
250
- applyAppDirs() {
251
- if (!this.RunApp) {
252
- return;
253
- }
254
- for (const prop of Object.keys(this.get(['system', 'dirs'], []))) {
255
- this.get(['system', 'dirs', prop]).push(this.dir(`/${this.RunApp}/${prop}`));
256
- }
257
- }
258
- /**
259
- * runs configuration func on files
260
- * eg. when you want to configure stuff at beginning eq. external libs
261
- */
262
- configure() {
263
- for (const prop of Object.keys(this.Config)) {
264
- const subconfig = this.Config[`${prop}`];
265
- if (subconfig.configure && typeof subconfig.configure === 'function') {
266
- subconfig.configure.apply(this);
267
- }
268
- }
269
- }
270
- };
271
- __decorate([
272
- (0, di_1.Autoinject)(),
273
- __metadata("design:type", di_1.Container)
274
- ], FrameworkConfiguration.prototype, "Container", void 0);
275
- FrameworkConfiguration = __decorate([
276
- (0, di_1.Injectable)(configuration_common_1.Configuration),
277
- __metadata("design:paramtypes", [Object])
278
- ], FrameworkConfiguration);
279
- exports.FrameworkConfiguration = FrameworkConfiguration;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.FrameworkConfiguration = void 0;
16
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
17
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
18
+ /* eslint-disable @typescript-eslint/no-unsafe-argument */
19
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
20
+ /* eslint-disable prettier/prettier */
21
+ /* eslint-disable @typescript-eslint/no-var-requires */
22
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
23
+ const path_1 = require("path");
24
+ const ajv_1 = __importDefault(require("ajv"));
25
+ const lodash_1 = __importDefault(require("lodash"));
26
+ const internal_logger_1 = require("@spinajs/internal-logger");
27
+ const exceptions_1 = require("@spinajs/exceptions");
28
+ const configuration_common_1 = require("@spinajs/configuration-common");
29
+ const di_1 = require("@spinajs/di");
30
+ const exception_js_1 = require("./exception.js");
31
+ const util_js_1 = require("./util.js");
32
+ const configuration_js_1 = __importDefault(require("./config/configuration.js"));
33
+ require("./sources.js");
34
+ const ajv_merge_patch_1 = __importDefault(require("ajv-merge-patch"));
35
+ const ajv_formats_1 = __importDefault(require("ajv-formats"));
36
+ const ajv_keywords_1 = __importDefault(require("ajv-keywords"));
37
+ /**
38
+ * HACK:
39
+ * Becouse of ajv not supporting esm default exports we need to
40
+ * check for default export module property and if not provided use module itself
41
+ */
42
+ let FrameworkConfiguration = class FrameworkConfiguration extends configuration_common_1.Configuration {
43
+ get RootConfig() {
44
+ return this.Config;
45
+ }
46
+ /**
47
+ *
48
+ * @param app - application name, pass it when you run in application mode
49
+ * @param baseDir - configuration base dir, where to look for application configs
50
+ * @param cfgCustomPaths - custom cfg paths eg. to load config from non standard folders ( usefull in tests )
51
+ */
52
+ constructor(options) {
53
+ super();
54
+ /**
55
+ * Apps configuration base dir, where to look for app config
56
+ */
57
+ this.AppBaseDir = './';
58
+ /**
59
+ * Current running app name
60
+ */
61
+ this.RunApp = '';
62
+ /**
63
+ * Loaded & merged configuration
64
+ */
65
+ this.Config = {};
66
+ this.CustomConfigPaths = options?.cfgCustomPaths ?? [];
67
+ this.RunApp = options?.app ?? (0, util_js_1.parseArgv)('--app');
68
+ this.AppBaseDir = options?.appBaseDir ?? (0, util_js_1.parseArgv)('--apppath') ?? (0, path_1.join)(process.cwd(), '../apps/');
69
+ }
70
+ /**
71
+ * Get config value for given property. If value not exists it returns default value, if default value is not provided returns undefined
72
+ *
73
+ * @param path - path to property eg. ["system","dirs"]
74
+ * @param defaultValue - optional, if value at specified path not exists returns default value
75
+ */
76
+ get(path, defaultValue) {
77
+ return lodash_1.default.get(this.Config, path, defaultValue);
78
+ }
79
+ /**
80
+ * Sets at given path configuration value. Use when you want to override config
81
+ * loaded from files programatically
82
+ *
83
+ * @param path - config path
84
+ * @param value - value to set
85
+ */
86
+ set(path, value) {
87
+ this.Config = lodash_1.default.set(this.Config, path, value);
88
+ }
89
+ /**
90
+ * Merge existing config value with new options instead overriding
91
+ *
92
+ * @param path - cfg path
93
+ * @param value - value to merge
94
+ */
95
+ merge(path, value) {
96
+ lodash_1.default.mergeWith(this.get(path), value, util_js_1.mergeArrays);
97
+ }
98
+ async resolve() {
99
+ if (!this.Container.hasRegistered(configuration_common_1.ConfigurationSource)) {
100
+ throw new exceptions_1.InvalidOperation('No configuration sources configured. Please ensure that config module have any source to read from !');
101
+ }
102
+ if (this.CustomConfigPaths) {
103
+ // when using DI for resolving, options are injected and not type checked
104
+ // double check for this
105
+ if (!Array.isArray(this.CustomConfigPaths)) {
106
+ throw new exceptions_1.InvalidArgument(`ConfigurationConfigPaths should be an array`);
107
+ }
108
+ this.CustomConfigPaths.forEach((p) => {
109
+ internal_logger_1.InternalLogger.trace(`Custom config path at: ${p}`, 'Configuration');
110
+ });
111
+ }
112
+ if (this.RunApp) {
113
+ internal_logger_1.InternalLogger.info(`Run app is ${this.RunApp}`, 'Configuration');
114
+ }
115
+ internal_logger_1.InternalLogger.info(`App base dir is ${this.AppBaseDir}`, 'Configuration');
116
+ this.initValidator();
117
+ this.applyAppDirs();
118
+ // add default configuration of this module
119
+ // so we dont need to import it
120
+ this.set('configuration', configuration_js_1.default);
121
+ /**
122
+ * Load and validate data from cfg sources
123
+ * in proper order
124
+ */
125
+ this.loadSources();
126
+ await this.load();
127
+ this.validate();
128
+ this.configure();
129
+ }
130
+ async mergeSource(sType) {
131
+ const source = this.Container.resolve(sType);
132
+ const sCfg = await source.Load(this);
133
+ this.Sources.push(source);
134
+ if (sCfg) {
135
+ lodash_1.default.mergeWith(sCfg, util_js_1.mergeArrays);
136
+ }
137
+ }
138
+ /**
139
+ * Reloads configuration data
140
+ */
141
+ async load() {
142
+ this.Config = {};
143
+ // add env variables to config
144
+ const env = di_1.DI.get('process.env');
145
+ this.set('process.env', {
146
+ ...process.env,
147
+ ...env,
148
+ APP_ENV: env?.APP_ENV ?? process.env.NODE_ENV ?? 'development',
149
+ });
150
+ internal_logger_1.InternalLogger.info(`APP_ENV set to ${this.get('process.env.APP_ENV')}`, 'Configuration');
151
+ lodash_1.default.mergeWith(this.Config, this.onLoad(), util_js_1.mergeArrays);
152
+ for (const source of this.Sources) {
153
+ const rCfg = await source.Load(this);
154
+ if (rCfg) {
155
+ lodash_1.default.mergeWith(this.Config, rCfg, util_js_1.mergeArrays);
156
+ }
157
+ }
158
+ /**
159
+ * Merge from DI container
160
+ * eg. when custom modules have config and dont want to use files
161
+ * eg. in webpack environment
162
+ */
163
+ this.Container.resolve(Array.ofType('__configuration__')).forEach((c) => {
164
+ Object.keys(c).forEach((k) => {
165
+ this.merge(k, c[`${k}`]);
166
+ });
167
+ });
168
+ }
169
+ onLoad() {
170
+ return null;
171
+ }
172
+ loadSources() {
173
+ this.Sources = this.Container.resolve(Array.ofType(configuration_common_1.ConfigurationSource), [
174
+ this.RunApp,
175
+ this.CustomConfigPaths,
176
+ this.AppBaseDir,
177
+ ]);
178
+ // sort asc sources
179
+ this.Sources.sort((a, b) => {
180
+ return a.Order < b.Order ? -1 : a.Order > b.Order ? 1 : 0;
181
+ });
182
+ }
183
+ validate() {
184
+ this.ValidationSchemas.forEach((s) => {
185
+ const config = this.get(s.$configurationModule);
186
+ if (!config) {
187
+ internal_logger_1.InternalLogger.warn(`Cannot validate configuration for module ${s.$configurationModule}, configuration is not set`, 'Configuration');
188
+ return;
189
+ }
190
+ const result = this.Validator.validate(s, config);
191
+ if (!result) {
192
+ const error = new exception_js_1.InvalidConfiguration('Validation error', this.Validator.errors);
193
+ // @ts-ignore
194
+ this.Validator.errors.forEach((ve) => {
195
+ internal_logger_1.InternalLogger.error('Invalid configuration ! Message: %s, path: %s, keyword: %s, schemaPath: %s, configuration module: %s', 'Configuration', ve.message, ve.instancePath, ve.keyword, ve.schemaPath, s.$configurationModule);
196
+ });
197
+ throw error;
198
+ }
199
+ });
200
+ }
201
+ initValidator() {
202
+ const options = {
203
+ logger: {
204
+ log: (msg) => internal_logger_1.InternalLogger.info(msg, 'Configuration'),
205
+ warn: (msg) => internal_logger_1.InternalLogger.warn(msg, 'Configuration'),
206
+ error: (msg) => internal_logger_1.InternalLogger.error(msg, 'Configuration'),
207
+ },
208
+ // enable all errors on validation, not only first one that occurred
209
+ allErrors: true,
210
+ // remove properties that are not defined in schema
211
+ removeAdditional: true,
212
+ // set default values if possible
213
+ useDefaults: true,
214
+ // The option coerceTypes allows you to have your data types coerced to the types specified in your schema type keywords
215
+ coerceTypes: true,
216
+ };
217
+ // @ts-ignore
218
+ if (ajv_1.default.default) {
219
+ // @ts-ignore
220
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
221
+ this.Validator = new ajv_1.default.default(options);
222
+ }
223
+ else {
224
+ // @ts-ignore
225
+ this.Validator = new ajv_1.default(options);
226
+ }
227
+ // add $merge & $patch for json schema
228
+ (0, ajv_merge_patch_1.default)(this.Validator);
229
+ // add common formats validation eg: date time
230
+ ajv_formats_1.default.default(this.Validator);
231
+ // add keywords
232
+ ajv_keywords_1.default.default(this.Validator);
233
+ // in strict mode ajv will throw when
234
+ // unknown keyword in schema is met
235
+ // we use $configurationModule keyword to identify
236
+ // to match config module with config schema
237
+ this.Validator.addKeyword('$configurationModule');
238
+ /**
239
+ * load all registered configuration json schemas
240
+ * for config value validation
241
+ */
242
+ this.ValidationSchemas = this.Container.get(Array.ofType('__configurationSchema__'), true);
243
+ }
244
+ dir(toJoin) {
245
+ return (0, path_1.normalize)((0, path_1.join)((0, path_1.resolve)(this.AppBaseDir), toJoin));
246
+ }
247
+ /**
248
+ * adds app dirs to system.dirs config
249
+ */
250
+ applyAppDirs() {
251
+ if (!this.RunApp) {
252
+ return;
253
+ }
254
+ for (const prop of Object.keys(this.get(['system', 'dirs'], []))) {
255
+ this.get(['system', 'dirs', prop]).push(this.dir(`/${this.RunApp}/${prop}`));
256
+ }
257
+ }
258
+ /**
259
+ * runs configuration func on files
260
+ * eg. when you want to configure stuff at beginning eq. external libs
261
+ */
262
+ configure() {
263
+ for (const prop of Object.keys(this.Config)) {
264
+ const subconfig = this.Config[`${prop}`];
265
+ if (subconfig.configure && typeof subconfig.configure === 'function') {
266
+ subconfig.configure.apply(this);
267
+ }
268
+ }
269
+ }
270
+ };
271
+ exports.FrameworkConfiguration = FrameworkConfiguration;
272
+ __decorate([
273
+ (0, di_1.Autoinject)(),
274
+ __metadata("design:type", di_1.Container)
275
+ ], FrameworkConfiguration.prototype, "Container", void 0);
276
+ exports.FrameworkConfiguration = FrameworkConfiguration = __decorate([
277
+ (0, di_1.Injectable)(configuration_common_1.Configuration),
278
+ __metadata("design:paramtypes", [Object])
279
+ ], FrameworkConfiguration);
280
280
  //# sourceMappingURL=configuration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,+DAA+D;AAC/D,0DAA0D;AAC1D,sDAAsD;AACtD,sCAAsC;AACtC,uDAAuD;AACvD,sDAAsD;AACtD,+BAAgD;AAChD,8CAAsB;AACtB,oDAAuB;AACvB,8DAA0D;AAC1D,oDAAwE;AACxE,wEAOuC;AACvC,oCAA2E;AAE3E,iDAAsD;AACtD,uCAAmD;AACnD,iFAA+C;AAC/C,wBAAsB;AAEtB,sEAA0D;AAC1D,8DAAoD;AACpD,gEAAsD;AAEtD;;;;GAIG;AAGI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAa;IA6BvD,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAKD;;;;;OAKG;IACH,YAAY,OAA8B;QACxC,KAAK,EAAE,CAAC;QA1CV;;WAEG;QACI,eAAU,GAAG,IAAI,CAAC;QAEzB;;WAEG;QACI,WAAM,GAAG,EAAE,CAAC;QAEnB;;WAEG;QACO,WAAM,GAA4B,EAAE,CAAC;QA+B7C,IAAI,CAAC,iBAAiB,GAAG,OAAO,EAAE,cAAc,IAAI,EAAE,CAAC;QACvD,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,GAAG,IAAI,IAAA,mBAAS,EAAC,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,OAAO,EAAE,UAAU,IAAI,I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IAAI,SAAS,CAAC,SAAS,IAAI,OAAO,SAAS,CAAC,SAAS,KAAK,UAAU,EAAE;gBACpE,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACjC;SACF;IACH,CAAC;CACF,CAAA;AApTY,wDAAsB;AAkCvB;IADT,IAAA,eAAU,GAAE;8BACQ,cAAS;yDAAC;iCAlCpB,sBAAsB;IADlC,IAAA,eAAU,EAAC,oCAAa,CAAC;;GACb,sBAAsB,CAoTlC"}
@@ -1,22 +1,22 @@
1
- import { IConfigEntryOptions } from '@spinajs/configuration-common';
2
- import { Class } from '@spinajs/di';
3
- /**
4
- * Injects configuration value to given class property
5
- *
6
- * @param path - path to configuration value eg. "app.dirs.stats"
7
- * @param dafaultValue - default value if path not exists
8
- * @returns
9
- */
10
- export declare function Config(path: string, options?: IConfigEntryOptions): (target?: any, key?: string) => any;
11
- /**
12
- * Inject service based on configuration.
13
- * Configuration could be object or string containing service
14
- *
15
- * If array is provided in configuration, service is resolved by name
16
- * stored in 'service' property and returnes as Map\<serviceName, instance\>
17
- *
18
- * @param path - configuration path where service type is stored
19
- * @param type - if type is provided, it will override type obtain from reflection. Use it specific with arrays and maps, becouse ts reflection module cannot extract array and map type data
20
- */
21
- export declare function AutoinjectService(path: string, type?: Class<unknown>): any;
1
+ import { IConfigEntryOptions } from '@spinajs/configuration-common';
2
+ import { Class } from '@spinajs/di';
3
+ /**
4
+ * Injects configuration value to given class property
5
+ *
6
+ * @param path - path to configuration value eg. "app.dirs.stats"
7
+ * @param dafaultValue - default value if path not exists
8
+ * @returns
9
+ */
10
+ export declare function Config(path: string, options?: IConfigEntryOptions): (target?: any, key?: string) => any;
11
+ /**
12
+ * Inject service based on configuration.
13
+ * Configuration could be object or string containing service
14
+ *
15
+ * If array is provided in configuration, service is resolved by name
16
+ * stored in 'service' property and returnes as Map\<serviceName, instance\>
17
+ *
18
+ * @param path - configuration path where service type is stored
19
+ * @param type - if type is provided, it will override type obtain from reflection. Use it specific with arrays and maps, becouse ts reflection module cannot extract array and map type data
20
+ */
21
+ export declare function AutoinjectService(path: string, type?: Class<unknown>): any;
22
22
  //# sourceMappingURL=decorators.d.ts.map