From 52c70d3a0998d933be461dba64431b924ad10017 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Fri, 11 Oct 2024 19:44:20 +0200 Subject: [PATCH] chore: code format --- nix/config/release.nix | 2 +- source/components/content/copy.mjs | 2 +- source/constraints/andoperator.mjs | 2 +- source/constraints/invalid.mjs | 2 +- source/constraints/isarray.mjs | 2 +- source/constraints/isobject.mjs | 2 +- source/constraints/oroperator.mjs | 2 +- source/constraints/valid.mjs | 2 +- source/data/buildmap.mjs | 2 +- source/data/pathfinder.mjs | 2 +- source/data/pipe.mjs | 2 +- source/dom/customelement.mjs | 8 ++++---- source/dom/updater.mjs | 2 +- source/monster.mjs | 1 + source/types/basewithoptions.mjs | 2 +- source/util/deadmansswitch.mjs | 2 +- source/util/processing.mjs | 4 ++-- 17 files changed, 21 insertions(+), 20 deletions(-) diff --git a/nix/config/release.nix b/nix/config/release.nix index 4fe82a1fc..7a0b9daad 100644 --- a/nix/config/release.nix +++ b/nix/config/release.nix @@ -3,4 +3,4 @@ commit = "28a02532da6584c002568c77901bc0064304980f"; name = "Monster"; mnemonic = "monster"; -} \ No newline at end of file +} diff --git a/source/components/content/copy.mjs b/source/components/content/copy.mjs index 0bd7e6342..f2a0f28ac 100644 --- a/source/components/content/copy.mjs +++ b/source/components/content/copy.mjs @@ -96,7 +96,7 @@ class Copy extends CustomElement { * @return {Components.Content.Copy * @fires monster-copy-clicked This event is fired when the copy button is clicked. * @fires monster-copy-success This event is fired when the copy action is successful. - * @fires monster-copy-error This event is fired when the copy action fails. + * @fires monster-copy-error This event is fired when the copy action fails. */ [assembleMethodSymbol]() { super[assembleMethodSymbol](); diff --git a/source/constraints/andoperator.mjs b/source/constraints/andoperator.mjs index 558072238..c1e46bc9b 100644 --- a/source/constraints/andoperator.mjs +++ b/source/constraints/andoperator.mjs @@ -24,7 +24,7 @@ export { AndOperator }; * The AndOperator is used to link several constraints. The constraint is fulfilled if all constraints of the operators are fulfilled. * * @example /examples/libraries/constraints/andoperator/ A simple example - * + * * @license AGPLv3 * @since 1.3.0 * @copyright schukai GmbH diff --git a/source/constraints/invalid.mjs b/source/constraints/invalid.mjs index 5f7b3a348..dd33c2b6d 100644 --- a/source/constraints/invalid.mjs +++ b/source/constraints/invalid.mjs @@ -24,7 +24,7 @@ export { Invalid }; * The invalid constraint allows an always invalid query to be performed. this constraint is mainly intended for testing. * * @example /examples/libraries/constraints/invalid/ A simple example - * + * * @license AGPLv3 * @since 1.3.0 * @copyright schukai GmbH diff --git a/source/constraints/isarray.mjs b/source/constraints/isarray.mjs index ba682b55f..fd519c288 100644 --- a/source/constraints/isarray.mjs +++ b/source/constraints/isarray.mjs @@ -23,7 +23,7 @@ export { IsArray }; * The uniform API of the constraints allows chains to be formed. * * @example /examples/libraries/constraints/isarray/ A simple example - * + * * @license AGPLv3 * @since 1.3.0 * @copyright schukai GmbH diff --git a/source/constraints/isobject.mjs b/source/constraints/isobject.mjs index 0746e3907..c00f8851f 100644 --- a/source/constraints/isobject.mjs +++ b/source/constraints/isobject.mjs @@ -23,7 +23,7 @@ export { IsObject }; * The uniform API of the constraints allows chains to be formed. * * @example /examples/libraries/constraints/isobject/ A simple example - * + * * @license AGPLv3 * @since 1.3.0 * @copyright schukai GmbH diff --git a/source/constraints/oroperator.mjs b/source/constraints/oroperator.mjs index babc44d46..15cda9b55 100644 --- a/source/constraints/oroperator.mjs +++ b/source/constraints/oroperator.mjs @@ -24,7 +24,7 @@ export { OrOperator }; * The OrOperator is used to link several constraints. The constraint is fulfilled if one of the constraints is fulfilled. * * @example /examples/libraries/constraints/oroperator/ A simple example - * + * * @license AGPLv3 * @since 1.3.0 * @copyright schukai GmbH diff --git a/source/constraints/valid.mjs b/source/constraints/valid.mjs index ebb51bebc..4ad36b4d4 100644 --- a/source/constraints/valid.mjs +++ b/source/constraints/valid.mjs @@ -24,7 +24,7 @@ export { Valid }; * The valid constraint allows an always valid query to be performed. this constraint is mainly intended for testing. * * @example /examples/libraries/constraints/valid/ A simple example - * + * * @license AGPLv3 * @since 1.3.0 * @copyright schukai GmbH diff --git a/source/data/buildmap.mjs b/source/data/buildmap.mjs index 550ff2cc6..29fa4f910 100644 --- a/source/data/buildmap.mjs +++ b/source/data/buildmap.mjs @@ -36,7 +36,7 @@ const PARENT = "^"; * If you want to access the values of the parent data set, you have to use the ^ character, for example, ${id} ${^.name}. * * @externalExample ../../example/data/buildmap.mjs - * + * * @param {*} subject - The data object from which the map will be created * @param {string|Monster.Data~exampleSelectorCallback} selector - The path to the data object, or a callback that returns a map. * @param {string} [valueTemplate] - A template for the value of the map. diff --git a/source/data/pathfinder.mjs b/source/data/pathfinder.mjs index 7b96b5bf9..d005a8a91 100644 --- a/source/data/pathfinder.mjs +++ b/source/data/pathfinder.mjs @@ -83,7 +83,7 @@ const WILDCARD = "*"; * * @example /examples/libraries/pathfinder/example-1/ Example 1 * @example /examples/libraries/pathfinder/example-2/ Example 2 - * + * * @license AGPLv3 * @since 1.4.0 * @copyright schukai GmbH diff --git a/source/data/pipe.mjs b/source/data/pipe.mjs index a381ce46f..3a1abf9ca 100644 --- a/source/data/pipe.mjs +++ b/source/data/pipe.mjs @@ -33,7 +33,7 @@ const DELIMITER = "|"; * the word is then converted to uppercase letters and a prefix Hello is added. the two backslash safe the space char. * * @example /examples/libraries/pipe/example-1/ - * + * * @license AGPLv3 * @since 1.5.0 * @copyright schukai GmbH diff --git a/source/dom/customelement.mjs b/source/dom/customelement.mjs index af5163ea8..2df0675db 100644 --- a/source/dom/customelement.mjs +++ b/source/dom/customelement.mjs @@ -215,7 +215,7 @@ class CustomElement extends HTMLElement { /** * This method is called by the `instanceof` operator. - * + * * @return {symbol} * @since 2.1.0 */ @@ -519,13 +519,13 @@ class CustomElement extends HTMLElement { * In the example, the function `my-transformer` is defined. In the template, you can use it as follows: * * ```html - * <my-element + * <my-element * data-monster-option-transformer="path:my-value | call:my-transformer"> * </my-element> * ``` * * The function `my-transformer` is called with the value of `my-value` as a parameter. - * + * * ```js * class MyElement extends CustomElement { * [updaterTransformerMethodsSymbol]() { @@ -554,7 +554,7 @@ class CustomElement extends HTMLElement { /** * This method is called once when the object is included in the DOM for the first time. It performs the following actions: - * + * * <ol> * <li>Extracts the options from the attributes and the script tag of the element and sets them.</li> * <li>Initializes the shadow root and its CSS stylesheet (if specified).</li> diff --git a/source/dom/updater.mjs b/source/dom/updater.mjs index 86cc2535b..3ac748f24 100644 --- a/source/dom/updater.mjs +++ b/source/dom/updater.mjs @@ -55,7 +55,7 @@ export { Updater, addObjectWithUpdaterToElement }; * done with care, as it can reduce performance. * * @example /examples/libraries/dom/updater/simple/ Simple example - * + * * @license AGPLv3 * @since 1.8.0 * @copyright schukai GmbH diff --git a/source/monster.mjs b/source/monster.mjs index 4e721f4f7..a8d1f399d 100644 --- a/source/monster.mjs +++ b/source/monster.mjs @@ -106,6 +106,7 @@ export * from "./util/deadmansswitch.mjs"; export * from "./util/comparator.mjs"; export * from "./util/freeze.mjs"; export * from "./util/clone.mjs"; +export * from "./util/processing/callback.mjs"; export * from "./logging/handler/console.mjs"; export * from "./logging/logger.mjs"; export * from "./logging/handler.mjs"; diff --git a/source/types/basewithoptions.mjs b/source/types/basewithoptions.mjs index 7c0da30e8..9d97ce1a2 100644 --- a/source/types/basewithoptions.mjs +++ b/source/types/basewithoptions.mjs @@ -31,7 +31,7 @@ export { BaseWithOptions }; * @license AGPLv3 * @since 1.13.0 * @copyright schukai GmbH - * @deprecated since 3.15.0 + * @deprecated since 3.15.0 */ class BaseWithOptions extends Base { /** diff --git a/source/util/deadmansswitch.mjs b/source/util/deadmansswitch.mjs index 5447bddf0..21fba4764 100644 --- a/source/util/deadmansswitch.mjs +++ b/source/util/deadmansswitch.mjs @@ -21,7 +21,7 @@ import { validateFunction, validateInteger } from "../types/validate.mjs"; export { DeadMansSwitch }; /** - * The dead man's switch allows setting a timer which can be reset again + * The dead man's switch allows setting a timer which can be reset again * and again within a defined period of time. * * @example /example/util/deadmansswitch/simple/ Simple example diff --git a/source/util/processing.mjs b/source/util/processing.mjs index 19dc49839..31ddbaf3b 100644 --- a/source/util/processing.mjs +++ b/source/util/processing.mjs @@ -33,9 +33,9 @@ export { Processing }; * So the execution time is timeout1+timeout1+timeout1+timeout2 * * The result of `run()` is a promise. - * + * * @example /examples/libraries/util/processing/simple/ A simple example - * + * * @copyright schukai GmbH * @license AGPLv3 * @since 1.21.0 -- GitLab