@morojs/moro 1.8.13 → 1.8.15

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.
@@ -1001,6 +1001,11 @@ function validateCompressionConfig(config, path) {
1001
1001
  level: validateNumber(config.level, `${path}.level`, { min: 1, max: 9 }),
1002
1002
  threshold: validateNumber(config.threshold, `${path}.threshold`, { min: 0 }),
1003
1003
  };
1004
+ if (config.maxInlineBytes !== undefined) {
1005
+ result.maxInlineBytes = validateNumber(config.maxInlineBytes, `${path}.maxInlineBytes`, {
1006
+ min: 0,
1007
+ });
1008
+ }
1004
1009
  if (config.encodings !== undefined) {
1005
1010
  if (!Array.isArray(config.encodings)) {
1006
1011
  throw new ConfigValidationError(`${path}.encodings`, config.encodings, 'array', 'encodings must be an array');