intor 1.0.20 → 1.0.22

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.
@@ -23,13 +23,11 @@ var __spreadValues = (a, b) => {
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
24
  var initializeLogger = ({
25
25
  id,
26
- scope,
27
26
  loggerOptions
28
27
  }) => {
29
28
  const logger = logry.logry(__spreadValues({
30
29
  id,
31
- level: loggerOptions == null ? void 0 : loggerOptions.level,
32
- scope
30
+ level: loggerOptions == null ? void 0 : loggerOptions.level
33
31
  }, loggerOptions));
34
32
  return logger;
35
33
  };
@@ -206,8 +204,7 @@ var defineIntorConfig = (config) => {
206
204
  const id = config.id || `ID${Math.random().toString(36).slice(2, 6)}`;
207
205
  const logger = initializeLogger({
208
206
  id,
209
- loggerOptions: config.logger,
210
- scope: "defineIntorConfig"
207
+ loggerOptions: __spreadProps(__spreadValues({}, config.logger), { scope: "defineIntorConfig" })
211
208
  });
212
209
  const supportedLocales = validateSupportedLocales({ config });
213
210
  const defaultLocale = validateDefaultLocale({ config, supportedLocales });
@@ -44,6 +44,7 @@ type LoaderOptions = ImportLoader | ApiLoader;
44
44
 
45
45
  type InitLoggerOptions = {
46
46
  level?: Level;
47
+ scope: string | string[];
47
48
  normalizerConfig?: NormalizerConfig;
48
49
  formatterConfig?: FormatterConfig;
49
50
  preset?: LoggerPreset;
@@ -44,6 +44,7 @@ type LoaderOptions = ImportLoader | ApiLoader;
44
44
 
45
45
  type InitLoggerOptions = {
46
46
  level?: Level;
47
+ scope: string | string[];
47
48
  normalizerConfig?: NormalizerConfig;
48
49
  formatterConfig?: FormatterConfig;
49
50
  preset?: LoggerPreset;
@@ -21,13 +21,11 @@ var __spreadValues = (a, b) => {
21
21
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
22
  var initializeLogger = ({
23
23
  id,
24
- scope,
25
24
  loggerOptions
26
25
  }) => {
27
26
  const logger = logry(__spreadValues({
28
27
  id,
29
- level: loggerOptions == null ? void 0 : loggerOptions.level,
30
- scope
28
+ level: loggerOptions == null ? void 0 : loggerOptions.level
31
29
  }, loggerOptions));
32
30
  return logger;
33
31
  };
@@ -204,8 +202,7 @@ var defineIntorConfig = (config) => {
204
202
  const id = config.id || `ID${Math.random().toString(36).slice(2, 6)}`;
205
203
  const logger = initializeLogger({
206
204
  id,
207
- loggerOptions: config.logger,
208
- scope: "defineIntorConfig"
205
+ loggerOptions: __spreadProps(__spreadValues({}, config.logger), { scope: "defineIntorConfig" })
209
206
  });
210
207
  const supportedLocales = validateSupportedLocales({ config });
211
208
  const defaultLocale = validateDefaultLocale({ config, supportedLocales });