@schukai/monster 3.51.4 → 3.51.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. package/CHANGELOG.md +689 -0
  2. package/README.md +2 -2
  3. package/package.json +1 -1
  4. package/source/monster.mjs +106 -217
  5. package/source/types/version.mjs +1 -1
  6. package/test/cases/constraint/abstractoperator.mjs +2 -2
  7. package/test/cases/constraint/andoperator.mjs +3 -3
  8. package/test/cases/constraint/invalid.mjs +1 -1
  9. package/test/cases/constraint/isarray.mjs +1 -1
  10. package/test/cases/constraint/isobject.mjs +1 -1
  11. package/test/cases/constraint/oroperator.mjs +3 -3
  12. package/test/cases/constraint/valid.mjs +1 -1
  13. package/test/cases/data/buildmap.mjs +1 -1
  14. package/test/cases/data/buildtree.mjs +2 -2
  15. package/test/cases/data/datasource/dom.mjs +1 -1
  16. package/test/cases/data/datasource/server/restapi.mjs +2 -2
  17. package/test/cases/data/datasource/server/websocket.mjs +1 -1
  18. package/test/cases/data/datasource/server.mjs +1 -1
  19. package/test/cases/data/datasource/storage/localstorage.mjs +1 -1
  20. package/test/cases/data/datasource/storage/sessionstorage.mjs +1 -1
  21. package/test/cases/data/datasource.mjs +1 -1
  22. package/test/cases/data/diff.mjs +2 -2
  23. package/test/cases/data/extend.mjs +1 -1
  24. package/test/cases/data/pathfinder.mjs +1 -1
  25. package/test/cases/data/pipe.mjs +2 -2
  26. package/test/cases/data/transformer.mjs +3 -4
  27. package/test/cases/dom/assembler.mjs +1 -1
  28. package/test/cases/dom/attributes.mjs +1 -1
  29. package/test/cases/dom/customcontrol.mjs +4 -4
  30. package/test/cases/dom/customelement-initfromscripthost.mjs +6 -6
  31. package/test/cases/dom/customelement.mjs +7 -7
  32. package/test/cases/dom/dimension.mjs +4 -4
  33. package/test/cases/dom/events.mjs +1 -1
  34. package/test/cases/dom/find.mjs +1 -1
  35. package/test/cases/dom/focusmanager.mjs +1 -1
  36. package/test/cases/dom/locale.mjs +2 -2
  37. package/test/cases/dom/ready.mjs +1 -1
  38. package/test/cases/dom/resource/data.mjs +3 -3
  39. package/test/cases/dom/resource/link/stylesheet.mjs +3 -3
  40. package/test/cases/dom/resource/link.mjs +3 -3
  41. package/test/cases/dom/resource/script.mjs +3 -3
  42. package/test/cases/dom/resource.mjs +1 -1
  43. package/test/cases/dom/resourcemanager.mjs +1 -1
  44. package/test/cases/dom/slotted-nodes.mjs +1 -1
  45. package/test/cases/dom/template.mjs +2 -2
  46. package/test/cases/dom/theme.mjs +2 -2
  47. package/test/cases/dom/updater.mjs +4 -4
  48. package/test/cases/dom/util/extract-keys.mjs +1 -1
  49. package/test/cases/dom/util/init-options-from-attributes.mjs +1 -1
  50. package/test/cases/dom/util.mjs +2 -2
  51. package/test/cases/dom/worker/factory.mjs +2 -2
  52. package/test/cases/i18n/formatter.mjs +2 -2
  53. package/test/cases/i18n/locale.mjs +1 -1
  54. package/test/cases/i18n/provider.mjs +4 -4
  55. package/test/cases/i18n/providers/embed.mjs +3 -3
  56. package/test/cases/i18n/providers/fetch.mjs +3 -3
  57. package/test/cases/i18n/translations.mjs +3 -3
  58. package/test/cases/logging/handler/console.mjs +3 -3
  59. package/test/cases/logging/handler.mjs +3 -3
  60. package/test/cases/logging/logentry.mjs +1 -1
  61. package/test/cases/logging/logger.mjs +1 -1
  62. package/test/cases/math/random.mjs +1 -1
  63. package/test/cases/monster.mjs +2 -2
  64. package/test/cases/net/webconnect/message.mjs +1 -1
  65. package/test/cases/net/webconnect.mjs +3 -3
  66. package/test/cases/text/bracketed-key-value-hash.mjs +1 -1
  67. package/test/cases/text/formatter.mjs +1 -1
  68. package/test/cases/text/util.mjs +1 -1
  69. package/test/cases/types/base.mjs +2 -2
  70. package/test/cases/types/basewithoptions.mjs +1 -1
  71. package/test/cases/types/binary.mjs +1 -1
  72. package/test/cases/types/dataurl.mjs +1 -1
  73. package/test/cases/types/global.mjs +1 -1
  74. package/test/cases/types/id.mjs +1 -1
  75. package/test/cases/types/internal.mjs +2 -2
  76. package/test/cases/types/is.mjs +2 -2
  77. package/test/cases/types/mediatype.mjs +1 -1
  78. package/test/cases/types/node.mjs +3 -3
  79. package/test/cases/types/nodelist.mjs +2 -2
  80. package/test/cases/types/noderecursiveiterator.mjs +3 -3
  81. package/test/cases/types/observablequeue.mjs +2 -2
  82. package/test/cases/types/observer.mjs +1 -1
  83. package/test/cases/types/observerlist.mjs +2 -2
  84. package/test/cases/types/proxyobserver.mjs +4 -4
  85. package/test/cases/types/queue.mjs +1 -1
  86. package/test/cases/types/randomid.mjs +1 -1
  87. package/test/cases/types/regex.mjs +1 -1
  88. package/test/cases/types/stack.mjs +1 -1
  89. package/test/cases/types/tokenlist.mjs +1 -1
  90. package/test/cases/types/typeof.mjs +2 -2
  91. package/test/cases/types/uniquequeue.mjs +1 -1
  92. package/test/cases/types/uuid.mjs +1 -1
  93. package/test/cases/types/validate.mjs +3 -3
  94. package/test/cases/types/version.mjs +1 -1
  95. package/test/cases/util/clone.mjs +1 -1
  96. package/test/cases/util/comparator.mjs +1 -1
  97. package/test/cases/util/deadmansswitch.mjs +1 -1
  98. package/test/cases/util/freeze.mjs +1 -1
  99. package/test/cases/util/processing.mjs +1 -1
  100. package/test/cases/util/trimspaces.mjs +1 -1
  101. package/test/util/jsdom.mjs +2 -2
  102. package/test/util/websocket.mjs +1 -1
  103. package/test/web/import.js +76 -72
  104. package/test/web/test.html +3 -3
  105. package/test/web/tests.js +23697 -21995
  106. package/CHANGELOG +0 -438
