@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
@@ -1,11 +1,11 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
// import {internalSymbol} from "
|
5
|
-
// import {ATTRIBUTE_OPTIONS} from "
|
6
|
-
import {getDocument} from "
|
7
|
-
// import {ProxyObserver} from "
|
8
|
-
// import {addObjectWithUpdaterToElement} from "
|
4
|
+
// import {internalSymbol} from "../../../source/constants.mjs";
|
5
|
+
// import {ATTRIBUTE_OPTIONS} from "../../../source/dom/constants.mjs";
|
6
|
+
import {getDocument} from "../../../source/dom/util.mjs";
|
7
|
+
// import {ProxyObserver} from "../../../source/types/proxyobserver.mjs";
|
8
|
+
// import {addObjectWithUpdaterToElement} from "../../../source/dom/updater.mjs";
|
9
9
|
import {chaiDom} from "../../util/chai-dom.mjs";
|
10
10
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
11
11
|
|
@@ -40,7 +40,7 @@ describe('DOM', function () {
|
|
40
40
|
before(function (done) {
|
41
41
|
initJSDOM().then(() => {
|
42
42
|
|
43
|
-
import("
|
43
|
+
import("../../../source/dom/customelement.mjs").then((m) => {
|
44
44
|
|
45
45
|
try {
|
46
46
|
CustomElement = m['CustomElement'];
|
@@ -1,11 +1,11 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {internalSymbol} from "
|
5
|
-
import {ATTRIBUTE_OPTIONS} from "
|
6
|
-
import {getDocument} from "
|
7
|
-
import {ProxyObserver} from "
|
8
|
-
import {addObjectWithUpdaterToElement} from "
|
4
|
+
import {internalSymbol} from "../../../source/constants.mjs";
|
5
|
+
import {ATTRIBUTE_OPTIONS} from "../../../source/dom/constants.mjs";
|
6
|
+
import {getDocument} from "../../../source/dom/util.mjs";
|
7
|
+
import {ProxyObserver} from "../../../source/types/proxyobserver.mjs";
|
8
|
+
import {addObjectWithUpdaterToElement} from "../../../source/dom/updater.mjs";
|
9
9
|
import {chaiDom} from "../../util/chai-dom.mjs";
|
10
10
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
11
11
|
|
@@ -37,7 +37,7 @@ describe('DOM', function () {
|
|
37
37
|
|
38
38
|
before(function (done) {
|
39
39
|
initJSDOM().then(() => {
|
40
|
-
import("
|
40
|
+
import("../../../source/dom/customelement.mjs").then((m) => {
|
41
41
|
try {
|
42
42
|
CustomElement = m['CustomElement'];
|
43
43
|
assignUpdaterToElement= function (elements, object) {
|
@@ -146,7 +146,7 @@ describe('DOM', function () {
|
|
146
146
|
before(function (done) {
|
147
147
|
initJSDOM().then(() => {
|
148
148
|
|
149
|
-
import("
|
149
|
+
import("../../../source/dom/customelement.mjs").then((m) => {
|
150
150
|
|
151
151
|
try {
|
152
152
|
CustomElement = m['CustomElement'];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {expect} from 'chai';
|
2
|
-
import {convertToPixels, getDeviceDPI} from "
|
3
|
-
import {getWindow} from "
|
2
|
+
import {convertToPixels, getDeviceDPI} from "../../../source/dom/dimension.mjs";
|
3
|
+
import {getWindow} from "../../../source/dom/util.mjs";
|
4
4
|
import {initJSDOM, isBrowser, JSDOMExport as JSDOM} from "../../util/jsdom.mjs";
|
5
|
-
import {getGlobal} from "
|
6
|
-
import {detectRuntimeEnvironment} from "
|
5
|
+
import {getGlobal} from "../../../source/types/global.mjs";
|
6
|
+
import {detectRuntimeEnvironment} from "../../../source/util/runtime.mjs";
|
7
7
|
|
8
8
|
|
9
9
|
function getMockWindow(dpi) {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
4
|
|
5
|
-
import {fireEvent, findTargetElementFromEvent, fireCustomEvent} from "
|
5
|
+
import {fireEvent, findTargetElementFromEvent, fireCustomEvent} from "../../../source/dom/events.mjs";
|
6
6
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
7
7
|
|
8
8
|
describe('Events', function () {
|
package/test/cases/dom/find.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import {expect} from "chai";
|
4
|
-
import {FocusManager} from "
|
4
|
+
import {FocusManager} from "../../../source/dom/focusmanager.mjs";
|
5
5
|
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../util/cleanupdom.mjs";
|
6
6
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
7
7
|
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
4
|
|
5
|
-
import {Locale} from "
|
6
|
-
import {getLocaleOfDocument} from "
|
5
|
+
import {Locale} from "../../../source/i18n/locale.mjs";
|
6
|
+
import {getLocaleOfDocument} from "../../../source/dom/locale.mjs";
|
7
7
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
8
8
|
|
9
9
|
describe('Attributes', function () {
|
package/test/cases/dom/ready.mjs
CHANGED
@@ -11,7 +11,7 @@ describe('Ready', function () {
|
|
11
11
|
before(function (done) {
|
12
12
|
initJSDOM().then(() => {
|
13
13
|
|
14
|
-
import("
|
14
|
+
import("../../../source/dom/ready.mjs").then((m) => {
|
15
15
|
domReady = m['domReady'];
|
16
16
|
windowReady = m['windowReady'];
|
17
17
|
done()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {Data} from "
|
5
|
-
import {DataUrl} from "
|
6
|
-
import {ID} from "
|
4
|
+
import {Data} from "../../../../source/dom/resource/data.mjs";
|
5
|
+
import {DataUrl} from "../../../../source/types/dataurl.mjs";
|
6
|
+
import {ID} from "../../../../source/types/id.mjs";
|
7
7
|
import {chaiDom} from "../../../util/chai-dom.mjs";
|
8
8
|
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../util/cleanupdom.mjs";
|
9
9
|
import {initJSDOM} from "../../../util/jsdom.mjs";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {Stylesheet} from "
|
5
|
-
import {DataUrl} from "
|
6
|
-
import {ID} from "
|
4
|
+
import {Stylesheet} from "../../../../../source/dom/resource/link/stylesheet.mjs";
|
5
|
+
import {DataUrl} from "../../../../../source/types/dataurl.mjs";
|
6
|
+
import {ID} from "../../../../../source/types/id.mjs";
|
7
7
|
import {chaiDom} from "../../../../util/chai-dom.mjs";
|
8
8
|
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../../util/cleanupdom.mjs";
|
9
9
|
import {initJSDOM} from "../../../../util/jsdom.mjs";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {Link} from "
|
5
|
-
import {DataUrl} from "
|
6
|
-
import {ID} from "
|
4
|
+
import {Link} from "../../../../source/dom/resource/link.mjs";
|
5
|
+
import {DataUrl} from "../../../../source/types/dataurl.mjs";
|
6
|
+
import {ID} from "../../../../source/types/id.mjs";
|
7
7
|
import {chaiDom} from "../../../util/chai-dom.mjs";
|
8
8
|
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../util/cleanupdom.mjs";
|
9
9
|
import {initJSDOM} from "../../../util/jsdom.mjs";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {Script} from "
|
5
|
-
import {DataUrl} from "
|
6
|
-
import {ID} from "
|
4
|
+
import {Script} from "../../../../source/dom/resource/script.mjs";
|
5
|
+
import {DataUrl} from "../../../../source/types/dataurl.mjs";
|
6
|
+
import {ID} from "../../../../source/types/id.mjs";
|
7
7
|
import {chaiDom} from "../../../util/chai-dom.mjs";
|
8
8
|
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../../util/cleanupdom.mjs";
|
9
9
|
import {initJSDOM} from "../../../util/jsdom.mjs";
|
@@ -12,7 +12,7 @@ describe('Resource', function() {
|
|
12
12
|
before(function (done) {
|
13
13
|
initJSDOM().then(() => {
|
14
14
|
|
15
|
-
import("
|
15
|
+
import("../../../source/dom/resource.mjs").then((m) => {
|
16
16
|
Resource = m['Resource'];
|
17
17
|
|
18
18
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
4
|
|
5
|
-
import {ResourceManager} from "
|
5
|
+
import {ResourceManager} from "../../../source/dom/resourcemanager.mjs";
|
6
6
|
import {cleanupDOMFromTesting, initMutationObserverForTesting} from "../../util/cleanupdom.mjs";
|
7
7
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
8
8
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {ATTRIBUTE_THEME_NAME} from "
|
4
|
+
import {ATTRIBUTE_THEME_NAME} from "../../../source/dom/constants.mjs";
|
5
5
|
|
6
|
-
import {findDocumentTemplate, Template} from "
|
6
|
+
import {findDocumentTemplate, Template} from "../../../source/dom/template.mjs";
|
7
7
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
8
8
|
|
9
9
|
|
package/test/cases/dom/theme.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
import {getDocumentFragmentFromString} from "
|
3
|
+
import {getDocumentFragmentFromString} from "../../../source/dom/util.mjs";
|
4
4
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
5
5
|
import {expect} from "chai"
|
6
|
-
import {Theme, getDocumentTheme} from "
|
6
|
+
import {Theme, getDocumentTheme} from "../../../source/dom/theme.mjs";
|
7
7
|
|
8
8
|
describe('Theme', function () {
|
9
9
|
before(function (done) {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import chai from "chai"
|
4
|
-
import {Updater} from "
|
5
|
-
import {ID} from "
|
6
|
-
import {Observer} from "
|
7
|
-
import {ProxyObserver} from "
|
4
|
+
import {Updater} from "../../../source/dom/updater.mjs";
|
5
|
+
import {ID} from "../../../source/types/id.mjs";
|
6
|
+
import {Observer} from "../../../source/types/observer.mjs";
|
7
|
+
import {ProxyObserver} from "../../../source/types/proxyobserver.mjs";
|
8
8
|
import {chaiDom} from "../../util/chai-dom.mjs";
|
9
9
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
10
10
|
|
@@ -9,7 +9,7 @@ describe('initOptionsFromAttributes', () => {
|
|
9
9
|
|
10
10
|
before( function (done) {
|
11
11
|
initJSDOM().then(() => {
|
12
|
-
import("
|
12
|
+
import("../../../../source/dom/util/init-options-from-attributes.mjs").then((m) => {
|
13
13
|
initOptionsFromAttributes = m['initOptionsFromAttributes'];
|
14
14
|
done();
|
15
15
|
})
|
package/test/cases/dom/util.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
getDocument, getWindow, getDocumentFragmentFromString
|
3
|
-
} from "
|
3
|
+
} from "../../../source/dom/util.mjs";
|
4
4
|
|
5
|
-
import {getContainingDocument} from "
|
5
|
+
import {getContainingDocument} from "../../../source/dom/util.mjs";
|
6
6
|
|
7
7
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
8
8
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {expect} from "chai"
|
2
2
|
|
3
|
-
import {Factory} from "
|
4
|
-
import {getGlobal} from "
|
3
|
+
import {Factory} from "../../../../source/dom/worker/factory.mjs";
|
4
|
+
import {getGlobal} from "../../../../source/types/global.mjs";
|
5
5
|
import {initJSDOM, isNode} from "../../../util/jsdom.mjs";
|
6
6
|
|
7
7
|
const global = getGlobal();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {Formatter} from "
|
3
|
-
import {Translations} from "
|
2
|
+
import {Formatter} from "../../../source/i18n/formatter.mjs";
|
3
|
+
import {Translations} from "../../../source/i18n/translations.mjs";
|
4
4
|
|
5
5
|
|
6
6
|
describe('Formatter', function () {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {ATTRIBUTE_OBJECTLINK} from "
|
3
|
-
import {getLinkedObjects} from "
|
4
|
-
import {Provider} from "
|
2
|
+
import {ATTRIBUTE_OBJECTLINK} from "../../../source/dom/constants.mjs";
|
3
|
+
import {getLinkedObjects} from "../../../source/dom/attributes.mjs";
|
4
|
+
import {Provider} from "../../../source/i18n/provider.mjs";
|
5
5
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
6
|
-
import {getDocumentTranslations, Translations} from "
|
6
|
+
import {getDocumentTranslations, Translations} from "../../../source/i18n/translations.mjs";
|
7
7
|
|
8
8
|
describe('Provider', function () {
|
9
9
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {expect} from "chai"
|
2
2
|
|
3
3
|
|
4
|
-
import {Embed} from "
|
5
|
-
import {Translations} from "
|
6
|
-
import {getGlobal} from "
|
4
|
+
import {Embed} from "../../../../source/i18n/providers/embed.mjs";
|
5
|
+
import {Translations} from "../../../../source/i18n/translations.mjs";
|
6
|
+
import {getGlobal} from "../../../../source/types/global.mjs";
|
7
7
|
import {initJSDOM} from "../../../util/jsdom.mjs";
|
8
8
|
|
9
9
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {expect} from "chai"
|
2
2
|
|
3
3
|
|
4
|
-
import {Fetch} from "
|
5
|
-
import {Translations} from "
|
6
|
-
import {getGlobal} from "
|
4
|
+
import {Fetch} from "../../../../source/i18n/providers/fetch.mjs";
|
5
|
+
import {Translations} from "../../../../source/i18n/translations.mjs";
|
6
|
+
import {getGlobal} from "../../../../source/types/global.mjs";
|
7
7
|
|
8
8
|
|
9
9
|
const global = getGlobal();
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {parseLocale} from "
|
3
|
-
import {Embed} from "
|
2
|
+
import {parseLocale} from "../../../source/i18n/locale.mjs";
|
3
|
+
import {Embed} from "../../../source/i18n/providers/embed.mjs";
|
4
4
|
import {
|
5
5
|
Translations,
|
6
6
|
getDocumentTranslations
|
7
7
|
|
8
|
-
} from "
|
8
|
+
} from "../../../source/i18n/translations.mjs";
|
9
9
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
10
10
|
|
11
11
|
describe('Translations', function () {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {expect} from "chai";
|
2
|
-
import {ConsoleHandler} from "
|
3
|
-
import {LogEntry} from "
|
4
|
-
import {TRACE, WARN, DEBUG, ERROR, FATAL, INFO} from "
|
2
|
+
import {ConsoleHandler} from "../../../../source/logging/handler/console.mjs";
|
3
|
+
import {LogEntry} from "../../../../source/logging/logentry.mjs";
|
4
|
+
import {TRACE, WARN, DEBUG, ERROR, FATAL, INFO} from "../../../../source/logging/logger.mjs";
|
5
5
|
|
6
6
|
describe('Logging', function () {
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {expect} from "chai";
|
2
|
-
import {ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF} from "
|
3
|
-
import {Handler} from "
|
4
|
-
import {LogEntry} from "
|
2
|
+
import {ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF} from "../../../source/logging/logger.mjs";
|
3
|
+
import {Handler} from "../../../source/logging/handler.mjs";
|
4
|
+
import {LogEntry} from "../../../source/logging/logentry.mjs";
|
5
5
|
|
6
6
|
describe('Logging', function () {
|
7
7
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {Logger, OFF, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL} from "
|
2
|
+
import {Logger, OFF, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL} from "../../../source/logging/logger.mjs";
|
3
3
|
|
4
4
|
|
5
5
|
describe('Logging', function () {
|
package/test/cases/monster.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {Version, getMonsterVersion} from "
|
2
|
+
import {Version, getMonsterVersion} from "../../source/types/version.mjs";
|
3
3
|
|
4
4
|
describe('Monster', function () {
|
5
5
|
|
@@ -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.51.
|
10
|
+
monsterVersion = new Version("3.51.5")
|
11
11
|
|
12
12
|
let m = getMonsterVersion();
|
13
13
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {WebConnect} from "
|
3
|
-
import {Message} from "
|
4
|
-
import {Observer} from "
|
2
|
+
import {WebConnect} from "../../../source/net/webconnect.mjs";
|
3
|
+
import {Message} from "../../../source/net/webconnect/message.mjs";
|
4
|
+
import {Observer} from "../../../source/types/observer.mjs";
|
5
5
|
import {initWebSocket} from "../../util/websocket.mjs";
|
6
6
|
|
7
7
|
const testUrl = "wss://ws.postman-echo.com/raw"
|
@@ -3,7 +3,7 @@ import {expect} from "chai";
|
|
3
3
|
import {
|
4
4
|
parseBracketedKeyValueHash,
|
5
5
|
createBracketedKeyValueHash
|
6
|
-
} from "
|
6
|
+
} from "../../../source/text/bracketed-key-value-hash.mjs";
|
7
7
|
|
8
8
|
describe("parseBracketedKeyValueHash", () => {
|
9
9
|
it("should return an empty object for an empty string", () => {
|
package/test/cases/text/util.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import {expect} from "chai"
|
2
|
-
import {generateRangeComparisonExpression} from "
|
2
|
+
import {generateRangeComparisonExpression} from "../../../source/text/util.mjs";
|
3
3
|
|
4
4
|
describe('generateRangeComparisonExpression', () => {
|
5
5
|
it('should generate correct comparison expression for single values', () => {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {Base} from "
|
5
|
-
import {instanceSymbol} from "
|
4
|
+
import {Base} from "../../../source/types/base.mjs";
|
5
|
+
import {instanceSymbol} from "../../../source/constants.mjs";
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {getGlobal, getGlobalObject, getGlobalFunction} from "
|
1
|
+
import {getGlobal, getGlobalObject, getGlobalFunction} from "../../../source/types/global.mjs";
|
2
2
|
import {expect} from "chai"
|
3
3
|
|
4
4
|
describe('Global', function () {
|
package/test/cases/types/id.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {equipWithInternal} from "
|
5
|
-
import {Observer} from "
|
4
|
+
import {equipWithInternal} from "../../../source/types/internal.mjs";
|
5
|
+
import {Observer} from "../../../source/types/observer.mjs";
|
6
6
|
|
7
7
|
class SomeRandomClass1 extends Object {
|
8
8
|
|
package/test/cases/types/is.mjs
CHANGED
@@ -9,10 +9,10 @@ import {
|
|
9
9
|
isIterable,
|
10
10
|
isInteger,
|
11
11
|
isSymbol
|
12
|
-
} from "
|
12
|
+
} from "../../../source/types/is.mjs";
|
13
13
|
|
14
14
|
|
15
|
-
import {ID} from "
|
15
|
+
import {ID} from "../../../source/types/id.mjs"
|
16
16
|
|
17
17
|
import {expect} from "chai"
|
18
18
|
import {initJSDOM} from "../../util/jsdom.mjs";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
import {expect} from "chai"
|
4
|
-
import {Node} from "
|
5
|
-
import {NodeList} from "
|
6
|
-
import {NodeRecursiveIterator} from "
|
4
|
+
import {Node} from "../../../source/types/node.mjs";
|
5
|
+
import {NodeList} from "../../../source/types/nodelist.mjs";
|
6
|
+
import {NodeRecursiveIterator} from "../../../source/types/noderecursiveiterator.mjs";
|
7
7
|
|
8
8
|
describe('NodeList', function () {
|
9
9
|
describe('#constructor', function () {
|