inferred-types 0.55.8 → 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.
- package/modules/inferred-types/dist/index.cjs +17 -5
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +64 -21
- package/modules/inferred-types/dist/index.js +14 -5
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +19 -5
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +53 -2
- package/modules/runtime/dist/index.js +16 -5
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.d.ts +10 -18
- package/package.json +1 -1
|
@@ -258,6 +258,7 @@ __export(index_exports, {
|
|
|
258
258
|
createObjectMap: () => createObjectMap,
|
|
259
259
|
createTypeToken: () => createTypeToken,
|
|
260
260
|
cssColor: () => cssColor,
|
|
261
|
+
cssFromDefinition: () => cssFromDefinition,
|
|
261
262
|
csv: () => csv,
|
|
262
263
|
defineCss: () => defineCss,
|
|
263
264
|
defineObj: () => defineObj,
|
|
@@ -272,6 +273,7 @@ __export(index_exports, {
|
|
|
272
273
|
entries: () => entries,
|
|
273
274
|
errCondition: () => errCondition,
|
|
274
275
|
filter: () => filter,
|
|
276
|
+
filterEmpty: () => filterEmpty,
|
|
275
277
|
find: () => find,
|
|
276
278
|
fnMeta: () => fnMeta,
|
|
277
279
|
fromDefineObject: () => fromDefineObject,
|
|
@@ -462,6 +464,7 @@ __export(index_exports, {
|
|
|
462
464
|
isNewsUrl: () => isNewsUrl,
|
|
463
465
|
isNikeUrl: () => isNikeUrl,
|
|
464
466
|
isNorwegianNewsUrl: () => isNorwegianNewsUrl,
|
|
467
|
+
isNotEmpty: () => isNotEmpty,
|
|
465
468
|
isNotNull: () => isNotNull,
|
|
466
469
|
isNothing: () => isNothing,
|
|
467
470
|
isNull: () => isNull,
|
|
@@ -5442,15 +5445,15 @@ ${frameToCss(frames)}
|
|
|
5442
5445
|
}`
|
|
5443
5446
|
};
|
|
5444
5447
|
}
|
|
5445
|
-
function
|
|
5446
|
-
|
|
5447
|
-
`).join("");
|
|
5448
|
+
function cssFromDefinition(defn, indent = "", inline = false) {
|
|
5449
|
+
const nextDefn = inline ? " " : "\n";
|
|
5450
|
+
return Object.keys(defn).map((key) => `${indent}${key}: ${ensureTrailing(defn[key], ";")}${nextDefn}`).join("");
|
|
5448
5451
|
}
|
|
5449
5452
|
function defineCss(defn) {
|
|
5450
5453
|
const fn2 = (selector) => {
|
|
5451
5454
|
return selector ? `${selector} {
|
|
5452
|
-
${
|
|
5453
|
-
` :
|
|
5455
|
+
${cssFromDefinition(defn, " ")}}
|
|
5456
|
+
` : cssFromDefinition(defn);
|
|
5454
5457
|
};
|
|
5455
5458
|
return createFnWithProps(
|
|
5456
5459
|
fn2,
|
|
@@ -5816,6 +5819,9 @@ function createFixedLengthArray(content, quantity) {
|
|
|
5816
5819
|
return Array.from({ length: quantity }, () => content);
|
|
5817
5820
|
}
|
|
5818
5821
|
var filter = "NOT READY";
|
|
5822
|
+
function filterEmpty(...val) {
|
|
5823
|
+
return val.filter((i) => isNotEmpty(i));
|
|
5824
|
+
}
|
|
5819
5825
|
function find(list2, deref = null) {
|
|
5820
5826
|
return (comparator) => {
|
|
5821
5827
|
return list2.find((i) => {
|
|
@@ -7423,6 +7429,9 @@ function isEmail(val) {
|
|
|
7423
7429
|
function isEmpty(val) {
|
|
7424
7430
|
return isUndefined(val) || isNull(val) || isString(val) && val.length === 0 || isObject(val) && Object.keys(val).length === 0 || isArray(val) && val.length === 0;
|
|
7425
7431
|
}
|
|
7432
|
+
function isNotEmpty(val) {
|
|
7433
|
+
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));
|
|
7434
|
+
}
|
|
7426
7435
|
function isErrorCondition(value, kind = null) {
|
|
7427
7436
|
return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value.kind === kind : true : false;
|
|
7428
7437
|
}
|
|
@@ -8769,6 +8778,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
|
|
|
8769
8778
|
createObjectMap,
|
|
8770
8779
|
createTypeToken,
|
|
8771
8780
|
cssColor,
|
|
8781
|
+
cssFromDefinition,
|
|
8772
8782
|
csv,
|
|
8773
8783
|
defineCss,
|
|
8774
8784
|
defineObj,
|
|
@@ -8783,6 +8793,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
|
|
|
8783
8793
|
entries,
|
|
8784
8794
|
errCondition,
|
|
8785
8795
|
filter,
|
|
8796
|
+
filterEmpty,
|
|
8786
8797
|
find,
|
|
8787
8798
|
fnMeta,
|
|
8788
8799
|
fromDefineObject,
|
|
@@ -8973,6 +8984,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
|
|
|
8973
8984
|
isNewsUrl,
|
|
8974
8985
|
isNikeUrl,
|
|
8975
8986
|
isNorwegianNewsUrl,
|
|
8987
|
+
isNotEmpty,
|
|
8976
8988
|
isNotNull,
|
|
8977
8989
|
isNothing,
|
|
8978
8990
|
isNull,
|