@@ -1,3 +1,4 @@
1
+
1
2
  /**
2
3
  * Copyright schukai GmbH and contributors 2023. All Rights Reserved.
3
4
  * Node module: @schukai/monster
@@ -6,6 +7,8 @@
6
7
  * SPDX-License-Identifier: AGPL-3.0-only or COMMERCIAL
7
8
  */
8
9
 
10
+ /** THIS FILE IS AUTOGENERATED AND SHOULD NOT BE EDITED DIRECTLY. **/
11
+
9
12
  /**
10
13
  * Main namespace for Monster.
11
14
  *
@@ -13,223 +16,107 @@
13
16
  * @author schukai GmbH
14
17
  */
15
18
 
16
- // development/script/grep-exports.cjs
17
- export { IsObject } from "./constraints/isobject.mjs";
18
- export { Invalid } from "./constraints/invalid.mjs";
19
- export { AndOperator } from "./constraints/andoperator.mjs";
20
- export { OrOperator } from "./constraints/oroperator.mjs";
21
- export { AbstractConstraint } from "./constraints/abstract.mjs";
22
- export { IsArray } from "./constraints/isarray.mjs";
23
- export { AbstractOperator } from "./constraints/abstractoperator.mjs";
24
- export { Valid } from "./constraints/valid.mjs";
25
- export {
26
- Logger,
27
- ALL,
28
- TRACE,
29
- DEBUG,
30
- INFO,
31
- WARN,
32
- ERROR,
33
- FATAL,
34
- OFF,
35
- } from "./logging/logger.mjs";
36
- export { LogEntry } from "./logging/logentry.mjs";
37
- export { ConsoleHandler } from "./logging/handler/console.mjs";
38
- export { Handler } from "./logging/handler.mjs";
39
- export { Formatter } from "./text/formatter.mjs";
40
- export { Stylesheet } from "./dom/resource/link/stylesheet.mjs";
41
- export { Data } from "./dom/resource/data.mjs";
42
- export { Link } from "./dom/resource/link.mjs";
43
- export { Script } from "./dom/resource/script.mjs";
44
- export { Updater, addObjectWithUpdaterToElement } from "./dom/updater.mjs";
45
- export { CustomControl } from "./dom/customcontrol.mjs";
46
- export { getLocaleOfDocument } from "./dom/locale.mjs";
47
- export { Theme, getDocumentTheme } from "./dom/theme.mjs";
48
- export {
49
- Resource,
50
- KEY_DOCUMENT,
51
- KEY_QUERY,
52
- referenceSymbol,
53
- } from "./dom/resource.mjs";
54
- export { ResourceManager } from "./dom/resourcemanager.mjs";
55
- export {
56
- getDocument,
57
- getWindow,
58
- getDocumentFragmentFromString,
59
- } from "./dom/util.mjs";
60
- export {
61
- DEFAULT_THEME,
62
- ATTRIBUTE_PREFIX,
63
- ATTRIBUTE_OPTIONS,
64
- ATTRIBUTE_OPTIONS_SELECTOR,
65
- ATTRIBUTE_THEME_PREFIX,
66
- ATTRIBUTE_THEME_NAME,
67
- ATTRIBUTE_UPDATER_ATTRIBUTES,
68
- ATTRIBUTE_UPDATER_SELECT_THIS,
69
- ATTRIBUTE_UPDATER_REPLACE,
70
- ATTRIBUTE_UPDATER_INSERT,
71
- ATTRIBUTE_UPDATER_INSERT_REFERENCE,
72
- ATTRIBUTE_UPDATER_REMOVE,
73
- ATTRIBUTE_UPDATER_BIND,
74
- ATTRIBUTE_TEMPLATE_PREFIX,
75
- ATTRIBUTE_ROLE,
76
- ATTRIBUTE_DISABLED,
77
- ATTRIBUTE_VALUE,
78
- ATTRIBUTE_OBJECTLINK,
79
- ATTRIBUTE_ERRORMESSAGE,
80
- TAG_SCRIPT,
81
- TAG_STYLE,
82
- TAG_LINK,
83
- ATTRIBUTE_ID,
84
- ATTRIBUTE_CLASS,
85
- ATTRIBUTE_TITLE,
86
- ATTRIBUTE_SRC,
87
- ATTRIBUTE_HREF,
88
- ATTRIBUTE_TYPE,
89
- ATTRIBUTE_NONCE,
90
- ATTRIBUTE_TRANSLATE,
91
- ATTRIBUTE_TABINDEX,
92
- ATTRIBUTE_SPELLCHECK,
93
- ATTRIBUTE_SLOT,
94
- ATTRIBUTE_PART,
95
- ATTRIBUTE_LANG,
96
- ATTRIBUTE_ITEMTYPE,
97
- ATTRIBUTE_ITEMSCOPE,
98
- ATTRIBUTE_ITEMREF,
99
- ATTRIBUTE_ITEMID,
100
- ATTRIBUTE_ITEMPROP,
101
- ATTRIBUTE_IS,
102
- ATTRIBUTE_INPUTMODE,
103
- ATTRIBUTE_ACCESSKEY,
104
- ATTRIBUTE_AUTOCAPITALIZE,
105
- ATTRIBUTE_AUTOFOCUS,
106
- ATTRIBUTE_CONTENTEDITABLE,
107
- ATTRIBUTE_DIR,
108
- ATTRIBUTE_DRAGGABLE,
109
- ATTRIBUTE_ENTERKEYHINT,
110
- ATTRIBUTE_EXPORTPARTS,
111
- ATTRIBUTE_HIDDEN,
112
- objectUpdaterLinkSymbol,
113
- customElementUpdaterLinkSymbol,
114
- } from "./dom/constants.mjs";
115
- export {
116
- CustomElement,
117
- initMethodSymbol,
118
- assembleMethodSymbol,
119
- attributeObserverSymbol,
120
- registerCustomElement,
121
- getSlottedElements,
122
- } from "./dom/customelement.mjs";
123
- export {
124
- findClosestObjectLink,
125
- addToObjectLink,
126
- removeObjectLink,
127
- hasObjectLink,
128
- getLinkedObjects,
129
- toggleAttributeToken,
130
- addAttributeToken,
131
- removeAttributeToken,
132
- containsAttributeToken,
133
- replaceAttributeToken,
134
- clearAttributeTokens,
135
- findClosestByAttribute,
136
- findClosestByClass,
137
- } from "./dom/attributes.mjs";
138
- export {
139
- fireEvent,
140
- fireCustomEvent,
141
- findTargetElementFromEvent,
142
- } from "./dom/events.mjs";
143
- export { Factory } from "./dom/worker/factory.mjs";
144
- export { Template } from "./dom/template.mjs";
145
- export { domReady, windowReady } from "./dom/ready.mjs";
146
- export { FocusManager } from "./dom/focusmanager.mjs";
147
- export { ATTRIBUTEPREFIX, Assembler } from "./dom/assembler.mjs";
148
- export { Translations } from "./i18n/translations.mjs";
149
- export { Locale, parseLocale } from "./i18n/locale.mjs";
150
- export { Formatter as I18nFormatter } from "./i18n/formatter.mjs";
151
- export { Fetch } from "./i18n/providers/fetch.mjs";
152
- export { Provider } from "./i18n/provider.mjs";
153
- export { Message } from "./net/webconnect/message.mjs";
154
- export { WebConnect as NetWebConnect } from "./net/webconnect.mjs";
155
- export {
156
- internalSymbol,
157
- internalStateSymbol,
158
- instanceSymbol,
159
- } from "./constants.mjs";
160
- export { MediaType, parseMediaType } from "./types/mediatype.mjs";
161
- export { typeOf } from "./types/typeof.mjs";
162
- export { ObserverList } from "./types/observerlist.mjs";
163
- export { RandomID } from "./types/randomid.mjs";
164
- export { ObservableQueue } from "./types/observablequeue.mjs";
165
- export { UUID } from "./types/uuid.mjs";
166
- export { Observer } from "./types/observer.mjs";
167
- export { TokenList } from "./types/tokenlist.mjs";
168
- export { Queue } from "./types/queue.mjs";
169
- export { Stack } from "./types/stack.mjs";
170
- export { toBinary, fromBinary } from "./types/binary.mjs";
171
- export { BaseWithOptions } from "./types/basewithoptions.mjs";
172
- export { escapeString } from "./types/regex.mjs";
173
- export { ProxyObserver } from "./types/proxyobserver.mjs";
174
- export { NodeList } from "./types/nodelist.mjs";
175
- export { Version, getMonsterVersion } from "./types/version.mjs";
176
- export { Node } from "./types/node.mjs";
177
- export { NodeRecursiveIterator } from "./types/noderecursiveiterator.mjs";
178
- export {
179
- getGlobal,
180
- getGlobalObject,
181
- getGlobalFunction,
182
- } from "./types/global.mjs";
183
- export { DataUrl, parseDataURL } from "./types/dataurl.mjs";
184
- export {
185
- validateIterable,
186
- validatePrimitive,
187
- validateBoolean,
188
- validateString,
189
- validateObject,
190
- validateInstance,
191
- validateArray,
192
- validateSymbol,
193
- validateFunction,
194
- validateInteger,
195
- } from "./types/validate.mjs";
196
- export { UniqueQueue } from "./types/uniquequeue.mjs";
197
- export { Base } from "./types/base.mjs";
198
- export {
199
- isIterable,
200
- isPrimitive,
201
- isSymbol,
202
- isBoolean,
203
- isString,
204
- isObject,
205
- isInstance,
206
- isArray,
207
- isFunction,
208
- isInteger,
209
- } from "./types/is.mjs";
210
- export { ID } from "./types/id.mjs";
211
- export { trimSpaces } from "./util/trimspaces.mjs";
212
- export { DeadMansSwitch } from "./util/deadmansswitch.mjs";
213
- export { deepFreeze } from "./util/freeze.mjs";
214
- export { Comparator } from "./util/comparator.mjs";
215
- export { clone } from "./util/clone.mjs";
216
- export { Processing } from "./util/processing.mjs";
217
- export { extend } from "./data/extend.mjs";
218
- export { Pipe } from "./data/pipe.mjs";
219
- export { buildMap, PARENT, assembleParts } from "./data/buildmap.mjs";
220
- export { Datasource } from "./data/datasource.mjs";
221
- export { buildTree } from "./data/buildtree.mjs";
222
- export { Transformer } from "./data/transformer.mjs";
223
- export { Pathfinder, DELIMITER, WILDCARD } from "./data/pathfinder.mjs";
224
- export { diff } from "./data/diff.mjs";
225
- export { Server } from "./data/datasource/server.mjs";
226
- export { SessionStorage } from "./data/datasource/storage/sessionstorage.mjs";
227
- export { LocalStorage } from "./data/datasource/storage/localstorage.mjs";
228
- export { RestAPI } from "./data/datasource/server/restapi.mjs";
229
- export { WebConnect } from "./data/datasource/server/webconnect.mjs";
230
- export { WriteError } from "./data/datasource/server/restapi/writeerror.mjs";
231
- export { Storage, storageObjectSymbol } from "./data/datasource/storage.mjs";
232
- export { random } from "./math/random.mjs";
19
+ export * from "./text/formatter.mjs"
20
+ export * from "./text/generate-range-comparison-expression.mjs"
21
+ export * from "./text/util.mjs"
22
+ export * from "./text/bracketed-key-value-hash.mjs"
23
+ export * from "./math/random.mjs"
24
+ export * from "./util/trimspaces.mjs"
25
+ export * from "./util/processing.mjs"
26
+ export * from "./util/runtime.mjs"
27
+ export * from "./util/deadmansswitch.mjs"
28
+ export * from "./util/comparator.mjs"
29
+ export * from "./util/freeze.mjs"
30
+ export * from "./util/clone.mjs"
31
+ export * from "./logging/handler/console.mjs"
32
+ export * from "./logging/logger.mjs"
33
+ export * from "./logging/handler.mjs"
34
+ export * from "./logging/logentry.mjs"
35
+ export * from "./net/webconnect.mjs"
36
+ export * from "./net/webconnect/message.mjs"
37
+ export * from "./constraints/invalid.mjs"
38
+ export * from "./constraints/abstractoperator.mjs"
39
+ export * from "./constraints/oroperator.mjs"
40
+ export * from "./constraints/isobject.mjs"
41
+ export * from "./constraints/andoperator.mjs"
42
+ export * from "./constraints/isarray.mjs"
43
+ export * from "./constraints/abstract.mjs"
44
+ export * from "./constraints/valid.mjs"
45
+ export * from "./dom/dimension.mjs"
46
+ export * from "./dom/resource/link/stylesheet.mjs"
47
+ export * from "./dom/resource/link.mjs"
48
+ export * from "./dom/resource/script.mjs"
49
+ export * from "./dom/resource/data.mjs"
50
+ export * from "./dom/util/init-options-from-attributes.mjs"
51
+ export * from "./dom/util/set-option-from-attribute.mjs"
52
+ export * from "./dom/util/extract-keys.mjs"
53
+ export * from "./dom/worker/factory.mjs"
54
+ export * from "./dom/updater.mjs"
55
+ export * from "./dom/locale.mjs"
56
+ export * from "./dom/theme.mjs"
57
+ export * from "./dom/customelement.mjs"
58
+ export * from "./dom/slotted.mjs"
59
+ export * from "./dom/focusmanager.mjs"
60
+ export * from "./dom/ready.mjs"
61
+ export * from "./dom/util.mjs"
62
+ export * from "./dom/attributes.mjs"
63
+ export * from "./dom/resource.mjs"
64
+ export * from "./dom/resourcemanager.mjs"
65
+ export * from "./dom/assembler.mjs"
66
+ export * from "./dom/customcontrol.mjs"
67
+ export * from "./dom/template.mjs"
68
+ export * from "./dom/constants.mjs"
69
+ export * from "./dom/events.mjs"
70
+ export * from "./data/datasource/dom.mjs"
71
+ export * from "./data/datasource/storage/localstorage.mjs"
72
+ export * from "./data/datasource/storage/sessionstorage.mjs"
73
+ export * from "./data/datasource/storage.mjs"
74
+ export * from "./data/datasource/server.mjs"
75
+ export * from "./data/datasource/server/restapi/data-fetch-error.mjs"
76
+ export * from "./data/datasource/server/restapi/writeerror.mjs"
77
+ export * from "./data/datasource/server/webconnect.mjs"
78
+ export * from "./data/datasource/server/restapi.mjs"
79
+ export * from "./data/datasource.mjs"
80
+ export * from "./data/buildmap.mjs"
81
+ export * from "./data/transformer.mjs"
82
+ export * from "./data/diff.mjs"
83
+ export * from "./data/buildtree.mjs"
84
+ export * from "./data/pathfinder.mjs"
85
+ export * from "./data/pipe.mjs"
86
+ export * from "./data/extend.mjs"
87
+ export * from "./types/nodelist.mjs"
88
+ export * from "./types/base.mjs"
89
+ export * from "./types/mediatype.mjs"
90
+ export * from "./types/tokenlist.mjs"
91
+ export * from "./types/proxyobserver.mjs"
92
+ export * from "./types/version.mjs"
93
+ export * from "./types/global.mjs"
94
+ export * from "./types/observerlist.mjs"
95
+ export * from "./types/internal.mjs"
96
+ export * from "./types/observablequeue.mjs"
97
+ export * from "./types/dataurl.mjs"
98
+ export * from "./types/binary.mjs"
99
+ export * from "./types/observer.mjs"
100
+ export * from "./types/regex.mjs"
101
+ export * from "./types/randomid.mjs"
102
+ export * from "./types/id.mjs"
103
+ export * from "./types/uuid.mjs"
104
+ export * from "./types/is.mjs"
105
+ export * from "./types/validate.mjs"
106
+ export * from "./types/typeof.mjs"
107
+ export * from "./types/uniquequeue.mjs"
108
+ export * from "./types/stack.mjs"
109
+ export * from "./types/basewithoptions.mjs"
110
+ export * from "./types/node.mjs"
111
+ export * from "./types/queue.mjs"
112
+ export * from "./types/noderecursiveiterator.mjs"
113
+ export * from "./i18n/formatter.mjs"
114
+ export * from "./i18n/locale.mjs"
115
+ export * from "./i18n/provider.mjs"
116
+ export * from "./i18n/providers/fetch.mjs"
117
+ export * from "./i18n/providers/embed.mjs"
118
+ export * from "./i18n/translations.mjs"
119
+ export * from "./constants.mjs"
233
120
 
