@schukai/monster 3.16.0 → 3.17.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.
Files changed (116) hide show
  1. package/package.json +1 -1
  2. package/source/constants.mjs +1 -1
  3. package/source/constraints/abstract.mjs +1 -1
  4. package/source/constraints/abstractoperator.mjs +1 -1
  5. package/source/constraints/andoperator.mjs +1 -1
  6. package/source/constraints/invalid.mjs +1 -1
  7. package/source/constraints/isarray.mjs +1 -1
  8. package/source/constraints/isobject.mjs +1 -1
  9. package/source/constraints/namespace.mjs +1 -1
  10. package/source/constraints/oroperator.mjs +1 -1
  11. package/source/constraints/valid.mjs +1 -1
  12. package/source/data/buildmap.mjs +1 -1
  13. package/source/data/buildtree.mjs +1 -1
  14. package/source/data/datasource/dom.mjs +1 -1
  15. package/source/data/datasource/namespace.mjs +1 -1
  16. package/source/data/datasource/server/namespace.mjs +1 -1
  17. package/source/data/datasource/server/restapi/namespace.mjs +1 -1
  18. package/source/data/datasource/server/restapi/writeerror.mjs +1 -1
  19. package/source/data/datasource/server/restapi.mjs +1 -1
  20. package/source/data/datasource/server/webconnect.mjs +1 -1
  21. package/source/data/datasource/server.mjs +1 -1
  22. package/source/data/datasource/storage/localstorage.mjs +1 -1
  23. package/source/data/datasource/storage/namespace.mjs +1 -1
  24. package/source/data/datasource/storage/sessionstorage.mjs +1 -1
  25. package/source/data/datasource/storage.mjs +1 -1
  26. package/source/data/datasource.mjs +1 -1
  27. package/source/data/diff.mjs +1 -1
  28. package/source/data/extend.mjs +1 -1
  29. package/source/data/namespace.mjs +1 -1
  30. package/source/data/pathfinder.mjs +1 -1
  31. package/source/data/pipe.mjs +1 -1
  32. package/source/data/transformer.mjs +42 -5
  33. package/source/dom/assembler.mjs +1 -1
  34. package/source/dom/attributes.mjs +1 -1
  35. package/source/dom/constants.mjs +1 -1
  36. package/source/dom/customcontrol.mjs +1 -1
  37. package/source/dom/customelement.mjs +1 -1
  38. package/source/dom/events.mjs +1 -1
  39. package/source/dom/focusmanager.mjs +1 -1
  40. package/source/dom/locale.mjs +1 -1
  41. package/source/dom/namespace.mjs +1 -1
  42. package/source/dom/ready.mjs +1 -1
  43. package/source/dom/resource/data.mjs +1 -1
  44. package/source/dom/resource/link/namespace.mjs +1 -1
  45. package/source/dom/resource/link/stylesheet.mjs +1 -1
  46. package/source/dom/resource/link.mjs +1 -1
  47. package/source/dom/resource/namespace.mjs +1 -1
  48. package/source/dom/resource/script.mjs +1 -1
  49. package/source/dom/resource.mjs +1 -1
  50. package/source/dom/resourcemanager.mjs +1 -1
  51. package/source/dom/template.mjs +1 -1
  52. package/source/dom/theme.mjs +1 -1
  53. package/source/dom/updater.mjs +1 -1
  54. package/source/dom/util.mjs +1 -1
  55. package/source/dom/worker/factory.mjs +1 -1
  56. package/source/dom/worker/namespace.mjs +1 -1
  57. package/source/i18n/formatter.mjs +1 -1
  58. package/source/i18n/locale.mjs +1 -1
  59. package/source/i18n/namespace.mjs +1 -1
  60. package/source/i18n/provider.mjs +1 -1
  61. package/source/i18n/providers/embed.mjs +2 -4
  62. package/source/i18n/providers/fetch.mjs +1 -1
  63. package/source/i18n/providers/namespace.mjs +1 -1
  64. package/source/i18n/translations.mjs +1 -1
  65. package/source/logging/handler/console.mjs +1 -1
  66. package/source/logging/handler/namespace.mjs +1 -1
  67. package/source/logging/handler.mjs +1 -1
  68. package/source/logging/logentry.mjs +1 -1
  69. package/source/logging/logger.mjs +1 -1
  70. package/source/logging/namespace.mjs +1 -1
  71. package/source/math/namespace.mjs +1 -1
  72. package/source/math/random.mjs +1 -1
  73. package/source/monster.mjs +1 -1
  74. package/source/net/namespace.mjs +1 -1
  75. package/source/net/webconnect/message.mjs +1 -1
  76. package/source/net/webconnect/namespace.mjs +1 -1
  77. package/source/net/webconnect.mjs +1 -1
  78. package/source/text/formatter.mjs +1 -1
  79. package/source/text/namespace.mjs +1 -1
  80. package/source/types/base.mjs +1 -1
  81. package/source/types/basewithoptions.mjs +1 -1
  82. package/source/types/binary.mjs +1 -1
  83. package/source/types/dataurl.mjs +1 -1
  84. package/source/types/global.mjs +1 -1
  85. package/source/types/id.mjs +1 -1
  86. package/source/types/internal.mjs +1 -1
  87. package/source/types/is.mjs +1 -1
  88. package/source/types/mediatype.mjs +1 -1
  89. package/source/types/namespace.mjs +1 -1
  90. package/source/types/node.mjs +1 -1
  91. package/source/types/nodelist.mjs +1 -1
  92. package/source/types/noderecursiveiterator.mjs +1 -1
  93. package/source/types/observablequeue.mjs +1 -1
  94. package/source/types/observer.mjs +1 -1
  95. package/source/types/observerlist.mjs +1 -1
  96. package/source/types/proxyobserver.mjs +1 -1
  97. package/source/types/queue.mjs +1 -1
  98. package/source/types/randomid.mjs +1 -1
  99. package/source/types/regex.mjs +1 -1
  100. package/source/types/stack.mjs +1 -1
  101. package/source/types/tokenlist.mjs +1 -1
  102. package/source/types/typeof.mjs +1 -1
  103. package/source/types/uniquequeue.mjs +1 -1
  104. package/source/types/uuid.mjs +1 -1
  105. package/source/types/validate.mjs +1 -1
  106. package/source/types/version.mjs +2 -2
  107. package/source/util/clone.mjs +1 -1
  108. package/source/util/comparator.mjs +1 -1
  109. package/source/util/deadmansswitch.mjs +1 -1
  110. package/source/util/freeze.mjs +1 -1
  111. package/source/util/namespace.mjs +1 -1
  112. package/source/util/processing.mjs +1 -1
  113. package/source/util/trimspaces.mjs +1 -1
  114. package/test/cases/data/pipe.mjs +65 -5
  115. package/test/cases/data/transformer.mjs +22 -0
  116. package/test/cases/monster.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -17,6 +17,7 @@ import {
17
17
  validateObject,
18
18
  validatePrimitive,
19
19
  validateString,
20
+ validateBoolean,
20
21
  } from "../types/validate.mjs";
