happy-dom 10.11.2 → 11.0.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.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
- package/.eslintrc.cjs +1 -1
- package/cjs/console/VirtualConsole.cjs +351 -0
- package/cjs/console/VirtualConsole.cjs.map +1 -0
- package/cjs/console/VirtualConsole.d.ts +163 -0
- package/cjs/console/VirtualConsole.d.ts.map +1 -0
- package/cjs/console/VirtualConsolePrinter.cjs +101 -0
- package/cjs/console/VirtualConsolePrinter.cjs.map +1 -0
- package/cjs/console/VirtualConsolePrinter.d.ts +55 -0
- package/cjs/console/VirtualConsolePrinter.d.ts.map +1 -0
- package/cjs/console/enums/VirtualConsoleLogLevelEnum.cjs +16 -0
- package/cjs/console/enums/VirtualConsoleLogLevelEnum.cjs.map +1 -0
- package/cjs/console/enums/VirtualConsoleLogLevelEnum.d.ts +13 -0
- package/cjs/console/enums/VirtualConsoleLogLevelEnum.d.ts.map +1 -0
- package/cjs/console/enums/VirtualConsoleLogTypeEnum.cjs +30 -0
- package/cjs/console/enums/VirtualConsoleLogTypeEnum.cjs.map +1 -0
- package/cjs/console/enums/VirtualConsoleLogTypeEnum.d.ts +23 -0
- package/cjs/console/enums/VirtualConsoleLogTypeEnum.d.ts.map +1 -0
- package/cjs/console/types/IVirtualConsoleLogEntry.cjs +3 -0
- package/cjs/console/types/IVirtualConsoleLogEntry.cjs.map +1 -0
- package/cjs/console/types/IVirtualConsoleLogEntry.d.ts +10 -0
- package/cjs/console/types/IVirtualConsoleLogEntry.d.ts.map +1 -0
- package/cjs/console/types/IVirtualConsoleLogGroup.cjs +3 -0
- package/cjs/console/types/IVirtualConsoleLogGroup.cjs.map +1 -0
- package/cjs/console/types/IVirtualConsoleLogGroup.d.ts +7 -0
- package/cjs/console/types/IVirtualConsoleLogGroup.d.ts.map +1 -0
- package/cjs/console/types/IVirtualConsolePrinter.cjs +3 -0
- package/cjs/console/types/IVirtualConsolePrinter.cjs.map +1 -0
- package/cjs/console/types/IVirtualConsolePrinter.d.ts +52 -0
- package/cjs/console/types/IVirtualConsolePrinter.d.ts.map +1 -0
- package/cjs/console/utilities/VirtualConsoleLogEntryStringifier.cjs +97 -0
- package/cjs/console/utilities/VirtualConsoleLogEntryStringifier.cjs.map +1 -0
- package/cjs/console/utilities/VirtualConsoleLogEntryStringifier.d.ts +35 -0
- package/cjs/console/utilities/VirtualConsoleLogEntryStringifier.d.ts.map +1 -0
- package/cjs/event/EventTarget.cjs +23 -5
- package/cjs/event/EventTarget.cjs.map +1 -1
- package/cjs/event/EventTarget.d.ts.map +1 -1
- package/cjs/index.cjs +9 -1
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts +8 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/nodes/element/Element.cjs.map +1 -1
- package/cjs/nodes/element/Element.d.ts +1 -1
- package/cjs/nodes/element/Element.d.ts.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.cjs +8 -31
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.cjs.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.d.ts +0 -7
- package/cjs/nodes/html-link-element/HTMLLinkElementUtility.d.ts.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElement.cjs +2 -1
- package/cjs/nodes/html-script-element/HTMLScriptElement.cjs.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElement.d.ts.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.cjs +10 -55
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.cjs.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.d.ts +0 -14
- package/cjs/nodes/html-script-element/HTMLScriptElementUtility.d.ts.map +1 -1
- package/cjs/window/GlobalWindow.cjs +1 -9
- package/cjs/window/GlobalWindow.cjs.map +1 -1
- package/cjs/window/GlobalWindow.d.ts +1 -7
- package/cjs/window/GlobalWindow.d.ts.map +1 -1
- package/cjs/window/IHappyDOMOptions.d.ts +2 -0
- package/cjs/window/IHappyDOMOptions.d.ts.map +1 -1
- package/cjs/window/IWindow.d.ts +2 -7
- package/cjs/window/IWindow.d.ts.map +1 -1
- package/cjs/window/VMGlobalPropertyScript.cjs +1 -0
- package/cjs/window/VMGlobalPropertyScript.cjs.map +1 -1
- package/cjs/window/VMGlobalPropertyScript.d.ts +1 -1
- package/cjs/window/VMGlobalPropertyScript.d.ts.map +1 -1
- package/cjs/window/Window.cjs +51 -64
- package/cjs/window/Window.cjs.map +1 -1
- package/cjs/window/Window.d.ts +6 -23
- package/cjs/window/Window.d.ts.map +1 -1
- package/cjs/window/WindowErrorUtility.cjs +84 -0
- package/cjs/window/WindowErrorUtility.cjs.map +1 -0
- package/cjs/window/WindowErrorUtility.d.ts +38 -0
- package/cjs/window/WindowErrorUtility.d.ts.map +1 -0
- package/lib/console/VirtualConsole.d.ts +163 -0
- package/lib/console/VirtualConsole.d.ts.map +1 -0
- package/lib/console/VirtualConsole.js +322 -0
- package/lib/console/VirtualConsole.js.map +1 -0
- package/lib/console/VirtualConsolePrinter.d.ts +55 -0
- package/lib/console/VirtualConsolePrinter.d.ts.map +1 -0
- package/lib/console/VirtualConsolePrinter.js +95 -0
- package/lib/console/VirtualConsolePrinter.js.map +1 -0
- package/lib/console/enums/VirtualConsoleLogLevelEnum.d.ts +13 -0
- package/lib/console/enums/VirtualConsoleLogLevelEnum.d.ts.map +1 -0
- package/lib/console/enums/VirtualConsoleLogLevelEnum.js +14 -0
- package/lib/console/enums/VirtualConsoleLogLevelEnum.js.map +1 -0
- package/lib/console/enums/VirtualConsoleLogTypeEnum.d.ts +23 -0
- package/lib/console/enums/VirtualConsoleLogTypeEnum.d.ts.map +1 -0
- package/lib/console/enums/VirtualConsoleLogTypeEnum.js +28 -0
- package/lib/console/enums/VirtualConsoleLogTypeEnum.js.map +1 -0
- package/lib/console/types/IVirtualConsoleLogEntry.d.ts +10 -0
- package/lib/console/types/IVirtualConsoleLogEntry.d.ts.map +1 -0
- package/lib/console/types/IVirtualConsoleLogEntry.js +2 -0
- package/lib/console/types/IVirtualConsoleLogEntry.js.map +1 -0
- package/lib/console/types/IVirtualConsoleLogGroup.d.ts +7 -0
- package/lib/console/types/IVirtualConsoleLogGroup.d.ts.map +1 -0
- package/lib/console/types/IVirtualConsoleLogGroup.js +2 -0
- package/lib/console/types/IVirtualConsoleLogGroup.js.map +1 -0
- package/lib/console/types/IVirtualConsolePrinter.d.ts +52 -0
- package/lib/console/types/IVirtualConsolePrinter.d.ts.map +1 -0
- package/lib/console/types/IVirtualConsolePrinter.js +2 -0
- package/lib/console/types/IVirtualConsolePrinter.js.map +1 -0
- package/lib/console/utilities/VirtualConsoleLogEntryStringifier.d.ts +35 -0
- package/lib/console/utilities/VirtualConsoleLogEntryStringifier.d.ts.map +1 -0
- package/lib/console/utilities/VirtualConsoleLogEntryStringifier.js +91 -0
- package/lib/console/utilities/VirtualConsoleLogEntryStringifier.js.map +1 -0
- package/lib/event/EventTarget.d.ts.map +1 -1
- package/lib/event/EventTarget.js +23 -5
- package/lib/event/EventTarget.js.map +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/nodes/element/Element.d.ts +1 -1
- package/lib/nodes/element/Element.d.ts.map +1 -1
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.d.ts +0 -7
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.js +8 -31
- package/lib/nodes/html-link-element/HTMLLinkElementUtility.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.d.ts.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.js +2 -1
- package/lib/nodes/html-script-element/HTMLScriptElement.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.d.ts +0 -14
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.d.ts.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.js +10 -55
- package/lib/nodes/html-script-element/HTMLScriptElementUtility.js.map +1 -1
- package/lib/window/GlobalWindow.d.ts +1 -7
- package/lib/window/GlobalWindow.d.ts.map +1 -1
- package/lib/window/GlobalWindow.js +1 -9
- package/lib/window/GlobalWindow.js.map +1 -1
- package/lib/window/IHappyDOMOptions.d.ts +2 -0
- package/lib/window/IHappyDOMOptions.d.ts.map +1 -1
- package/lib/window/IWindow.d.ts +2 -7
- package/lib/window/IWindow.d.ts.map +1 -1
- package/lib/window/VMGlobalPropertyScript.d.ts +1 -1
- package/lib/window/VMGlobalPropertyScript.d.ts.map +1 -1
- package/lib/window/VMGlobalPropertyScript.js +1 -0
- package/lib/window/VMGlobalPropertyScript.js.map +1 -1
- package/lib/window/Window.d.ts +6 -23
- package/lib/window/Window.d.ts.map +1 -1
- package/lib/window/Window.js +51 -64
- package/lib/window/Window.js.map +1 -1
- package/lib/window/WindowErrorUtility.d.ts +38 -0
- package/lib/window/WindowErrorUtility.d.ts.map +1 -0
- package/lib/window/WindowErrorUtility.js +78 -0
- package/lib/window/WindowErrorUtility.js.map +1 -0
- package/package.json +2 -2
- package/src/console/VirtualConsole.ts +356 -0
- package/src/console/VirtualConsolePrinter.ts +107 -0
- package/src/console/enums/VirtualConsoleLogLevelEnum.ts +12 -0
- package/src/console/enums/VirtualConsoleLogTypeEnum.ts +29 -0
- package/src/console/types/IVirtualConsoleLogEntry.ts +10 -0
- package/src/console/types/IVirtualConsoleLogGroup.ts +6 -0
- package/src/console/types/IVirtualConsolePrinter.ts +58 -0
- package/src/console/utilities/VirtualConsoleLogEntryStringifier.ts +100 -0
- package/src/event/EventTarget.ts +27 -5
- package/src/index.ts +15 -1
- package/src/nodes/element/Element.ts +1 -1
- package/src/nodes/html-link-element/HTMLLinkElementUtility.ts +13 -35
- package/src/nodes/html-script-element/HTMLScriptElement.ts +4 -1
- package/src/nodes/html-script-element/HTMLScriptElementUtility.ts +19 -62
- package/src/window/GlobalWindow.ts +1 -10
- package/src/window/IHappyDOMOptions.ts +1 -0
- package/src/window/IWindow.ts +2 -8
- package/src/window/VMGlobalPropertyScript.ts +1 -0
- package/src/window/Window.ts +77 -70
- package/src/window/WindowErrorUtility.ts +94 -0
- package/tsconfig.json +2 -3
@@ -0,0 +1,55 @@
|
|
1
|
+
import IVirtualConsoleLogEntry from './types/IVirtualConsoleLogEntry.cjs';
|
2
|
+
import VirtualConsoleLogLevelEnum from './enums/VirtualConsoleLogLevelEnum.cjs';
|
3
|
+
import Event from '../event/Event.cjs';
|
4
|
+
import IVirtualConsolePrinter from './types/IVirtualConsolePrinter.cjs';
|
5
|
+
/**
|
6
|
+
* Virtual console printer.
|
7
|
+
*/
|
8
|
+
export default class VirtualConsolePrinter implements IVirtualConsolePrinter {
|
9
|
+
private _logEntries;
|
10
|
+
private _listeners;
|
11
|
+
/**
|
12
|
+
* Writes to the output.
|
13
|
+
*
|
14
|
+
* @param logEntry Log entry.
|
15
|
+
*/
|
16
|
+
print(logEntry: IVirtualConsoleLogEntry): void;
|
17
|
+
/**
|
18
|
+
* Clears the output.
|
19
|
+
*/
|
20
|
+
clear(): void;
|
21
|
+
/**
|
22
|
+
* Adds an event listener.
|
23
|
+
*
|
24
|
+
* @param eventType Event type ("print" or "clear").
|
25
|
+
* @param listener Listener.
|
26
|
+
*/
|
27
|
+
addEventListener(eventType: 'print' | 'clear', listener: (event: Event) => void): void;
|
28
|
+
/**
|
29
|
+
* Removes an event listener.
|
30
|
+
*
|
31
|
+
* @param eventType Event type ("print" or "clear").
|
32
|
+
* @param listener Listener.
|
33
|
+
*/
|
34
|
+
removeEventListener(eventType: 'print' | 'clear', listener: (event: Event) => void): void;
|
35
|
+
/**
|
36
|
+
* Dispatches an event.
|
37
|
+
*
|
38
|
+
* @param event Event.
|
39
|
+
*/
|
40
|
+
dispatchEvent(event: Event): void;
|
41
|
+
/**
|
42
|
+
* Reads the buffer.
|
43
|
+
*
|
44
|
+
* @returns Console log entries.
|
45
|
+
*/
|
46
|
+
read(): IVirtualConsoleLogEntry[];
|
47
|
+
/**
|
48
|
+
* Returns the buffer as a string.
|
49
|
+
*
|
50
|
+
* @param [logLevel] Log level.
|
51
|
+
* @returns Buffer as a string of concatenated log entries.
|
52
|
+
*/
|
53
|
+
readAsString(logLevel?: VirtualConsoleLogLevelEnum): string;
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=VirtualConsolePrinter.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsolePrinter.d.ts","sourceRoot":"","sources":["../../src/console/VirtualConsolePrinter.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,0BAA0B,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AAEvE;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,YAAW,sBAAsB;IAC3E,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,UAAU,CAGW;IAE7B;;;;OAIG;IACI,KAAK,CAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI;IAKrD;;OAEG;IACI,KAAK,IAAI,IAAI;IAKpB;;;;;OAKG;IACI,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI;IAO7F;;;;;OAKG;IACI,mBAAmB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI;IAUhG;;;;OAIG;IACI,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IASxC;;;;OAIG;IACI,IAAI,IAAI,uBAAuB,EAAE;IAMxC;;;;;OAKG;IACI,YAAY,CAClB,QAAQ,GAAE,0BAA2D,GACnE,MAAM;CAUT"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
/**
|
4
|
+
* Virtual console log level.
|
5
|
+
*
|
6
|
+
* @see https://console.spec.whatwg.org/#loglevel-severity
|
7
|
+
*/
|
8
|
+
var VirtualConsoleLogLevelEnum;
|
9
|
+
(function (VirtualConsoleLogLevelEnum) {
|
10
|
+
VirtualConsoleLogLevelEnum[VirtualConsoleLogLevelEnum["log"] = 0] = "log";
|
11
|
+
VirtualConsoleLogLevelEnum[VirtualConsoleLogLevelEnum["info"] = 1] = "info";
|
12
|
+
VirtualConsoleLogLevelEnum[VirtualConsoleLogLevelEnum["warn"] = 2] = "warn";
|
13
|
+
VirtualConsoleLogLevelEnum[VirtualConsoleLogLevelEnum["error"] = 3] = "error";
|
14
|
+
})(VirtualConsoleLogLevelEnum || (VirtualConsoleLogLevelEnum = {}));
|
15
|
+
exports.default = VirtualConsoleLogLevelEnum;
|
16
|
+
//# sourceMappingURL=VirtualConsoleLogLevelEnum.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsoleLogLevelEnum.cjs","sourceRoot":"","sources":["../../../src/console/enums/VirtualConsoleLogLevelEnum.ts"],"names":[],"mappings":";;AAAA;;;;GAIG;AACH,IAAK,0BAKJ;AALD,WAAK,0BAA0B;IAC9B,yEAAO,CAAA;IACP,2EAAQ,CAAA;IACR,2EAAQ,CAAA;IACR,6EAAS,CAAA;AACV,CAAC,EALI,0BAA0B,KAA1B,0BAA0B,QAK9B;AACD,kBAAe,0BAA0B,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* Virtual console log level.
|
3
|
+
*
|
4
|
+
* @see https://console.spec.whatwg.org/#loglevel-severity
|
5
|
+
*/
|
6
|
+
declare enum VirtualConsoleLogLevelEnum {
|
7
|
+
log = 0,
|
8
|
+
info = 1,
|
9
|
+
warn = 2,
|
10
|
+
error = 3
|
11
|
+
}
|
12
|
+
export default VirtualConsoleLogLevelEnum;
|
13
|
+
//# sourceMappingURL=VirtualConsoleLogLevelEnum.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsoleLogLevelEnum.d.ts","sourceRoot":"","sources":["../../../src/console/enums/VirtualConsoleLogLevelEnum.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,aAAK,0BAA0B;IAC9B,GAAG,IAAI;IACP,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;CACT;AACD,eAAe,0BAA0B,CAAC"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
/**
|
4
|
+
* Virtual console log type.
|
5
|
+
*/
|
6
|
+
var VirtualConsoleLogTypeEnum;
|
7
|
+
(function (VirtualConsoleLogTypeEnum) {
|
8
|
+
// Log
|
9
|
+
VirtualConsoleLogTypeEnum["log"] = "log";
|
10
|
+
VirtualConsoleLogTypeEnum["table"] = "table";
|
11
|
+
VirtualConsoleLogTypeEnum["trace"] = "trace";
|
12
|
+
VirtualConsoleLogTypeEnum["dir"] = "dir";
|
13
|
+
VirtualConsoleLogTypeEnum["dirxml"] = "dirxml";
|
14
|
+
VirtualConsoleLogTypeEnum["group"] = "group";
|
15
|
+
VirtualConsoleLogTypeEnum["groupCollapsed"] = "groupCollapsed";
|
16
|
+
VirtualConsoleLogTypeEnum["debug"] = "debug";
|
17
|
+
VirtualConsoleLogTypeEnum["timeLog"] = "timeLog";
|
18
|
+
// Info
|
19
|
+
VirtualConsoleLogTypeEnum["info"] = "info";
|
20
|
+
VirtualConsoleLogTypeEnum["count"] = "count";
|
21
|
+
VirtualConsoleLogTypeEnum["timeEnd"] = "timeEnd";
|
22
|
+
// Warning
|
23
|
+
VirtualConsoleLogTypeEnum["warn"] = "warn";
|
24
|
+
VirtualConsoleLogTypeEnum["countReset"] = "countReset";
|
25
|
+
// Error
|
26
|
+
VirtualConsoleLogTypeEnum["error"] = "error";
|
27
|
+
VirtualConsoleLogTypeEnum["assert"] = "assert";
|
28
|
+
})(VirtualConsoleLogTypeEnum || (VirtualConsoleLogTypeEnum = {}));
|
29
|
+
exports.default = VirtualConsoleLogTypeEnum;
|
30
|
+
//# sourceMappingURL=VirtualConsoleLogTypeEnum.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsoleLogTypeEnum.cjs","sourceRoot":"","sources":["../../../src/console/enums/VirtualConsoleLogTypeEnum.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,IAAK,yBAwBJ;AAxBD,WAAK,yBAAyB;IAC7B,MAAM;IACN,wCAAW,CAAA;IACX,4CAAe,CAAA;IACf,4CAAe,CAAA;IACf,wCAAW,CAAA;IACX,8CAAiB,CAAA;IACjB,4CAAe,CAAA;IACf,8DAAiC,CAAA;IACjC,4CAAe,CAAA;IACf,gDAAmB,CAAA;IAEnB,OAAO;IACP,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,gDAAmB,CAAA;IAEnB,UAAU;IACV,0CAAa,CAAA;IACb,sDAAyB,CAAA;IAEzB,QAAQ;IACR,4CAAe,CAAA;IACf,8CAAiB,CAAA;AAClB,CAAC,EAxBI,yBAAyB,KAAzB,yBAAyB,QAwB7B;AACD,kBAAe,yBAAyB,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Virtual console log type.
|
3
|
+
*/
|
4
|
+
declare enum VirtualConsoleLogTypeEnum {
|
5
|
+
log = "log",
|
6
|
+
table = "table",
|
7
|
+
trace = "trace",
|
8
|
+
dir = "dir",
|
9
|
+
dirxml = "dirxml",
|
10
|
+
group = "group",
|
11
|
+
groupCollapsed = "groupCollapsed",
|
12
|
+
debug = "debug",
|
13
|
+
timeLog = "timeLog",
|
14
|
+
info = "info",
|
15
|
+
count = "count",
|
16
|
+
timeEnd = "timeEnd",
|
17
|
+
warn = "warn",
|
18
|
+
countReset = "countReset",
|
19
|
+
error = "error",
|
20
|
+
assert = "assert"
|
21
|
+
}
|
22
|
+
export default VirtualConsoleLogTypeEnum;
|
23
|
+
//# sourceMappingURL=VirtualConsoleLogTypeEnum.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsoleLogTypeEnum.d.ts","sourceRoot":"","sources":["../../../src/console/enums/VirtualConsoleLogTypeEnum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,aAAK,yBAAyB;IAE7B,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,cAAc,mBAAmB;IACjC,KAAK,UAAU;IACf,OAAO,YAAY;IAGnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IAGnB,IAAI,SAAS;IACb,UAAU,eAAe;IAGzB,KAAK,UAAU;IACf,MAAM,WAAW;CACjB;AACD,eAAe,yBAAyB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IVirtualConsoleLogEntry.cjs","sourceRoot":"","sources":["../../../src/console/types/IVirtualConsoleLogEntry.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import IVirtualConsoleLogGroup from './IVirtualConsoleLogGroup.cjs';
|
2
|
+
import VirtualConsoleLogLevelEnum from '../enums/VirtualConsoleLogLevelEnum.cjs';
|
3
|
+
import VirtualConsoleLogTypeEnum from '../enums/VirtualConsoleLogTypeEnum.cjs';
|
4
|
+
export default interface IVirtualConsoleLogEntry {
|
5
|
+
type: VirtualConsoleLogTypeEnum;
|
6
|
+
level: VirtualConsoleLogLevelEnum;
|
7
|
+
message: Array<string | object>;
|
8
|
+
group: IVirtualConsoleLogGroup | null;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=IVirtualConsoleLogEntry.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IVirtualConsoleLogEntry.d.ts","sourceRoot":"","sources":["../../../src/console/types/IVirtualConsoleLogEntry.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AACnE,OAAO,0BAA0B,MAAM,wCAAwC,CAAC;AAChF,OAAO,yBAAyB,MAAM,uCAAuC,CAAC;AAE9E,MAAM,CAAC,OAAO,WAAW,uBAAuB;IAC/C,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,0BAA0B,CAAC;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAChC,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACtC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IVirtualConsoleLogGroup.cjs","sourceRoot":"","sources":["../../../src/console/types/IVirtualConsoleLogGroup.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IVirtualConsoleLogGroup.d.ts","sourceRoot":"","sources":["../../../src/console/types/IVirtualConsoleLogGroup.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,uBAAuB;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,uBAAuB,CAAC;CAChC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IVirtualConsolePrinter.cjs","sourceRoot":"","sources":["../../../src/console/types/IVirtualConsolePrinter.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import IVirtualConsoleLogEntry from './IVirtualConsoleLogEntry.cjs';
|
2
|
+
import VirtualConsoleLogLevelEnum from '../enums/VirtualConsoleLogLevelEnum.cjs';
|
3
|
+
import Event from '../../event/Event.cjs';
|
4
|
+
/**
|
5
|
+
* Virtual console printer.
|
6
|
+
*/
|
7
|
+
export default interface IVirtualConsolePrinter {
|
8
|
+
/**
|
9
|
+
* Writes to the output.
|
10
|
+
*
|
11
|
+
* @param logEntry Log entry.
|
12
|
+
*/
|
13
|
+
print(logEntry: IVirtualConsoleLogEntry): void;
|
14
|
+
/**
|
15
|
+
* Clears the output.
|
16
|
+
*/
|
17
|
+
clear(): void;
|
18
|
+
/**
|
19
|
+
* Adds an event listener.
|
20
|
+
*
|
21
|
+
* @param eventType Event type ("print" or "clear").
|
22
|
+
* @param listener Listener.
|
23
|
+
*/
|
24
|
+
addEventListener(eventType: 'print' | 'clear', listener: (event: Event) => void): void;
|
25
|
+
/**
|
26
|
+
* Removes an event listener.
|
27
|
+
*
|
28
|
+
* @param eventType Event type ("print" or "clear").
|
29
|
+
* @param listener Listener.
|
30
|
+
*/
|
31
|
+
removeEventListener(eventType: 'print' | 'clear', listener: (event: Event) => void): void;
|
32
|
+
/**
|
33
|
+
* Dispatches an event.
|
34
|
+
*
|
35
|
+
* @param event Event.
|
36
|
+
*/
|
37
|
+
dispatchEvent(event: Event): void;
|
38
|
+
/**
|
39
|
+
* Reads the buffer.
|
40
|
+
*
|
41
|
+
* @returns Console log entries.
|
42
|
+
*/
|
43
|
+
read(): IVirtualConsoleLogEntry[];
|
44
|
+
/**
|
45
|
+
* Returns the buffer as a string.
|
46
|
+
*
|
47
|
+
* @param [logLevel] Log level.
|
48
|
+
* @returns Buffer as a string of concatenated log entries.
|
49
|
+
*/
|
50
|
+
readAsString(logLevel: VirtualConsoleLogLevelEnum): string;
|
51
|
+
}
|
52
|
+
//# sourceMappingURL=IVirtualConsolePrinter.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IVirtualConsolePrinter.d.ts","sourceRoot":"","sources":["../../../src/console/types/IVirtualConsolePrinter.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AACnE,OAAO,0BAA0B,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,MAAM,sBAAsB,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,sBAAsB;IAC9C;;;;OAIG;IACH,KAAK,CAAC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAE/C;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;;;;OAKG;IACH,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAEvF;;;;;OAKG;IACH,mBAAmB,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAE1F;;;;OAIG;IACH,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAElC;;;;OAIG;IACH,IAAI,IAAI,uBAAuB,EAAE,CAAC;IAElC;;;;;OAKG;IACH,YAAY,CAAC,QAAQ,EAAE,0BAA0B,GAAG,MAAM,CAAC;CAC3D"}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const VirtualConsoleLogTypeEnum_js_1 = __importDefault(require("../enums/VirtualConsoleLogTypeEnum.cjs"));
|
7
|
+
/**
|
8
|
+
* Virtual console utility.
|
9
|
+
*/
|
10
|
+
class VirtualConsoleLogEntryStringifier {
|
11
|
+
/**
|
12
|
+
* Stringifies a log entry.
|
13
|
+
*
|
14
|
+
* @param logEntry Log entry.
|
15
|
+
* @returns Stringified message.
|
16
|
+
*/
|
17
|
+
static toString(logEntry) {
|
18
|
+
if (this.isLogEntryCollapsed(logEntry)) {
|
19
|
+
return '';
|
20
|
+
}
|
21
|
+
const tabbing = this.getLogEntryGroupTabbing(logEntry);
|
22
|
+
let output = tabbing;
|
23
|
+
for (const part of logEntry.message) {
|
24
|
+
output += output !== '' && output !== tabbing ? ' ' : '';
|
25
|
+
if (typeof part === 'object' &&
|
26
|
+
(part === null || part.constructor.name === 'Object' || Array.isArray(part))) {
|
27
|
+
try {
|
28
|
+
output += JSON.stringify(part);
|
29
|
+
}
|
30
|
+
catch (error) {
|
31
|
+
output += new Error('Failed to JSON stringify object in log entry.').stack.replace(/\n at/gm, '\n ' + tabbing + 'at');
|
32
|
+
}
|
33
|
+
}
|
34
|
+
else if (typeof part === 'object' && part['message'] && part['stack']) {
|
35
|
+
output += part['stack'].replace(/\n at/gm, '\n ' + tabbing + 'at');
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
output += this.getLogEntryIcon(logEntry) + String(part);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
return output + '\n';
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Gets the log entry icon.
|
45
|
+
*
|
46
|
+
* @param logEntry Log entry.
|
47
|
+
* @returns Icon.
|
48
|
+
*/
|
49
|
+
static getLogEntryIcon(logEntry) {
|
50
|
+
switch (logEntry.type) {
|
51
|
+
case VirtualConsoleLogTypeEnum_js_1.default.group:
|
52
|
+
return '▼ ';
|
53
|
+
case VirtualConsoleLogTypeEnum_js_1.default.groupCollapsed:
|
54
|
+
return '▶ ';
|
55
|
+
}
|
56
|
+
return '';
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* Gets the log entry group tabbing.
|
60
|
+
*
|
61
|
+
* @param logEntry Log entry.
|
62
|
+
* @returns Tabbing.
|
63
|
+
*/
|
64
|
+
static getLogEntryGroupTabbing(logEntry) {
|
65
|
+
let tabs = '';
|
66
|
+
let group = logEntry.type === VirtualConsoleLogTypeEnum_js_1.default.group ||
|
67
|
+
logEntry.type === VirtualConsoleLogTypeEnum_js_1.default.groupCollapsed
|
68
|
+
? logEntry.group?.parent
|
69
|
+
: logEntry.group;
|
70
|
+
while (group) {
|
71
|
+
tabs += ' ';
|
72
|
+
group = group.parent;
|
73
|
+
}
|
74
|
+
return tabs;
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* Checks if the log entry content is collapsed.
|
78
|
+
*
|
79
|
+
* @param logEntry Log entry.
|
80
|
+
* @returns True if collapsed.
|
81
|
+
*/
|
82
|
+
static isLogEntryCollapsed(logEntry) {
|
83
|
+
let group = logEntry.type === VirtualConsoleLogTypeEnum_js_1.default.group ||
|
84
|
+
logEntry.type === VirtualConsoleLogTypeEnum_js_1.default.groupCollapsed
|
85
|
+
? logEntry.group?.parent
|
86
|
+
: logEntry.group;
|
87
|
+
while (group) {
|
88
|
+
if (group.collapsed) {
|
89
|
+
return true;
|
90
|
+
}
|
91
|
+
group = group.parent;
|
92
|
+
}
|
93
|
+
return false;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
exports.default = VirtualConsoleLogEntryStringifier;
|
97
|
+
//# sourceMappingURL=VirtualConsoleLogEntryStringifier.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsoleLogEntryStringifier.cjs","sourceRoot":"","sources":["../../../src/console/utilities/VirtualConsoleLogEntryStringifier.ts"],"names":[],"mappings":";;;;;AACA,yGAA8E;AAE9E;;GAEG;AACH,MAAqB,iCAAiC;IACrD;;;;;OAKG;IACI,MAAM,CAAC,QAAQ,CAAC,QAAiC;QACvD,IAAI,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE;YACvC,OAAO,EAAE,CAAC;SACV;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;QACvD,IAAI,MAAM,GAAG,OAAO,CAAC;QACrB,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,OAAO,EAAE;YACpC,MAAM,IAAI,MAAM,KAAK,EAAE,IAAI,MA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ACR,QAAQ,CAAC,IAAI,KAAK,sCAAyB,CAAC,KAAK;YACjD,QAAQ,CAAC,IAAI,KAAK,sCAAyB,CAAC,cAAc;YACzD,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM;YACxB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;QACnB,OAAO,KAAK,EAAE;YACb,IAAI,IAAI,IAAI,CAAC;YACb,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC;SACrB;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;OAKG;IACK,MAAM,CAAC,mBAAmB,CAAC,QAAiC;QACnE,IAAI,KAAK,GACR,QAAQ,CAAC,IAAI,KAAK,sCAAyB,CAAC,KAAK;YACjD,QAAQ,CAAC,IAAI,KAAK,sCAAyB,CAAC,cAAc;YACzD,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM;YACxB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;QACnB,OAAO,KAAK,EAAE;YACb,IAAI,KAAK,CAAC,SAAS,EAAE;gBACpB,OAAO,IAAI,CAAC;aACZ;YACD,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC;SACrB;QACD,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AA7FD,oDA6FC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import IVirtualConsoleLogEntry from '../types/IVirtualConsoleLogEntry.cjs';
|
2
|
+
/**
|
3
|
+
* Virtual console utility.
|
4
|
+
*/
|
5
|
+
export default class VirtualConsoleLogEntryStringifier {
|
6
|
+
/**
|
7
|
+
* Stringifies a log entry.
|
8
|
+
*
|
9
|
+
* @param logEntry Log entry.
|
10
|
+
* @returns Stringified message.
|
11
|
+
*/
|
12
|
+
static toString(logEntry: IVirtualConsoleLogEntry): string;
|
13
|
+
/**
|
14
|
+
* Gets the log entry icon.
|
15
|
+
*
|
16
|
+
* @param logEntry Log entry.
|
17
|
+
* @returns Icon.
|
18
|
+
*/
|
19
|
+
private static getLogEntryIcon;
|
20
|
+
/**
|
21
|
+
* Gets the log entry group tabbing.
|
22
|
+
*
|
23
|
+
* @param logEntry Log entry.
|
24
|
+
* @returns Tabbing.
|
25
|
+
*/
|
26
|
+
private static getLogEntryGroupTabbing;
|
27
|
+
/**
|
28
|
+
* Checks if the log entry content is collapsed.
|
29
|
+
*
|
30
|
+
* @param logEntry Log entry.
|
31
|
+
* @returns True if collapsed.
|
32
|
+
*/
|
33
|
+
private static isLogEntryCollapsed;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=VirtualConsoleLogEntryStringifier.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VirtualConsoleLogEntryStringifier.d.ts","sourceRoot":"","sources":["../../../src/console/utilities/VirtualConsoleLogEntryStringifier.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,MAAM,qCAAqC,CAAC;AAG1E;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iCAAiC;IACrD;;;;;OAKG;WACW,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,GAAG,MAAM;IA8BjE;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAU9B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;IActC;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;CAclC"}
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const EventPhaseEnum_js_1 = __importDefault(require("./EventPhaseEnum.cjs"));
|
7
|
+
const WindowErrorUtility_js_1 = __importDefault(require("../window/WindowErrorUtility.cjs"));
|
7
8
|
/**
|
8
9
|
* Handles events.
|
9
10
|
*/
|
@@ -70,10 +71,10 @@ class EventTarget {
|
|
70
71
|
* @returns The return value is false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault().
|
71
72
|
*/
|
72
73
|
dispatchEvent(event) {
|
74
|
+
const window = this._getWindow();
|
73
75
|
if (event.eventPhase === EventPhaseEnum_js_1.default.none) {
|
74
76
|
event._target = this;
|
75
77
|
const composedPath = event.composedPath();
|
76
|
-
const window = this._getWindow();
|
77
78
|
// Capturing phase
|
78
79
|
// We only need to iterate over the composed path if there are capture event listeners.
|
79
80
|
if (window && window['_captureEventListenerCount'][event.type]) {
|
@@ -106,7 +107,13 @@ class EventTarget {
|
|
106
107
|
if (event.eventPhase !== EventPhaseEnum_js_1.default.capturing) {
|
107
108
|
const onEventName = 'on' + event.type.toLowerCase();
|
108
109
|
if (typeof this[onEventName] === 'function') {
|
109
|
-
|
110
|
+
// We can end up in a never ending loop if the listener for the error event on Window also throws an error.
|
111
|
+
if (window && (this !== window || event.type !== 'error')) {
|
112
|
+
WindowErrorUtility_js_1.default.captureErrorSync(window, this[onEventName].bind(this, event));
|
113
|
+
}
|
114
|
+
else {
|
115
|
+
this[onEventName].call(this, event);
|
116
|
+
}
|
110
117
|
}
|
111
118
|
}
|
112
119
|
if (this._listeners[event.type]) {
|
@@ -123,11 +130,22 @@ class EventTarget {
|
|
123
130
|
if (options?.passive) {
|
124
131
|
event._isInPassiveEventListener = true;
|
125
132
|
}
|
126
|
-
if
|
127
|
-
|
133
|
+
// We can end up in a never ending loop if the listener for the error event on Window also throws an error.
|
134
|
+
if (window && (this !== window || event.type !== 'error')) {
|
135
|
+
if (listener.handleEvent) {
|
136
|
+
WindowErrorUtility_js_1.default.captureErrorSync(window, listener.handleEvent.bind(this, event));
|
137
|
+
}
|
138
|
+
else {
|
139
|
+
WindowErrorUtility_js_1.default.captureErrorSync(window, listener.bind(this, event));
|
140
|
+
}
|
128
141
|
}
|
129
142
|
else {
|
130
|
-
listener.
|
143
|
+
if (listener.handleEvent) {
|
144
|
+
listener.handleEvent(event);
|
145
|
+
}
|
146
|
+
else {
|
147
|
+
listener.call(this, event);
|
148
|
+
}
|
131
149
|
}
|
132
150
|
event._isInPassiveEventListener = false;
|
133
151
|
if (options?.once) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EventTarget.cjs","sourceRoot":"","sources":["../../src/event/EventTarget.ts"],"names":[],"mappings":";;;;;AAIA,4EAAiD;
|
1
|
+
{"version":3,"file":"EventTarget.cjs","sourceRoot":"","sources":["../../src/event/EventTarget.ts"],"names":[],"mappings":";;;;;AAIA,4EAAiD;AAIjD,4FAAiE;AAEjE;;GAEG;AACH,MAA8B,WAAW;IAAzC;QACiB,eAAU,GAEtB,EAAE,CAAC;QACS,qBAAgB,GAE5B,EAAE,CAAC;IA8OR,CAAC;IA5OA;;;;;;;OAOG;IACI,gBAAgB,CACtB,IAAY,EACZ,QAAmD,EACnD,OAAyC;QAEzC,MAAM,eAAe,GAAG,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC;QAE9F,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACpD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAChE,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAC7C,OAAO;SACP;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAElD,8FAA8F;QAC9F,IAAI,eAAe,IAAI,eAAe,CAAC,OAAO,EAAE;YAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACjC,IAAI,MAAM,EAAE;gBACX,MAAM,CAAC,4BAA4B,CAAC,CAA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OAAO,CAAC,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;;;;OASG;IACI,WAAW,CAAC,IAAY,EAAE,QAAmD;QACnF,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;OASG;IACI,WAAW,CAAC,IAAY,EAAE,QAAmD;QACnF,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACI,UAAU;QAChB,IAAsB,IAAM,CAAC,aAAa,EAAE;YAC3C,OAAyB,IAAM,CAAC,aAAa,CAAC,WAAW,CAAC;SAC1D;QACD,IAA0B,IAAM,CAAC,WAAW,EAAE;YAC7C,OAA6B,IAAM,CAAC,WAAW,CAAC;SAChD;QACD,IAAwB,IAAM,CAAC,QAAQ,EAAE;YACxC,OAA0B,IAAK,CAAC;SAChC;QACD,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AApPD,8BAoPC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EventTarget.d.ts","sourceRoot":"","sources":["../../src/event/EventTarget.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAI/D,OAAO,OAAO,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"EventTarget.d.ts","sourceRoot":"","sources":["../../src/event/EventTarget.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,YA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js/index.cjs
CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.HTMLSlotElement = exports.HTMLStyleElement = exports.HTMLLinkElement = exports.HTMLScriptElement = exports.Image = exports.HTMLImageElement = exports.HTMLTextAreaElement = exports.HTMLInputElement = exports.HTMLFormElement = exports.HTMLTemplateElement = exports.HTMLElement = exports.HTMLFormControlsCollection = exports.HTMLCollection = exports.Element = exports.SVGDocument = exports.XMLDocument = exports.HTMLDocument = exports.Document = exports.DOMParser = exports.WheelEvent = exports.SubmitEvent = exports.ProgressEvent = exports.MouseEvent = exports.KeyboardEvent = exports.InputEvent = exports.CustomEvent = exports.AnimationEvent = exports.FocusEvent = exports.ErrorEvent = exports.UIEvent = exports.EventTarget = exports.Event = exports.NodeFilter = exports.AsyncTaskManager = exports.Screen = exports.CSSStyleDeclaration = exports.History = exports.DOMException = exports.FileReader = exports.File = exports.Blob = exports.ResizeObserver = exports.MutationObserver = exports.Location = exports.URL = exports.DataTransferItemList = exports.DataTransferItem = exports.DataTransfer = exports.Window = exports.GlobalWindow = void 0;
|
7
|
-
exports.EventPhaseEnum = exports.FormData = exports.Headers = exports.Response = exports.Request = exports.AbortSignal = exports.AbortController = exports.FileList = exports.ProcessingInstruction = exports.Attr = exports.HTMLDialogElement = exports.Range = exports.Selection = exports.URLSearchParams = exports.DOMRect = exports.Storage = exports.CSSSupportsRule = exports.CSSStyleRule = exports.CSSMediaRule = exports.CSSKeyframesRule = exports.CSSKeyframeRule = exports.CSSFontFaceRule = exports.CSSContainerRule = exports.CSSRule = exports.CSSStyleSheet = exports.XMLSerializer = exports.XMLParser = exports.CustomElementRegistry = exports.TreeWalker = exports.NodeIterator = exports.DocumentType = exports.Comment = exports.Text = exports.Node = exports.ShadowRoot = exports.DocumentFragment = exports.SVGSVGElement = exports.SVGGraphicsElement = exports.SVGElement = exports.HTMLIFrameElement = exports.HTMLBaseElement = exports.HTMLVideoElement = exports.HTMLAudioElement = exports.HTMLMediaElement = exports.HTMLMetaElement = exports.HTMLLabelElement = void 0;
|
7
|
+
exports.VirtualConsolePrinter = exports.VirtualConsole = exports.VirtualConsoleLogTypeEnum = exports.VirtualConsoleLogLevelEnum = exports.EventPhaseEnum = exports.FormData = exports.Headers = exports.Response = exports.Request = exports.AbortSignal = exports.AbortController = exports.FileList = exports.ProcessingInstruction = exports.Attr = exports.HTMLDialogElement = exports.Range = exports.Selection = exports.URLSearchParams = exports.DOMRect = exports.Storage = exports.CSSSupportsRule = exports.CSSStyleRule = exports.CSSMediaRule = exports.CSSKeyframesRule = exports.CSSKeyframeRule = exports.CSSFontFaceRule = exports.CSSContainerRule = exports.CSSRule = exports.CSSStyleSheet = exports.XMLSerializer = exports.XMLParser = exports.CustomElementRegistry = exports.TreeWalker = exports.NodeIterator = exports.DocumentType = exports.Comment = exports.Text = exports.Node = exports.ShadowRoot = exports.DocumentFragment = exports.SVGSVGElement = exports.SVGGraphicsElement = exports.SVGElement = exports.HTMLIFrameElement = exports.HTMLBaseElement = exports.HTMLVideoElement = exports.HTMLAudioElement = exports.HTMLMediaElement = exports.HTMLMetaElement = exports.HTMLLabelElement = void 0;
|
8
8
|
const GlobalWindow_js_1 = __importDefault(require("./window/GlobalWindow.cjs"));
|
9
9
|
exports.GlobalWindow = GlobalWindow_js_1.default;
|
10
10
|
const Window_js_1 = __importDefault(require("./window/Window.cjs"));
|
@@ -196,4 +196,12 @@ const FormData_js_1 = __importDefault(require("./form-data/FormData.cjs"));
|
|
196
196
|
exports.FormData = FormData_js_1.default;
|
197
197
|
const EventPhaseEnum_js_1 = __importDefault(require("./event/EventPhaseEnum.cjs"));
|
198
198
|
exports.EventPhaseEnum = EventPhaseEnum_js_1.default;
|
199
|
+
const VirtualConsoleLogLevelEnum_js_1 = __importDefault(require("./console/enums/VirtualConsoleLogLevelEnum.cjs"));
|
200
|
+
exports.VirtualConsoleLogLevelEnum = VirtualConsoleLogLevelEnum_js_1.default;
|
201
|
+
const VirtualConsoleLogTypeEnum_js_1 = __importDefault(require("./console/enums/VirtualConsoleLogTypeEnum.cjs"));
|
202
|
+
exports.VirtualConsoleLogTypeEnum = VirtualConsoleLogTypeEnum_js_1.default;
|
203
|
+
const VirtualConsole_js_1 = __importDefault(require("./console/VirtualConsole.cjs"));
|
204
|
+
exports.VirtualConsole = VirtualConsole_js_1.default;
|
205
|
+
const VirtualConsolePrinter_js_1 = __importDefault(require("./console/VirtualConsolePrinter.cjs"));
|
206
|
+
exports.VirtualConsolePrinter = VirtualConsolePrinter_js_1.default;
|
199
207
|
//# sourceMappingURL=index.cjs.map
|
package/cjs/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,+EAAoD;
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,+EAAoD;AA2JnD,uBA3JM,yBAAY,CA2JN;AAzJb,mEAAwC;AA0JvC,iBA1JM,mBAAM,CA0JN;AAzJP,8EAAmD;AA2JlD,uBA3JM,yBAAY,CA2JN;AA1Jb,sFAA2D;AA2J1D,2BA3JM,6BAAgB,CA2JN;AA1JjB,8FAAmE;AA2JlE,+BA3JM,iCAAoB,CA2JN;AA1JrB,6BAA2C;AA2J1C,oFA3JQ,SAAG,OA2JR;AAwHH,gGAnRa,qBAAe,OAmRb;AAlRhB,yEAA8C;AA2J7C,mBA3JM,qBAAQ,CA2JN;AA1JT,kGAAuE;AA2JtE,2BA3JM,6BAAgB,CA2JN;AA1JjB,4FAAiE;AA2JhE,yBA3JM,2BAAc,CA2JN;AA1Jf,6DAAkC;AA2JjC,eA3JM,iBAAI,CA2JN;AA1JL,6DAAkC;AA2JjC,eA3JM,iBAAI,CA2JN;AA1JL,yEAA8C;AA2J7C,qBA3JM,uBAAU,CA2J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3JhB,4EAAiD;AA4JhD,sBA5JM,wBAAW,CA4JN;AA3JZ,oEAAyC;AA4JxC,kBA5JM,oBAAO,CA4JN;AA1JR,sEAA2C;AA4J1C,mBA5JM,qBAAQ,CA4JN;AA1JT,oEAAyC;AA4JxC,kBA5JM,oBAAO,CA4JN;AA1JR,0EAA+C;AA4J9C,mBA5JM,qBAAQ,CA4JN;AA3JT,kFAAuD;AA4JtD,yBA5JM,2BAAc,CA4JN;AA3Jf,kHAAuF;AA4JtF,qCA5JM,uCAA0B,CA4JN;AA3J3B,gHAAqF;AA4JpF,oCA5JM,sCAAyB,CA4JN;AAxJ1B,oFAAyD;AA4JxD,yBA5JM,2BAAc,CA4JN;AA3Jf,kGAAuE;AA4JtE,gCA5JM,kCAAqB,CA4JN"}
|
package/cjs/index.d.ts
CHANGED
@@ -144,5 +144,12 @@ import Headers from './fetch/Headers.cjs';
|
|
144
144
|
import IHeaders from './fetch/types/IHeaders.cjs';
|
145
145
|
import FormData from './form-data/FormData.cjs';
|
146
146
|
import EventPhaseEnum from './event/EventPhaseEnum.cjs';
|
147
|
-
|
147
|
+
import VirtualConsoleLogLevelEnum from './console/enums/VirtualConsoleLogLevelEnum.cjs';
|
148
|
+
import VirtualConsoleLogTypeEnum from './console/enums/VirtualConsoleLogTypeEnum.cjs';
|
149
|
+
import IVirtualConsoleLogEntry from './console/types/IVirtualConsoleLogEntry.cjs';
|
150
|
+
import IVirtualConsoleLogGroup from './console/types/IVirtualConsoleLogGroup.cjs';
|
151
|
+
import IVirtualConsolePrinter from './console/types/IVirtualConsolePrinter.cjs';
|
152
|
+
import VirtualConsole from './console/VirtualConsole.cjs';
|
153
|
+
import VirtualConsolePrinter from './console/VirtualConsolePrinter.cjs';
|
154
|
+
export { GlobalWindow, Window, IWindow, DataTransfer, DataTransferItem, DataTransferItemList, URL, Location, MutationObserver, ResizeObserver, Blob, File, FileReader, DOMException, History, CSSStyleDeclaration, Screen, AsyncTaskManager, NodeFilter, Event, EventTarget, IEventInit, IEventListener, IUIEventInit, UIEvent, ErrorEvent, FocusEvent, AnimationEvent, IAnimationEventInit, ICustomEventInit, CustomEvent, IErrorEventInit, IFocusEventInit, IInputEventInit, IKeyboardEventInit, IMouseEventInit, IProgressEventInit, ISubmitEventInit, IWheelEventInit, InputEvent, KeyboardEvent, MouseEvent, ProgressEvent, SubmitEvent, WheelEvent, DOMParser, Document, IDocument, HTMLDocument, XMLDocument, SVGDocument, Element, IElement, IHTMLCollection, HTMLCollection, HTMLFormControlsCollection, IHTMLFormControlsCollection, HTMLElement, IHTMLElement, HTMLTemplateElement, IHTMLTemplateElement, HTMLFormElement, IHTMLFormElement, HTMLInputElement, IHTMLInputElement, HTMLTextAreaElement, IHTMLTextAreaElement, HTMLImageElement, IHTMLImageElement, Image, HTMLScriptElement, HTMLLinkElement, IHTMLLinkElement, HTMLStyleElement, IHTMLStyleElement, HTMLSlotElement, IHTMLSlotElement, HTMLLabelElement, IHTMLLabelElement, HTMLMetaElement, IHTMLMetaElement, HTMLMediaElement, IHTMLMediaElement, HTMLAudioElement, IHTMLAudioElement, HTMLVideoElement, IHTMLVideoElement, HTMLBaseElement, IHTMLBaseElement, HTMLIFrameElement, IHTMLIFrameElement, SVGElement, ISVGElement, SVGGraphicsElement, ISVGGraphicsElement, SVGSVGElement, ISVGSVGElement, DocumentFragment, IDocumentFragment, ShadowRoot, IShadowRoot, Node, INode, INodeList, Text, IText, Comment, IComment, DocumentType, IDocumentType, NodeIterator, TreeWalker, CustomElementRegistry, XMLParser, XMLSerializer, CSSStyleSheet, CSSRule, CSSContainerRule, CSSFontFaceRule, CSSKeyframeRule, CSSKeyframesRule, CSSMediaRule, CSSStyleRule, CSSSupportsRule, Storage, DOMRect, URLSearchParams, Selection, Range, HTMLDialogElement, IHTMLDialogElement, Attr, IAttr, ProcessingInstruction, IProcessingInstruction, FileList, IFileList, AbortController, AbortSignal, Request, IRequest, Response, IResponse, Headers, IHeaders, FormData, EventPhaseEnum, VirtualConsoleLogLevelEnum, VirtualConsoleLogTypeEnum, IVirtualConsoleLogEntry, IVirtualConsoleLogGroup, IVirtualConsolePrinter, VirtualConsole, VirtualConsolePrinter };
|
148
155
|
//# sourceMappingURL=index.d.ts.map
|