inferred-types 0.55.9 → 0.55.11

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.
@@ -273,6 +273,7 @@ __export(index_exports, {
273
273
  entries: () => entries,
274
274
  errCondition: () => errCondition,
275
275
  filter: () => filter,
276
+ filterEmpty: () => filterEmpty,
276
277
  find: () => find,
277
278
  fnMeta: () => fnMeta,
278
279
  fromDefineObject: () => fromDefineObject,
@@ -463,6 +464,7 @@ __export(index_exports, {
463
464
  isNewsUrl: () => isNewsUrl,
464
465
  isNikeUrl: () => isNikeUrl,
465
466
  isNorwegianNewsUrl: () => isNorwegianNewsUrl,
467
+ isNotEmpty: () => isNotEmpty,
466
468
  isNotNull: () => isNotNull,
467
469
  isNothing: () => isNothing,
468
470
  isNull: () => isNull,
@@ -5443,14 +5445,16 @@ ${frameToCss(frames)}
5443
5445
  }`
5444
5446
  };
5445
5447
  }
5446
- function cssFromDefinition(defn, indent = "", inline = false) {
5448
+ function cssFromDefinition(defn, opt) {
5449
+ const inline = isDefined(opt?.inline) ? opt.inline : true;
5450
+ const indent = isString(opt?.indent) ? opt.indent : "";
5447
5451
  const nextDefn = inline ? " " : "\n";
5448
- return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}${nextDefn}`).join("");
5452
+ return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}`).join(nextDefn);
5449
5453
  }
5450
5454
  function defineCss(defn) {
5451
5455
  const fn2 = (selector) => {
5452
5456
  return selector ? `${selector} {
5453
- ${cssFromDefinition(defn, " ")}}
5457
+ ${cssFromDefinition(defn, { indent: " " })}}
5454
5458
  ` : cssFromDefinition(defn);
5455
5459
  };
5456
5460
  return createFnWithProps(
@@ -5817,6 +5821,9 @@ function createFixedLengthArray(content, quantity) {
5817
5821
  return Array.from({ length: quantity }, () => content);
5818
5822
  }
5819
5823
  var filter = "NOT READY";
5824
+ function filterEmpty(...val) {
5825
+ return val.filter((i) => isNotEmpty(i));
5826
+ }
5820
5827
  function find(list2, deref = null) {
5821
5828
  return (comparator) => {
5822
5829
  return list2.find((i) => {
@@ -7424,6 +7431,9 @@ function isEmail(val) {
7424
7431
  function isEmpty(val) {
7425
7432
  return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
7426
7433
  }
7434
+ function isNotEmpty(val) {
7435
+ return !(isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && (val?.length === 0 || val?.length === void 0));
7436
+ }
7427
7437
  function isErrorCondition(value, kind = null) {
7428
7438
  return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value.kind === kind : true : false;
7429
7439
  }
@@ -8785,6 +8795,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
8785
8795
  entries,
8786
8796
  errCondition,
8787
8797
  filter,
8798
+ filterEmpty,
8788
8799
  find,
8789
8800
  fnMeta,
8790
8801
  fromDefineObject,
@@ -8975,6 +8986,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
8975
8986
  isNewsUrl,
8976
8987
  isNikeUrl,
8977
8988
  isNorwegianNewsUrl,
8989
+ isNotEmpty,
8978
8990
  isNotNull,
8979
8991
  isNothing,
8980
8992
  isNull,