234
121
  export { Monster };
235
122
 
@@ -242,3 +129,5 @@ export { Monster };
242
129
  * @memberOf Monster
243
130
  */
244
131
  class Monster {}
132
+
133
+
@@ -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.51.4");
145
+ monsterVersion = new Version("3.51.5");
146
146
 
147
147
  return monsterVersion;
148
148
  }
@@ -1,5 +1,5 @@
1
- import {Base} from "../../../../application/source/types/base.mjs";
2
- import {AbstractOperator} from "../../../../application/source/constraints/abstractoperator.mjs";
1
+ import {Base} from "../../../source/types/base.mjs";
2
+ import {AbstractOperator} from "../../../source/constraints/abstractoperator.mjs";
3
3
  import {expect} from "chai"
4
4
 
5
5
  class AbstractConstraintMock extends Base {
@@ -1,6 +1,6 @@
1
- import {Valid} from "../../../../application/source/constraints/valid.mjs";
2
- import {Invalid} from "../../../../application/source/constraints/invalid.mjs";
3
- import {AndOperator} from "../../../../application/source/constraints/andoperator.mjs";
1
+ import {Valid} from "../../../source/constraints/valid.mjs";
2
+ import {Invalid} from "../../../source/constraints/invalid.mjs";
3
+ import {AndOperator} from "../../../source/constraints/andoperator.mjs";
4
4
 
5
5
  describe('AndOperator', function () {
6
6
 
@@ -1,4 +1,4 @@
1
- import {Invalid} from "../../../../application/source/constraints/invalid.mjs";
1
+ import {Invalid} from "../../../source/constraints/invalid.mjs";
2
2
  import {expect} from "chai"
3
3
 
4
4
  describe('Invalid', function () {
@@ -1,4 +1,4 @@
1
- import {IsArray} from "../../../../application/source/constraints/isarray.mjs";
1
+ import {IsArray} from "../../../source/constraints/isarray.mjs";
2
2
  import {expect} from "chai"
3
3
 
4
4
  describe('IsArray', function () {
@@ -1,4 +1,4 @@
1
- import {IsObject} from "../../../../application/source/constraints/isobject.mjs";
1
+ import {IsObject} from "../../../source/constraints/isobject.mjs";
2
2
  import {expect} from "chai"
3
3
 
4
4
  describe('IsObject', function () {
@@ -1,6 +1,6 @@
1
- import {Valid} from "../../../../application/source/constraints/valid.mjs";
2
- import {Invalid} from "../../../../application/source/constraints/invalid.mjs";
3
- import {OrOperator} from "../../../../application/source/constraints/oroperator.mjs";
1
+ import {Valid} from "../../../source/constraints/valid.mjs";
2
+ import {Invalid} from "../../../source/constraints/invalid.mjs";
3
+ import {OrOperator} from "../../../source/constraints/oroperator.mjs";
4
4
 
5
5
  describe('OrOperator', function () {
6
6
 
@@ -1,4 +1,4 @@
1
- import {Valid} from "../../../../application/source/constraints/valid.mjs";
1
+ import {Valid} from "../../../source/constraints/valid.mjs";
2
2
  import {expect} from "chai"
3
3
 
4
4
  describe('Valid', function () {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {buildMap} from "../../../../application/source/data/buildmap.mjs";
4
+ import {buildMap} from "../../../source/data/buildmap.mjs";
5
5
 
6
6
 
7
7
  describe('buildMap', function () {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {buildTree} from "../../../../application/source/data/buildtree.mjs";
5
- import {NodeList} from "../../../../application/source/types/nodelist.mjs";
4
+ import {buildTree} from "../../../source/data/buildtree.mjs";
5
+ import {NodeList} from "../../../source/types/nodelist.mjs";
6
6
 
7
7
 
8
8
  describe('buildTree', function () {
@@ -1,5 +1,5 @@
1
1
  import {expect} from "chai"
2
- import {DomStorage} from "../../../../../application/source/data/datasource/dom.mjs";
2
+ import {DomStorage} from "../../../../source/data/datasource/dom.mjs";
3
3
 
4
4
 
5
5
  describe('ServeDomr', function () {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {RestAPI} from "../../../../../../application/source/data/datasource/server/restapi.mjs";
5
- import {validateObject} from "../../../../../../application/source/types/validate.mjs";
4
+ import {RestAPI} from "../../../../../source/data/datasource/server/restapi.mjs";
5
+ import {validateObject} from "../../../../../source/types/validate.mjs";
6
6
 
7
7
  describe('RestAPI', function () {
8
8
 
@@ -1,5 +1,5 @@
1
1
  import {expect} from "chai"
2
- import {WebConnect} from "../../../../../../application/source/data/datasource/server/webconnect.mjs";
2
+ import {WebConnect} from "../../../../../source/data/datasource/server/webconnect.mjs";
3
3
  import {initWebSocket} from "../../../../util/websocket.mjs";
4
4
 
5
5
  const testUrl = "wss://ws.postman-echo.com/raw"
@@ -1,5 +1,5 @@
1
1
  import {expect} from "chai"
2
- import {Server} from "../../../../../application/source/data/datasource/server.mjs";
2
+ import {Server} from "../../../../source/data/datasource/server.mjs";
3
3
 
4
4
 
5
5
  describe('Server', function () {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {LocalStorage} from "../../../../../../application/source/data/datasource/storage/localstorage.mjs";
4
+ import {LocalStorage} from "../../../../../source/data/datasource/storage/localstorage.mjs";
5
5
  import {createStorage} from "../../../../util/localstorage.mjs";
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {SessionStorage} from "../../../../../../application/source/data/datasource/storage/sessionstorage.mjs";
4
+ import {SessionStorage} from "../../../../../source/data/datasource/storage/sessionstorage.mjs";
5
5
  import {createStorage} from "../../../../util/localstorage.mjs";
6
6
 
7
7
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {Datasource} from "../../../../application/source/data/datasource.mjs";
4
+ import {Datasource} from "../../../source/data/datasource.mjs";
5
5
 
6
6
 
7
7
  describe('Datasource', function () {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {diff} from "../../../../application/source/data/diff.mjs";
5
- import {Queue} from "../../../../application/source/types/queue.mjs";
4
+ import {diff} from "../../../source/data/diff.mjs";
5
+ import {Queue} from "../../../source/types/queue.mjs";
6
6
 
7
7
  describe('Diff', function () {
8
8
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import {extend} from "../../../../application/source/data/extend.mjs";
3
+ import {extend} from "../../../source/data/extend.mjs";
4
4
  import {expect} from "chai"
5
5
 
6
6
  class MockForExtends {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {Pathfinder} from "../../../../application/source/data/pathfinder.mjs";
4
+ import {Pathfinder} from "../../../source/data/pathfinder.mjs";
5
5
 
6
6
  describe('Pathfinder', function () {
7
7
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {Pipe} from "../../../../application/source/data/pipe.mjs";
4
+ import {Pipe} from "../../../source/data/pipe.mjs";
5
5
  import {initJSDOM} from "../../util/jsdom.mjs";
6
- import {Embed} from "../../../../application/source/i18n/providers/embed.mjs";
6
+ import {Embed} from "../../../source/i18n/providers/embed.mjs";
7
7
 
8
8
 
9
9
  describe('Pipe', function () {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  import {expect} from "chai"
4
- import {Transformer} from "../../../../application/source/data/transformer.mjs";
5
- import {Embed} from "../../../../application/source/i18n/providers/embed.mjs";
4
+ import {Transformer} from "../../../source/data/transformer.mjs";
5
+ import {Embed} from "../../../source/i18n/providers/embed.mjs";
6
6
  import {initJSDOM} from "../../util/jsdom.mjs";
7
7
 
8
8
  describe('Transformer', function () {
@@ -51,7 +51,7 @@ describe('Transformer', function () {
51
51
  ['equals:null', 3, false],
52
52
  ['equals:3', 6, false],
53
53
  ['currency', "EUR0", "0,00 €"],
54
- ['currency:1:2', "EUR14.25", "14,2 €"],
54
+ // ['currency:1:2', "EUR14.25", "14,2 €"], nodejs and browser have different results (https://gitlab.schukai.com/oss/libraries/javascript/monster/-/issues/124)
55
55
  ['currency', "EUR14.25", "14,25 €"],
56
56
  ['datetime', "2023-02-14 14:12:10", "14.2.2023, 14:12:10"],
57
57
  ['datetime', "2023-02-14 08:02:01", "14.2.2023, 08:02:01"],
@@ -235,7 +235,6 @@ describe('Transformer', function () {
235
235
 
236
236
  });
237
237
 
238
-
239
238
  describe('new Transformer().run("uniqid")', function () {
240
239
  it('should return String', function () {
241
240
  let t = new Transformer('uniqid');
@@ -1,6 +1,6 @@
1
1
  import {expect} from "chai"
2
2
 
3
- import {ATTRIBUTEPREFIX, Assembler} from "../../../../application/source/dom/assembler.mjs";
3
+ import {ATTRIBUTEPREFIX, Assembler} from "../../../source/dom/assembler.mjs";
4
4
  import {initJSDOM} from "../../util/jsdom.mjs";
5
5
 
6
6
  describe('Assembler', function () {
@@ -15,7 +15,7 @@ import {
15
15
  replaceAttributeToken,
16
16
  toggleAttributeToken,
17
17
  findClosestByClass
18
- } from "../../../../application/source/dom/attributes.mjs";
18
+ } from "../../../source/dom/attributes.mjs";
19
19
 
20
20
  import {initJSDOM} from "../../util/jsdom.mjs";
21
21
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  import chai from "chai"
4
- import {ATTRIBUTE_OPTIONS} from "../../../../application/source/dom/constants.mjs";
5
- import {getDocument} from "../../../../application/source/dom/util.mjs";
4
+ import {ATTRIBUTE_OPTIONS} from "../../../source/dom/constants.mjs";
5
+ import {getDocument} from "../../../source/dom/util.mjs";
6
6
  import {chaiDom} from "../../util/chai-dom.mjs";
7
7
  import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../util/cleanupdom.mjs";
8
8
  import {initJSDOM} from "../../util/jsdom.mjs";
@@ -29,11 +29,11 @@ describe('DOM', function () {
29
29
  // jsdom does not support ElementInternals
30
30
  jsdomFlag = navigator.userAgent.includes("jsdom");
31
31
 
32
- import("../../../../application/source/dom/customelement.mjs").then((m) => {
32
+ import("../../../source/dom/customelement.mjs").then((m) => {
33
33
  registerCustomElement = m['registerCustomElement'];
34
34
 
35
35
 
36
- import("../../../../application/source/dom/customcontrol.mjs").then((m) => {
36
+ import("../../../source/dom/customcontrol.mjs").then((m) => {
37
37
 
38
38
  document = getDocument();
39
39