@lingui/conf 5.1.2 → 5.2.0

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.cjs CHANGED
@@ -277,11 +277,8 @@ function makeConfig(userConfig, opts = {}) {
277
277
  jestValidate.validate(config, configValidation);
278
278
  validateLocales(config);
279
279
  }
280
- config = pipe(
281
- // List config migrations from oldest to newest
282
- setCldrParentLocales,
283
- normalizeRuntimeConfigModule
284
- )(config);
280
+ config = setCldrParentLocales(config);
281
+ config = normalizeRuntimeConfigModule(config);
285
282
  return replaceRootDir(
286
283
  config,
287
284
  config.rootDir
@@ -364,7 +361,6 @@ function validateLocales(config) {
364
361
  );
365
362
  }
366
363
  }
367
- const pipe = (...functions) => (args) => functions.reduce((arg, fn) => fn(arg), args);
368
364
 
369
365
  function defineConfig(config) {
370
366
  return config;
package/dist/index.mjs CHANGED
@@ -269,11 +269,8 @@ function makeConfig(userConfig, opts = {}) {
269
269
  validate(config, configValidation);
270
270
  validateLocales(config);
271
271
  }
272
- config = pipe(
273
- // List config migrations from oldest to newest
274
- setCldrParentLocales,
275
- normalizeRuntimeConfigModule
276
- )(config);
272
+ config = setCldrParentLocales(config);
273
+ config = normalizeRuntimeConfigModule(config);
277
274
  return replaceRootDir(
278
275
  config,
279
276
  config.rootDir
@@ -356,7 +353,6 @@ function validateLocales(config) {
356
353
  );
357
354
  }
358
355
  }
359
- const pipe = (...functions) => (args) => functions.reduce((arg, fn) => fn(arg), args);
360
356
 
361
357
  function defineConfig(config) {
362
358
  return config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/conf",
3
- "version": "5.1.2",
3
+ "version": "5.2.0",
4
4
  "sideEffects": false,
5
5
  "description": "Get lingui configuration from package.json",
6
6
  "keywords": [
@@ -38,9 +38,9 @@
38
38
  "/dist"
39
39
  ],
40
40
  "devDependencies": {
41
- "@lingui/jest-mocks": "^3.0.3",
41
+ "@lingui/jest-mocks": "*",
42
42
  "tsd": "^0.26.1",
43
43
  "unbuild": "^2.0.0"
44
44
  },
45
- "gitHead": "e45a2af5dfc1c88131fa8196d596e0f0f25678ea"
45
+ "gitHead": "9c50b4877ca8b134d0d96c09a8055221ca70b095"
46
46
  }