inferred-types 0.55.9 → 0.55.10

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.
@@ -71,6 +71,7 @@ __export(index_exports, {
71
71
  entries: () => entries,
72
72
  errCondition: () => errCondition,
73
73
  filter: () => filter,
74
+ filterEmpty: () => filterEmpty,
74
75
  find: () => find,
75
76
  fnMeta: () => fnMeta,
76
77
  fromDefineObject: () => fromDefineObject,
@@ -261,6 +262,7 @@ __export(index_exports, {
261
262
  isNewsUrl: () => isNewsUrl,
262
263
  isNikeUrl: () => isNikeUrl,
263
264
  isNorwegianNewsUrl: () => isNorwegianNewsUrl,
265
+ isNotEmpty: () => isNotEmpty,
264
266
  isNotNull: () => isNotNull,
265
267
  isNothing: () => isNothing,
266
268
  isNull: () => isNull,
@@ -3142,6 +3144,11 @@ function createFixedLengthArray(content, quantity) {
3142
3144
  // src/lists/filter.ts
3143
3145
  var filter = "NOT READY";
3144
3146
 
3147
+ // src/lists/filterEmpty.ts
3148
+ function filterEmpty(...val) {
3149
+ return val.filter((i) => isNotEmpty(i));
3150
+ }
3151
+
3145
3152
  // src/lists/find.ts
3146
3153
  function find(list2, deref = null) {
3147
3154
  return (comparator) => {
@@ -5024,6 +5031,9 @@ function isEmail(val) {
5024
5031
  function isEmpty(val) {
5025
5032
  return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
5026
5033
  }
5034
+ function isNotEmpty(val) {
5035
+ 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));
5036
+ }
5027
5037
 
5028
5038
  // src/type-guards/isErrorCondition.ts
5029
5039
  function isErrorCondition(value, kind = null) {
@@ -6184,6 +6194,7 @@ function asVueRef(value) {
6184
6194
  entries,
6185
6195
  errCondition,
6186
6196
  filter,
6197
+ filterEmpty,
6187
6198
  find,
6188
6199
  fnMeta,
6189
6200
  fromDefineObject,
@@ -6374,6 +6385,7 @@ function asVueRef(value) {
6374
6385
  isNewsUrl,
6375
6386
  isNikeUrl,
6376
6387
  isNorwegianNewsUrl,
6388
+ isNotEmpty,
6377
6389
  isNotNull,
6378
6390
  isNothing,
6379
6391
  isNull,