@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.
- package/CHANGELOG.md +689 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/source/monster.mjs +106 -217
- package/source/types/version.mjs +1 -1
- package/test/cases/constraint/abstractoperator.mjs +2 -2
- package/test/cases/constraint/andoperator.mjs +3 -3
- package/test/cases/constraint/invalid.mjs +1 -1
- package/test/cases/constraint/isarray.mjs +1 -1
- package/test/cases/constraint/isobject.mjs +1 -1
- package/test/cases/constraint/oroperator.mjs +3 -3
- package/test/cases/constraint/valid.mjs +1 -1
- package/test/cases/data/buildmap.mjs +1 -1
- package/test/cases/data/buildtree.mjs +2 -2
- package/test/cases/data/datasource/dom.mjs +1 -1
- package/test/cases/data/datasource/server/restapi.mjs +2 -2
- package/test/cases/data/datasource/server/websocket.mjs +1 -1
- package/test/cases/data/datasource/server.mjs +1 -1
- package/test/cases/data/datasource/storage/localstorage.mjs +1 -1
- package/test/cases/data/datasource/storage/sessionstorage.mjs +1 -1
- package/test/cases/data/datasource.mjs +1 -1
- package/test/cases/data/diff.mjs +2 -2
- package/test/cases/data/extend.mjs +1 -1
- package/test/cases/data/pathfinder.mjs +1 -1
- package/test/cases/data/pipe.mjs +2 -2
- package/test/cases/data/transformer.mjs +3 -4
- package/test/cases/dom/assembler.mjs +1 -1
- package/test/cases/dom/attributes.mjs +1 -1
- package/test/cases/dom/customcontrol.mjs +4 -4
- package/test/cases/dom/customelement-initfromscripthost.mjs +6 -6
- package/test/cases/dom/customelement.mjs +7 -7
- package/test/cases/dom/dimension.mjs +4 -4
- package/test/cases/dom/events.mjs +1 -1
- package/test/cases/dom/find.mjs +1 -1
- package/test/cases/dom/focusmanager.mjs +1 -1
- package/test/cases/dom/locale.mjs +2 -2
- package/test/cases/dom/ready.mjs +1 -1
- package/test/cases/dom/resource/data.mjs +3 -3
- package/test/cases/dom/resource/link/stylesheet.mjs +3 -3
- package/test/cases/dom/resource/link.mjs +3 -3
- package/test/cases/dom/resource/script.mjs +3 -3
- package/test/cases/dom/resource.mjs +1 -1
- package/test/cases/dom/resourcemanager.mjs +1 -1
- package/test/cases/dom/slotted-nodes.mjs +1 -1
- package/test/cases/dom/template.mjs +2 -2
- package/test/cases/dom/theme.mjs +2 -2
- package/test/cases/dom/updater.mjs +4 -4
- package/test/cases/dom/util/extract-keys.mjs +1 -1
- package/test/cases/dom/util/init-options-from-attributes.mjs +1 -1
- package/test/cases/dom/util.mjs +2 -2
- package/test/cases/dom/worker/factory.mjs +2 -2
- package/test/cases/i18n/formatter.mjs +2 -2
- package/test/cases/i18n/locale.mjs +1 -1
- package/test/cases/i18n/provider.mjs +4 -4
- package/test/cases/i18n/providers/embed.mjs +3 -3
- package/test/cases/i18n/providers/fetch.mjs +3 -3
- package/test/cases/i18n/translations.mjs +3 -3
- package/test/cases/logging/handler/console.mjs +3 -3
- package/test/cases/logging/handler.mjs +3 -3
- package/test/cases/logging/logentry.mjs +1 -1
- package/test/cases/logging/logger.mjs +1 -1
- package/test/cases/math/random.mjs +1 -1
- package/test/cases/monster.mjs +2 -2
- package/test/cases/net/webconnect/message.mjs +1 -1
- package/test/cases/net/webconnect.mjs +3 -3
- package/test/cases/text/bracketed-key-value-hash.mjs +1 -1
- package/test/cases/text/formatter.mjs +1 -1
- package/test/cases/text/util.mjs +1 -1
- package/test/cases/types/base.mjs +2 -2
- package/test/cases/types/basewithoptions.mjs +1 -1
- package/test/cases/types/binary.mjs +1 -1
- package/test/cases/types/dataurl.mjs +1 -1
- package/test/cases/types/global.mjs +1 -1
- package/test/cases/types/id.mjs +1 -1
- package/test/cases/types/internal.mjs +2 -2
- package/test/cases/types/is.mjs +2 -2
- package/test/cases/types/mediatype.mjs +1 -1
- package/test/cases/types/node.mjs +3 -3
- package/test/cases/types/nodelist.mjs +2 -2
- package/test/cases/types/noderecursiveiterator.mjs +3 -3
- package/test/cases/types/observablequeue.mjs +2 -2
- package/test/cases/types/observer.mjs +1 -1
- package/test/cases/types/observerlist.mjs +2 -2
- package/test/cases/types/proxyobserver.mjs +4 -4
- package/test/cases/types/queue.mjs +1 -1
- package/test/cases/types/randomid.mjs +1 -1
- package/test/cases/types/regex.mjs +1 -1
- package/test/cases/types/stack.mjs +1 -1
- package/test/cases/types/tokenlist.mjs +1 -1
- package/test/cases/types/typeof.mjs +2 -2
- package/test/cases/types/uniquequeue.mjs +1 -1
- package/test/cases/types/uuid.mjs +1 -1
- package/test/cases/types/validate.mjs +3 -3
- package/test/cases/types/version.mjs +1 -1
- package/test/cases/util/clone.mjs +1 -1
- package/test/cases/util/comparator.mjs +1 -1
- package/test/cases/util/deadmansswitch.mjs +1 -1
- package/test/cases/util/freeze.mjs +1 -1
- package/test/cases/util/processing.mjs +1 -1
- package/test/cases/util/trimspaces.mjs +1 -1
- package/test/util/jsdom.mjs +2 -2
- package/test/util/websocket.mjs +1 -1
- package/test/web/import.js +76 -72
- package/test/web/test.html +3 -3
- package/test/web/tests.js +23697 -21995
- package/CHANGELOG +0 -438
package/source/monster.mjs
CHANGED
@@ -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
|
-
|
17
|
-
export
|
18
|
-
export
|
19
|
-
export
|
20
|
-
export
|
21
|
-
export
|
22
|
-
export
|
23
|
-
export
|
24
|
-
export
|
25
|
-
export
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
export
|
37
|
-
export
|
38
|
-
export
|
39
|
-
export
|
40
|
-
export
|
41
|
-
export
|
42
|
-
export
|
43
|
-
export
|
44
|
-
export
|
45
|
-
export
|
46
|
-
export
|
47
|
-
export
|
48
|
-
export
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
export
|
55
|
-
export
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
export
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
export
|
116
|
-
|
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
|
+
|
package/source/types/version.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import {Base} from "
|
2
|
-
import {AbstractOperator} from "
|
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 "
|
2
|
-
import {Invalid} from "
|
3
|
-
import {AndOperator} from "
|
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,6 +1,6 @@
|
|
1
|
-
import {Valid} from "
|
2
|
-
import {Invalid} from "
|
3
|
-
import {OrOperator} from "
|
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,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {buildTree} from "
|
5
|
-
import {NodeList} from "
|
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,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {RestAPI} from "
|
5
|
-
import {validateObject} from "
|
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 "
|
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,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {LocalStorage} from "
|
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 "
|
4
|
+
import {SessionStorage} from "../../../../../source/data/datasource/storage/sessionstorage.mjs";
|
5
5
|
import {createStorage} from "../../../../util/localstorage.mjs";
|
6
6
|
|
7
7
|
|
package/test/cases/data/diff.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {diff} from "
|
5
|
-
import {Queue} from "
|
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
|
|
package/test/cases/data/pipe.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {Pipe} from "
|
4
|
+
import {Pipe} from "../../../source/data/pipe.mjs";
|
5
5
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
6
|
-
import {Embed} from "
|
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 "
|
5
|
-
import {Embed} from "
|
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
|
-
|
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 "
|
3
|
+
import {ATTRIBUTEPREFIX, Assembler} from "../../../source/dom/assembler.mjs";
|
4
4
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
5
5
|
|
6
6
|
describe('Assembler', function () {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {ATTRIBUTE_OPTIONS} from "
|
5
|
-
import {getDocument} from "
|
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("
|
32
|
+
import("../../../source/dom/customelement.mjs").then((m) => {
|
33
33
|
registerCustomElement = m['registerCustomElement'];
|
34
34
|
|
35
35
|
|
36
|
-
import("
|
36
|
+
import("../../../source/dom/customcontrol.mjs").then((m) => {
|
37
37
|
|
38
38
|
document = getDocument();
|
39
39
|
|