@pronto-tools-and-more/custom-js-functions 14.14.0 → 14.16.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/main.js
CHANGED
@@ -410,6 +410,7 @@
|
|
410
410
|
checkLength: () => checkLength,
|
411
411
|
dateHelper: () => dateHelper,
|
412
412
|
debugId: () => debugId,
|
413
|
+
evaluateCondition: () => evaluateCondition,
|
413
414
|
getPrimaryCategoryProperty: () => getPrimaryCategoryProperty,
|
414
415
|
getReadTime: () => getReadTime,
|
415
416
|
handleMenuItems: () => handleMenuItems,
|
@@ -443,6 +444,15 @@
|
|
443
444
|
var import_it = __toESM(require_it(), 1);
|
444
445
|
var dateHelper = import_dayjs.default;
|
445
446
|
|
447
|
+
// src/parts/EvaluateCondition/EvaluateCondition.ts
|
448
|
+
var evaluateCondition = (expression) => {
|
449
|
+
const available = Boolean(expression);
|
450
|
+
if (available) {
|
451
|
+
return "yes";
|
452
|
+
}
|
453
|
+
return "no";
|
454
|
+
};
|
455
|
+
|
446
456
|
// src/parts/FunctionBookmarkIdString/FunctionBookmarkIdString.ts
|
447
457
|
var bookmarkIdString = (bookmarks) => {
|
448
458
|
return `^(${bookmarks.join("|")})`;
|
package/package.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export * from "../Assign/Assign.ts";
|
2
2
|
export * from "../CheckLength/CheckLength.ts";
|
3
3
|
export * from "../DateHelper/DateHelper.ts";
|
4
|
+
export * from "../EvaluateCondition/EvaluateCondition.ts";
|
4
5
|
export * from "../FunctionBookmarkIdString/FunctionBookmarkIdString.ts";
|
5
6
|
export * from "../FunctionDebugId/FunctionDebugId.ts";
|
6
7
|
export * from "../FunctionId/FunctionId.ts";
|