21
22
  import {clone} from "../util/clone.mjs";
22
23
  import {Pathfinder} from "./pathfinder.mjs";
@@ -186,6 +187,42 @@ function transform(value) {
186
187
  validateString(value);
187
188
  return value.toLowerCase();
188
189
 
190
+ case "isundefined":
191
+ case "is-undefined":
192
+ return value === undefined;
193
+
194
+ case "isnull":
195
+ case "is-null":
196
+ return value === null;
197
+
198
+ case "isset":
199
+ case "is-set":
200
+ return value !== undefined && value !== null;
201
+
202
+ case "isnumber":
203
+ case "is-number":
204
+ return isPrimitive(value) && !isNaN(value);
205
+
206
+ case "isinteger":
207
+ case "is-integer":
208
+ return isPrimitive(value) && !isNaN(value) && value % 1 === 0;
209
+
210
+ case "isfloat":
211
+ case "is-float":
212
+ return isPrimitive(value) && !isNaN(value) && value % 1 !== 0;
213
+
214
+ case "isobject":
215
+ case "is-object":
216
+ return isObject(value);
217
+
218
+ case "isarray":
219
+ case "is-array":
220
+ return Array.isArray(value);
221
+
222
+ case "not":
223
+ validateBoolean(value);
224
+ return !value;
225
+
189
226
  case "toupper":
190
227
  case "strtoupper":
191
228
  case "touppercase":
@@ -497,7 +534,7 @@ function transform(value) {
497
534
 
498
535
  throw new Error("type not supported");
499
536
 
500
-
537
+
501
538
  case "map":
502
539
  map = new Map();
503
540
  while (args.length > 0) {
@@ -505,13 +542,13 @@ function transform(value) {
505
542
  if (keyValue === undefined) {
506
543
  throw new Error("missing key parameter");
507
544
  }
508
-
545
+
509
546
  keyValue = keyValue.split("=");
510
547
  map.set(keyValue[0], keyValue[1]);
511
548
  }
512
-
549
+
513
550
  return map.get(value);
514
-
551
+
515
552
  case "timestamp":
516
553
  date = new Date(value);
517
554
  timestamp = date.getTime();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -109,7 +109,7 @@ class Embed extends Provider {
109
109
 
110
110
  let translations = null;
111
111
  try {
112
- translations = JSON.parse(this.translateElement.innerHTML);
112
+ translations = JSON.parse(this.translateElement.innerHTML.trim());
113
113
  } catch (e) {
114
114
  reject(e);
115
115
  return;
@@ -150,8 +150,6 @@ class Embed extends Provider {
150
150
 
151
151
  const promises = [];
152
152
 
153
- let result
154
-
155
153
  list.forEach((translationElement) => {
156
154
  const p = new Embed(translationElement);
157
155
  promises.push(p.assignToElement(undefined, element));
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2022 schukai GmbH
2
+ * Copyright 2023 schukai GmbH
3
3
  * SPDX-License-Identifier: AGPL-3.0
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright schukai GmbH and contributors 2022. All Rights Reserved.
2
+ * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
3
  * Node module: @schukai/monster
4
4
  * This file is licensed under the AGPLv3 License.
5
5
  * License text available at https://www.gnu.org/licenses/agpl-3.0.en.html