intor 1.0.22 → 1.0.23

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,11 +23,13 @@ var __spreadValues = (a, b) => {
23
23
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
24
  var initializeLogger = ({
25
25
  id,
26
+ scope,
26
27
  loggerOptions
27
28
  }) => {
28
29
  const logger = logry.logry(__spreadValues({
29
30
  id,
30
- level: loggerOptions == null ? void 0 : loggerOptions.level
31
+ level: loggerOptions == null ? void 0 : loggerOptions.level,
32
+ scope
31
33
  }, loggerOptions));
32
34
  return logger;
33
35
  };
@@ -204,7 +206,8 @@ var defineIntorConfig = (config) => {
204
206
  const id = config.id || `ID${Math.random().toString(36).slice(2, 6)}`;
205
207
  const logger = initializeLogger({
206
208
  id,
207
- loggerOptions: __spreadProps(__spreadValues({}, config.logger), { scope: "defineIntorConfig" })
209
+ loggerOptions: config.logger,
210
+ scope: "defineIntorConfig"
208
211
  });
209
212
  const supportedLocales = validateSupportedLocales({ config });
210
213
  const defaultLocale = validateDefaultLocale({ config, supportedLocales });
@@ -44,7 +44,6 @@ type LoaderOptions = ImportLoader | ApiLoader;
44
44
 
45
45
  type InitLoggerOptions = {
46
46
  level?: Level;
47
- scope: string | string[];
48
47
  normalizerConfig?: NormalizerConfig;
49
48
  formatterConfig?: FormatterConfig;
50
49
  preset?: LoggerPreset;
@@ -44,7 +44,6 @@ type LoaderOptions = ImportLoader | ApiLoader;
44
44
 
45
45
  type InitLoggerOptions = {
46
46
  level?: Level;
47
- scope: string | string[];
48
47
  normalizerConfig?: NormalizerConfig;
49
48
  formatterConfig?: FormatterConfig;
50
49
  preset?: LoggerPreset;
@@ -21,11 +21,13 @@ var __spreadValues = (a, b) => {
21
21
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
22
  var initializeLogger = ({
23
23
  id,
24
+ scope,
24
25
  loggerOptions
25
26
  }) => {
26
27
  const logger = logry(__spreadValues({
27
28
  id,
28
- level: loggerOptions == null ? void 0 : loggerOptions.level
29
+ level: loggerOptions == null ? void 0 : loggerOptions.level,
30
+ scope
29
31
  }, loggerOptions));
30
32
  return logger;
31
33
  };
@@ -202,7 +204,8 @@ var defineIntorConfig = (config) => {
202
204
  const id = config.id || `ID${Math.random().toString(36).slice(2, 6)}`;
203
205
  const logger = initializeLogger({
204
206
  id,
205
- loggerOptions: __spreadProps(__spreadValues({}, config.logger), { scope: "defineIntorConfig" })
207
+ loggerOptions: config.logger,
208
+ scope: "defineIntorConfig"
206
209
  });
207
210
  const supportedLocales = validateSupportedLocales({ config });
208
211
  const defaultLocale = validateDefaultLocale({ config, supportedLocales });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intor",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "A modular and extensible i18n core designed for TypeScript and JavaScript projects. Intor enables custom translation logic with support for both frontend and backend environments, featuring runtime configuration, caching, adapters, and message loaders.",
5
5
  "author": "Yiming Liao",
6
6
  "license": "MIT",