@schukai/monster 3.16.0 → 3.16.1

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 (115) 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 +1 -1
  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/monster.mjs +1 -1
@@ -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 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 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 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 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
@@ -142,7 +142,7 @@ function getMonsterVersion() {
142
142
  }
143
143
 
144
144
  /** don't touch, replaced by make with package.json version */
145
- monsterVersion = new Version("3.16.0");
145
+ monsterVersion = new Version("3.16.1");
146
146
 
147
147
  return monsterVersion;
148
148
  }
@@ -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
@@ -3,6 +3,7 @@
3
3
  import {expect} from "chai"
4
4
  import {Pipe} from "../../../../application/source/data/pipe.mjs";
5
5
  import {initJSDOM} from "../../util/jsdom.mjs";
6
+ import {Embed} from "../../../../application/source/i18n/providers/embed.mjs";
6
7
 
7
8
 
8
9
  describe('Pipe', function () {
@@ -10,7 +11,7 @@ describe('Pipe', function () {
10
11
  before(function (done) {
11
12
 
12
13
  let promises = []
13
- if(!globalThis['crypto']) {
14
+ if (!globalThis['crypto']) {
14
15
  promises.push(import("@peculiar/webcrypto").then(m => {
15
16
  globalThis['crypto'] = new m.Crypto();
16
17
  return true;
@@ -21,12 +22,12 @@ describe('Pipe', function () {
21
22
  done()
22
23
  });
23
24
 
24
- });
25
-
25
+ });
26
+
26
27
  describe('run different pipes', function () {
27
28
  [
28
- ['path:b | if:x:\\ ', {a:true}, ' '], // '\\ '.length ↦ 2
29
- ['path:a | if:x:\\ ', {a:true}, 'x'],
29
+ ['path:b | if:x:\\ ', {a: true}, ' '], // '\\ '.length ↦ 2
30
+ ['path:a | if:x:\\ ', {a: true}, 'x'],
30
31
  ['nop', 'abcdefghijklmnop', 'abcdefghijklmnop'],
31
32
 
32
33
  ].forEach(function (data) {
@@ -83,4 +84,63 @@ describe('Pipe', function () {
83
84
 
84
85
 
85
86
  });
87
+
88
+ describe('new Pipe and locale', function () {
89
+
90
+
91
+ let html1 = `
92
+ <div id="mock-translations"></div>
93
+ <script type="application/json" data-monster-role="translations">
94
+ {
95
+ "51": "xyz",
96
+ "52": "abc",
97
+ "53": "def"
98
+ }
99
+ </script>
100
+ `;
101
+
102
+ beforeEach((done) => {
103
+ let mocks = document.getElementById('mocks');
104
+ mocks.innerHTML = html1;
105
+ let elem = document.getElementById('mock-translations');
106
+ Embed.assignTranslationsToElement(elem).then((o) => {
107
+ done()
108
+ }).catch((e) => {
109
+ done(e)
110
+ })
111
+
112
+
113
+ })
114
+
115
+ afterEach(() => {
116
+ let mocks = document.getElementById('mocks');
117
+ mocks.innerHTML = "";
118
+ })
119
+
120
+ before(function (done) {
121
+ initJSDOM().then(() => {
122
+ done()
123
+ });
124
+ });
125
+
126
+ [
127
+ ['path:status | tostring | i18n', {status: 51}, "xyz"]
128
+
129
+
130
+ ].forEach(function (data) {
131
+
132
+ let pipe = data.shift()
133
+ let obj = data.shift()
134
+ let expected = data.shift()
135
+
136
+ it('should transform(' + pipe + ').run(' + JSON.stringify(obj) + ') return ' + JSON.stringify(expected), function () {
137
+ let t = new Pipe(pipe);
138
+ expect(t.run(obj)).to.be.equal(expected);
139
+ });
140
+ })
141
+
142
+
143
+ })
144
+
145
+
86
146
  });
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.16.0")
10
+ monsterVersion = new Version("3.16.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13