happy-dom 2.43.1 → 2.45.0
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/lib/navigator/MimeType.d.ts +25 -0
- package/lib/navigator/MimeType.js +32 -0
- package/lib/navigator/MimeType.js.map +1 -0
- package/lib/navigator/MimeTypeArray.d.ts +31 -0
- package/lib/navigator/MimeTypeArray.js +45 -0
- package/lib/navigator/MimeTypeArray.js.map +1 -0
- package/lib/navigator/Navigator.d.ts +41 -0
- package/lib/navigator/Navigator.js +78 -0
- package/lib/navigator/Navigator.js.map +1 -0
- package/lib/navigator/Plugin.d.ts +40 -0
- package/lib/navigator/Plugin.js +55 -0
- package/lib/navigator/Plugin.js.map +1 -0
- package/lib/navigator/PluginArray.d.ts +38 -0
- package/lib/navigator/PluginArray.js +54 -0
- package/lib/navigator/PluginArray.js.map +1 -0
- package/lib/window/IWindow.d.ts +11 -3
- package/lib/window/Window.d.ts +11 -3
- package/lib/window/Window.js +11 -1
- package/lib/window/Window.js.map +1 -1
- package/package.json +2 -2
- package/src/navigator/MimeType.ts +35 -0
- package/src/navigator/MimeTypeArray.ts +48 -0
- package/src/navigator/Navigator.ts +93 -0
- package/src/navigator/Plugin.ts +61 -0
- package/src/navigator/PluginArray.ts +58 -0
- package/src/window/IWindow.ts +11 -1
- package/src/window/Window.ts +11 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
import Plugin from './Plugin';
|
2
|
+
/**
|
3
|
+
* MimeType.
|
4
|
+
*/
|
5
|
+
export default class MimeType {
|
6
|
+
readonly description: string;
|
7
|
+
readonly enabledPlugin: Plugin;
|
8
|
+
readonly suffixes: string;
|
9
|
+
readonly type: string;
|
10
|
+
/**
|
11
|
+
* Constructor.
|
12
|
+
*
|
13
|
+
* @param description
|
14
|
+
* @param enabledPlugin
|
15
|
+
* @param suffixes
|
16
|
+
* @param type
|
17
|
+
*/
|
18
|
+
constructor(description: string, enabledPlugin: Plugin, suffixes: string, type: string);
|
19
|
+
/**
|
20
|
+
* Returns the object as a string.
|
21
|
+
*
|
22
|
+
* @returns String.
|
23
|
+
*/
|
24
|
+
toString(): string;
|
25
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
/**
|
4
|
+
* MimeType.
|
5
|
+
*/
|
6
|
+
var MimeType = /** @class */ (function () {
|
7
|
+
/**
|
8
|
+
* Constructor.
|
9
|
+
*
|
10
|
+
* @param description
|
11
|
+
* @param enabledPlugin
|
12
|
+
* @param suffixes
|
13
|
+
* @param type
|
14
|
+
*/
|
15
|
+
function MimeType(description, enabledPlugin, suffixes, type) {
|
16
|
+
this.description = description;
|
17
|
+
this.enabledPlugin = enabledPlugin;
|
18
|
+
this.suffixes = suffixes;
|
19
|
+
this.type = type;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Returns the object as a string.
|
23
|
+
*
|
24
|
+
* @returns String.
|
25
|
+
*/
|
26
|
+
MimeType.prototype.toString = function () {
|
27
|
+
return '[object MimeType]';
|
28
|
+
};
|
29
|
+
return MimeType;
|
30
|
+
}());
|
31
|
+
exports.default = MimeType;
|
32
|
+
//# sourceMappingURL=MimeType.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MimeType.js","sourceRoot":"","sources":["../../src/navigator/MimeType.ts"],"names":[],"mappings":";;AAEA;;GAEG;AACH;IAMC;;;;;;;OAOG;IACH,kBAAY,WAAmB,EAAE,aAAqB,EAAE,QAAgB,EAAE,IAAY;QACrF,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACI,2BAAQ,GAAf;QACC,OAAO,mBAAmB,CAAC;IAC5B,CAAC;IACF,eAAC;AAAD,CAAC,AA7BD,IA6BC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import MimeType from './MimeType';
|
2
|
+
/**
|
3
|
+
* MimeTypeArray.
|
4
|
+
*
|
5
|
+
* Reference:
|
6
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.
|
7
|
+
*/
|
8
|
+
export default class MimeTypeArray {
|
9
|
+
[n: number]: MimeType;
|
10
|
+
readonly length: number;
|
11
|
+
/**
|
12
|
+
* Constructor.
|
13
|
+
*
|
14
|
+
* @param mimeTypes
|
15
|
+
*/
|
16
|
+
constructor(mimeTypes: MimeType[]);
|
17
|
+
/**
|
18
|
+
* @param index
|
19
|
+
*/
|
20
|
+
item(index: number): MimeType;
|
21
|
+
/**
|
22
|
+
* @param name
|
23
|
+
*/
|
24
|
+
namedItem(name: string): MimeType;
|
25
|
+
/**
|
26
|
+
* Returns the object as a string.
|
27
|
+
*
|
28
|
+
* @returns String.
|
29
|
+
*/
|
30
|
+
toString(): string;
|
31
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
/**
|
4
|
+
* MimeTypeArray.
|
5
|
+
*
|
6
|
+
* Reference:
|
7
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.
|
8
|
+
*/
|
9
|
+
var MimeTypeArray = /** @class */ (function () {
|
10
|
+
/**
|
11
|
+
* Constructor.
|
12
|
+
*
|
13
|
+
* @param mimeTypes
|
14
|
+
*/
|
15
|
+
function MimeTypeArray(mimeTypes) {
|
16
|
+
for (var i = 0, max = mimeTypes.length; i < max; i++) {
|
17
|
+
this[i] = mimeTypes[i];
|
18
|
+
this[mimeTypes[i].type] = mimeTypes[i];
|
19
|
+
}
|
20
|
+
this.length = mimeTypes.length;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @param index
|
24
|
+
*/
|
25
|
+
MimeTypeArray.prototype.item = function (index) {
|
26
|
+
return this[index] || null;
|
27
|
+
};
|
28
|
+
/**
|
29
|
+
* @param name
|
30
|
+
*/
|
31
|
+
MimeTypeArray.prototype.namedItem = function (name) {
|
32
|
+
return this[name] || null;
|
33
|
+
};
|
34
|
+
/**
|
35
|
+
* Returns the object as a string.
|
36
|
+
*
|
37
|
+
* @returns String.
|
38
|
+
*/
|
39
|
+
MimeTypeArray.prototype.toString = function () {
|
40
|
+
return '[object MimeTypeArray]';
|
41
|
+
};
|
42
|
+
return MimeTypeArray;
|
43
|
+
}());
|
44
|
+
exports.default = MimeTypeArray;
|
45
|
+
//# sourceMappingURL=MimeTypeArray.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MimeTypeArray.js","sourceRoot":"","sources":["../../src/navigator/MimeTypeArray.ts"],"names":[],"mappings":";;AAEA;;;;;GAKG;AACH;IAIC;;;;OAIG;IACH,uBAAY,SAAqB;QAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACrD,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YACvB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,4BAAI,GAAX,UAAY,KAAa;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IAC5B,CAAC;IAED;;OAEG;IACI,iCAAS,GAAhB,UAAiB,IAAY;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,gCAAQ,GAAf;QACC,OAAO,wBAAwB,CAAC;IACjC,CAAC;IACF,oBAAC;AAAD,CAAC,AAvCD,IAuCC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import MimeTypeArray from './MimeTypeArray';
|
2
|
+
import PluginArray from './PluginArray';
|
3
|
+
/**
|
4
|
+
* Browser Navigator API.
|
5
|
+
*
|
6
|
+
* Mocked information is taken from FireFox.
|
7
|
+
*
|
8
|
+
* Reference:
|
9
|
+
* https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator.
|
10
|
+
*/
|
11
|
+
export default class Navigator {
|
12
|
+
readonly cookieEnabled: boolean;
|
13
|
+
readonly credentials: string;
|
14
|
+
readonly geolocation: string;
|
15
|
+
readonly language: string;
|
16
|
+
readonly languages: string[];
|
17
|
+
readonly locks: string;
|
18
|
+
readonly maxTouchPoints: number;
|
19
|
+
readonly hardwareConcurrency: number;
|
20
|
+
readonly appCodeName: string;
|
21
|
+
readonly appName: string;
|
22
|
+
readonly appVersion: string;
|
23
|
+
readonly platform: string;
|
24
|
+
readonly product: string;
|
25
|
+
readonly productSub: string;
|
26
|
+
readonly vendor: string;
|
27
|
+
readonly vendorSub: string;
|
28
|
+
readonly userAgent: string;
|
29
|
+
readonly onLine: boolean;
|
30
|
+
readonly permissions: string;
|
31
|
+
readonly webdriver: boolean;
|
32
|
+
readonly doNotTrack: string;
|
33
|
+
readonly mimeTypes: MimeTypeArray;
|
34
|
+
readonly plugins: PluginArray;
|
35
|
+
/**
|
36
|
+
* Returns the object as a string.
|
37
|
+
*
|
38
|
+
* @returns String.
|
39
|
+
*/
|
40
|
+
toString(): string;
|
41
|
+
}
|
@@ -0,0 +1,78 @@
|
|
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
|
+
var MimeTypeArray_1 = __importDefault(require("./MimeTypeArray"));
|
7
|
+
var PluginArray_1 = __importDefault(require("./PluginArray"));
|
8
|
+
/**
|
9
|
+
* Browser Navigator API.
|
10
|
+
*
|
11
|
+
* Mocked information is taken from FireFox.
|
12
|
+
*
|
13
|
+
* Reference:
|
14
|
+
* https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator.
|
15
|
+
*/
|
16
|
+
var Navigator = /** @class */ (function () {
|
17
|
+
function Navigator() {
|
18
|
+
// False if setting a cookie will be ignored and true otherwise.
|
19
|
+
this.cookieEnabled = true;
|
20
|
+
// TODO: Not implemented.
|
21
|
+
this.credentials = null;
|
22
|
+
// TODO: Not implemented.
|
23
|
+
this.geolocation = null;
|
24
|
+
// String representing the preferred language of the user, usually the language of the browser UI.
|
25
|
+
this.language = 'en-US';
|
26
|
+
// Array of string representing the user's preferred languages.
|
27
|
+
this.languages = ['en-US', 'en'];
|
28
|
+
// TODO: Not implemented.
|
29
|
+
this.locks = null;
|
30
|
+
// Maximum number of simultaneous touch contact points are supported by the current device.
|
31
|
+
this.maxTouchPoints = 0;
|
32
|
+
// Number of logical processors available to run threads on the user's computer.
|
33
|
+
this.hardwareConcurrency = 8;
|
34
|
+
// Browser app code name.
|
35
|
+
this.appCodeName = 'Mozilla';
|
36
|
+
// Browser app name.
|
37
|
+
this.appName = 'Netscape';
|
38
|
+
// Browser app version.
|
39
|
+
this.appVersion = '5.0 (Windows)';
|
40
|
+
// Browser platform.
|
41
|
+
this.platform = 'Win32';
|
42
|
+
// Browser product.
|
43
|
+
this.product = 'Gecko';
|
44
|
+
// Browser product sub.
|
45
|
+
this.productSub = '20100101';
|
46
|
+
// Browser vendor.
|
47
|
+
this.vendor = '';
|
48
|
+
// Browser vendor sub.
|
49
|
+
this.vendorSub = '';
|
50
|
+
// Browser user agent.
|
51
|
+
// "appCodeName/appVersion number (Platform; Security; OS-or-CPU; Localization; rv: revision-version-number) product/productSub Application-Name Application-Name-version".
|
52
|
+
this.userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0';
|
53
|
+
// Boolean value indicating whether the browser is working online.
|
54
|
+
this.onLine = true;
|
55
|
+
// TODO: Not implemented.
|
56
|
+
this.permissions = null;
|
57
|
+
// Boolean Indicates whether the user agent is controlled by automation.
|
58
|
+
this.webdriver = true;
|
59
|
+
// The user's Do Not Track setting, which indicates whether the user is requesting web sites and advertisers to not track them.
|
60
|
+
// The value of the property reflects that of the DNT HTTP header, i.e. Values of "1", "0", or "unspecified".
|
61
|
+
this.doNotTrack = 'unspecified';
|
62
|
+
// Browser mime-types.
|
63
|
+
this.mimeTypes = new MimeTypeArray_1.default([]);
|
64
|
+
// Browser plugins.
|
65
|
+
this.plugins = new PluginArray_1.default([]);
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* Returns the object as a string.
|
69
|
+
*
|
70
|
+
* @returns String.
|
71
|
+
*/
|
72
|
+
Navigator.prototype.toString = function () {
|
73
|
+
return '[object Navigator]';
|
74
|
+
};
|
75
|
+
return Navigator;
|
76
|
+
}());
|
77
|
+
exports.default = Navigator;
|
78
|
+
//# sourceMappingURL=Navigator.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Navigator.js","sourceRoot":"","sources":["../../src/navigator/Navigator.ts"],"names":[],"mappings":";;;;;AAAA,kEAA4C;AAC5C,8DAAwC;AAExC;;;;;;;GAOG;AACH;IAAA;QACC,gEAAgE;QAChD,kBAAa,GAAY,IAAI,CAAC;QAE9C,yBAAyB;QACT,gBAAW,GAAW,IAAI,CAAC;QAE3C,yBAAyB;QACT,gBAAW,GAAW,IAAI,CAAC;QAE3C,kGAAkG;QAClF,aAAQ,GAAW,OAAO,CAAC;QAE3C,+DAA+D;QAC/C,cAAS,GAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAEtD,yBAAyB;QACT,UAAK,GAAW,IAAI,CAAC;QAErC,2FAA2F;QAC3E,mBAAc,GAAW,CAAC,CAAC;QAE3C,gFAAgF;QAChE,wBAAmB,GAAW,CAAC,CAAC;QAEhD,yBAAyB;QACT,gBAAW,GAAW,SAAS,CAAC;QAEhD,oBAAoB;QACJ,YAAO,GAAW,UAAU,CAAC;QAE7C,uBAAuB;QACP,eAAU,GAAW,eAAe,CAAC;QAErD,oBAAoB;QACJ,aAAQ,GAAW,OAAO,CAAC;QAE3C,mBAAmB;QACH,YAAO,GAAW,OAAO,CAAC;QAE1C,uBAAuB;QACP,eAAU,GAAW,UAAU,CAAC;QAEhD,kBAAkB;QACF,WAAM,GAAW,EAAE,CAAC;QAEpC,sBAAsB;QACN,cAAS,GAAW,EAAE,CAAC;QAEvC,sBAAsB;QACtB,2KAA2K;QAC3J,cAAS,GACxB,gFAAgF,CAAC;QAElF,kEAAkE;QAClD,WAAM,GAAY,IAAI,CAAC;QAEvC,yBAAyB;QACT,gBAAW,GAAW,IAAI,CAAC;QAE3C,wEAAwE;QACxD,cAAS,GAAY,IAAI,CAAC;QAE1C,+HAA+H;QAC/H,6GAA6G;QAC7F,eAAU,GAAW,aAAa,CAAC;QAEnD,sBAAsB;QACN,cAAS,GAAkB,IAAI,uBAAa,CAAC,EAAE,CAAC,CAAC;QAEjE,mBAAmB;QACH,YAAO,GAAgB,IAAI,qBAAW,CAAC,EAAE,CAAC,CAAC;IAU5D,CAAC;IARA;;;;OAIG;IACI,4BAAQ,GAAf;QACC,OAAO,oBAAoB,CAAC;IAC7B,CAAC;IACF,gBAAC;AAAD,CAAC,AAjFD,IAiFC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import MimeType from './MimeType';
|
2
|
+
/**
|
3
|
+
* Plugin.
|
4
|
+
*/
|
5
|
+
export default class Plugin {
|
6
|
+
[n: number]: MimeType;
|
7
|
+
readonly length: number;
|
8
|
+
readonly description: string;
|
9
|
+
readonly filename: string;
|
10
|
+
readonly name: string;
|
11
|
+
/**
|
12
|
+
* Constructor.
|
13
|
+
*
|
14
|
+
* @param mimeTypes Mime types.
|
15
|
+
* @param description Description.
|
16
|
+
* @param filename Filename.
|
17
|
+
* @param name Name.
|
18
|
+
*/
|
19
|
+
constructor(mimeTypes: MimeType[], description: string, filename: string, name: string);
|
20
|
+
/**
|
21
|
+
* Item.
|
22
|
+
*
|
23
|
+
* @param index Number.
|
24
|
+
* @returns IMimeType.
|
25
|
+
*/
|
26
|
+
item(index: number): MimeType;
|
27
|
+
/**
|
28
|
+
* NamedItem.
|
29
|
+
*
|
30
|
+
* @param name String.
|
31
|
+
* @returns IMimeType.
|
32
|
+
*/
|
33
|
+
namedItem(name: string): MimeType;
|
34
|
+
/**
|
35
|
+
* Returns the object as a string.
|
36
|
+
*
|
37
|
+
* @returns String.
|
38
|
+
*/
|
39
|
+
toString(): string;
|
40
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
/**
|
4
|
+
* Plugin.
|
5
|
+
*/
|
6
|
+
var Plugin = /** @class */ (function () {
|
7
|
+
/**
|
8
|
+
* Constructor.
|
9
|
+
*
|
10
|
+
* @param mimeTypes Mime types.
|
11
|
+
* @param description Description.
|
12
|
+
* @param filename Filename.
|
13
|
+
* @param name Name.
|
14
|
+
*/
|
15
|
+
function Plugin(mimeTypes, description, filename, name) {
|
16
|
+
this.length = 0;
|
17
|
+
this.description = description;
|
18
|
+
this.filename = filename;
|
19
|
+
this.name = name;
|
20
|
+
for (var i = 0, max = mimeTypes.length; i < max; i++) {
|
21
|
+
this[i] = mimeTypes[i];
|
22
|
+
this[mimeTypes[i].type] = mimeTypes[i];
|
23
|
+
}
|
24
|
+
this.length = mimeTypes.length;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* Item.
|
28
|
+
*
|
29
|
+
* @param index Number.
|
30
|
+
* @returns IMimeType.
|
31
|
+
*/
|
32
|
+
Plugin.prototype.item = function (index) {
|
33
|
+
return this[index] || null;
|
34
|
+
};
|
35
|
+
/**
|
36
|
+
* NamedItem.
|
37
|
+
*
|
38
|
+
* @param name String.
|
39
|
+
* @returns IMimeType.
|
40
|
+
*/
|
41
|
+
Plugin.prototype.namedItem = function (name) {
|
42
|
+
return this[name] || null;
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* Returns the object as a string.
|
46
|
+
*
|
47
|
+
* @returns String.
|
48
|
+
*/
|
49
|
+
Plugin.prototype.toString = function () {
|
50
|
+
return '[object Plugin]';
|
51
|
+
};
|
52
|
+
return Plugin;
|
53
|
+
}());
|
54
|
+
exports.default = Plugin;
|
55
|
+
//# sourceMappingURL=Plugin.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/navigator/Plugin.ts"],"names":[],"mappings":";;AAEA;;GAEG;AACH;IAOC;;;;;;;OAOG;IACH,gBAAY,SAAqB,EAAE,WAAmB,EAAE,QAAgB,EAAE,IAAY;QAbtE,WAAM,GAAW,CAAC,CAAC;QAclC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACrD,IAAI,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YACvB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;SACvC;QACD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACI,qBAAI,GAAX,UAAY,KAAa;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACI,0BAAS,GAAhB,UAAiB,IAAY;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACI,yBAAQ,GAAf;QACC,OAAO,iBAAiB,CAAC;IAC1B,CAAC;IACF,aAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import Plugin from './Plugin';
|
2
|
+
/**
|
3
|
+
* PluginArray.
|
4
|
+
*/
|
5
|
+
export default class PluginArray {
|
6
|
+
[n: number]: Plugin;
|
7
|
+
readonly length: number;
|
8
|
+
/**
|
9
|
+
* Constructor.
|
10
|
+
*
|
11
|
+
* @param plugins Plugins.
|
12
|
+
*/
|
13
|
+
constructor(plugins: Plugin[]);
|
14
|
+
/**
|
15
|
+
* Returns an item.
|
16
|
+
*
|
17
|
+
* @param index Index.
|
18
|
+
* @returns Plugin.
|
19
|
+
*/
|
20
|
+
item(index: number): Plugin;
|
21
|
+
/**
|
22
|
+
* Returns an item.
|
23
|
+
*
|
24
|
+
* @param name Name.
|
25
|
+
* @returns Plugin.
|
26
|
+
*/
|
27
|
+
namedItem(name: string): Plugin;
|
28
|
+
/**
|
29
|
+
* Refreshes the list.
|
30
|
+
*/
|
31
|
+
refresh(): void;
|
32
|
+
/**
|
33
|
+
* Returns the object as a string.
|
34
|
+
*
|
35
|
+
* @returns String.
|
36
|
+
*/
|
37
|
+
toString(): string;
|
38
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
/**
|
4
|
+
* PluginArray.
|
5
|
+
*/
|
6
|
+
var PluginArray = /** @class */ (function () {
|
7
|
+
/**
|
8
|
+
* Constructor.
|
9
|
+
*
|
10
|
+
* @param plugins Plugins.
|
11
|
+
*/
|
12
|
+
function PluginArray(plugins) {
|
13
|
+
for (var i = 0, max = plugins.length; i < max; i++) {
|
14
|
+
this[i] = plugins[i];
|
15
|
+
this[plugins[i].name] = plugins[i];
|
16
|
+
}
|
17
|
+
this.length = plugins.length;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Returns an item.
|
21
|
+
*
|
22
|
+
* @param index Index.
|
23
|
+
* @returns Plugin.
|
24
|
+
*/
|
25
|
+
PluginArray.prototype.item = function (index) {
|
26
|
+
return this[index] || null;
|
27
|
+
};
|
28
|
+
/**
|
29
|
+
* Returns an item.
|
30
|
+
*
|
31
|
+
* @param name Name.
|
32
|
+
* @returns Plugin.
|
33
|
+
*/
|
34
|
+
PluginArray.prototype.namedItem = function (name) {
|
35
|
+
return this[name] || null;
|
36
|
+
};
|
37
|
+
/**
|
38
|
+
* Refreshes the list.
|
39
|
+
*/
|
40
|
+
PluginArray.prototype.refresh = function () {
|
41
|
+
// Do nothing
|
42
|
+
};
|
43
|
+
/**
|
44
|
+
* Returns the object as a string.
|
45
|
+
*
|
46
|
+
* @returns String.
|
47
|
+
*/
|
48
|
+
PluginArray.prototype.toString = function () {
|
49
|
+
return '[object PluginArray]';
|
50
|
+
};
|
51
|
+
return PluginArray;
|
52
|
+
}());
|
53
|
+
exports.default = PluginArray;
|
54
|
+
//# sourceMappingURL=PluginArray.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PluginArray.js","sourceRoot":"","sources":["../../src/navigator/PluginArray.ts"],"names":[],"mappings":";;AAEA;;GAEG;AACH;IAIC;;;;OAIG;IACH,qBAAY,OAAiB;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YACnD,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;SACnC;QACD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACI,0BAAI,GAAX,UAAY,KAAa;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACI,+BAAS,GAAhB,UAAiB,IAAY;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;IAC3B,CAAC;IAED;;OAEG;IACI,6BAAO,GAAd;QACC,aAAa;IACd,CAAC;IAED;;;;OAIG;IACI,8BAAQ,GAAf;QACC,OAAO,sBAAsB,CAAC;IAC/B,CAAC;IACF,kBAAC;AAAD,CAAC,AApDD,IAoDC"}
|
package/lib/window/IWindow.d.ts
CHANGED
@@ -71,6 +71,11 @@ import HTMLCollection from '../nodes/element/HTMLCollection';
|
|
71
71
|
import NodeList from '../nodes/node/NodeList';
|
72
72
|
import Selection from '../selection/Selection';
|
73
73
|
import IEventTarget from '../event/IEventTarget';
|
74
|
+
import Navigator from '../navigator/Navigator';
|
75
|
+
import MimeType from '../navigator/MimeType';
|
76
|
+
import MimeTypeArray from '../navigator/MimeTypeArray';
|
77
|
+
import Plugin from '../navigator/Plugin';
|
78
|
+
import PluginArray from '../navigator/PluginArray';
|
74
79
|
/**
|
75
80
|
* Window.
|
76
81
|
*/
|
@@ -148,15 +153,18 @@ export default interface IWindow extends IEventTarget {
|
|
148
153
|
readonly CSSUnitValue: typeof CSSUnitValue;
|
149
154
|
readonly CSS: CSS;
|
150
155
|
readonly Selection: typeof Selection;
|
156
|
+
readonly Navigator: typeof Navigator;
|
157
|
+
readonly MimeType: typeof MimeType;
|
158
|
+
readonly MimeTypeArray: typeof MimeTypeArray;
|
159
|
+
readonly Plugin: typeof Plugin;
|
160
|
+
readonly PluginArray: typeof PluginArray;
|
151
161
|
onload: (event: Event) => void;
|
152
162
|
onerror: (event: ErrorEvent) => void;
|
153
163
|
readonly document: Document;
|
154
164
|
readonly customElements: CustomElementRegistry;
|
155
165
|
readonly location: Location;
|
156
166
|
readonly history: History;
|
157
|
-
readonly navigator:
|
158
|
-
userAgent: string;
|
159
|
-
};
|
167
|
+
readonly navigator: Navigator;
|
160
168
|
readonly console: Console;
|
161
169
|
readonly self: IWindow;
|
162
170
|
readonly top: IWindow;
|
package/lib/window/Window.d.ts
CHANGED
@@ -71,6 +71,11 @@ import NodeList from '../nodes/node/NodeList';
|
|
71
71
|
import MediaQueryList from '../match-media/MediaQueryList';
|
72
72
|
import Selection from '../selection/Selection';
|
73
73
|
import * as PerfHooks from 'perf_hooks';
|
74
|
+
import Navigator from '../navigator/Navigator';
|
75
|
+
import MimeType from '../navigator/MimeType';
|
76
|
+
import MimeTypeArray from '../navigator/MimeTypeArray';
|
77
|
+
import Plugin from '../navigator/Plugin';
|
78
|
+
import PluginArray from '../navigator/PluginArray';
|
74
79
|
/**
|
75
80
|
* Handles the Window.
|
76
81
|
*/
|
@@ -165,15 +170,18 @@ export default class Window extends EventTarget implements IWindow, NodeJS.Globa
|
|
165
170
|
readonly MediaQueryList: typeof MediaQueryList;
|
166
171
|
readonly CSSUnitValue: typeof CSSUnitValue;
|
167
172
|
readonly Selection: typeof Selection;
|
173
|
+
readonly Navigator: typeof Navigator;
|
174
|
+
readonly MimeType: typeof MimeType;
|
175
|
+
readonly MimeTypeArray: typeof MimeTypeArray;
|
176
|
+
readonly Plugin: typeof Plugin;
|
177
|
+
readonly PluginArray: typeof PluginArray;
|
168
178
|
onload: (event: Event) => void;
|
169
179
|
onerror: (event: ErrorEvent) => void;
|
170
180
|
readonly document: Document;
|
171
181
|
readonly customElements: CustomElementRegistry;
|
172
182
|
readonly location: Location;
|
173
183
|
readonly history: History;
|
174
|
-
readonly navigator:
|
175
|
-
userAgent: string;
|
176
|
-
};
|
184
|
+
readonly navigator: Navigator;
|
177
185
|
readonly console: Console;
|
178
186
|
readonly self: this;
|
179
187
|
readonly top: this;
|
package/lib/window/Window.js
CHANGED
@@ -147,6 +147,11 @@ var NodeList_1 = __importDefault(require("../nodes/node/NodeList"));
|
|
147
147
|
var MediaQueryList_1 = __importDefault(require("../match-media/MediaQueryList"));
|
148
148
|
var Selection_1 = __importDefault(require("../selection/Selection"));
|
149
149
|
var PerfHooks = __importStar(require("perf_hooks"));
|
150
|
+
var Navigator_1 = __importDefault(require("../navigator/Navigator"));
|
151
|
+
var MimeType_1 = __importDefault(require("../navigator/MimeType"));
|
152
|
+
var MimeTypeArray_1 = __importDefault(require("../navigator/MimeTypeArray"));
|
153
|
+
var Plugin_1 = __importDefault(require("../navigator/Plugin"));
|
154
|
+
var PluginArray_1 = __importDefault(require("../navigator/PluginArray"));
|
150
155
|
var FETCH_RESPONSE_TYPE_METHODS = ['blob', 'json', 'text'];
|
151
156
|
/**
|
152
157
|
* Handles the Window.
|
@@ -242,13 +247,18 @@ var Window = /** @class */ (function (_super) {
|
|
242
247
|
_this.MediaQueryList = MediaQueryList_1.default;
|
243
248
|
_this.CSSUnitValue = CSSUnitValue_1.default;
|
244
249
|
_this.Selection = Selection_1.default;
|
250
|
+
_this.Navigator = Navigator_1.default;
|
251
|
+
_this.MimeType = MimeType_1.default;
|
252
|
+
_this.MimeTypeArray = MimeTypeArray_1.default;
|
253
|
+
_this.Plugin = Plugin_1.default;
|
254
|
+
_this.PluginArray = PluginArray_1.default;
|
245
255
|
// Events
|
246
256
|
_this.onload = null;
|
247
257
|
_this.onerror = null;
|
248
258
|
_this.customElements = new CustomElementRegistry_1.default();
|
249
259
|
_this.location = new Location_1.default();
|
250
260
|
_this.history = new History_1.default();
|
251
|
-
_this.navigator =
|
261
|
+
_this.navigator = new Navigator_1.default();
|
252
262
|
_this.console = global ? global.console : null;
|
253
263
|
_this.self = _this;
|
254
264
|
_this.top = _this;
|
package/lib/window/Window.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Window.js","sourceRoot":"","sources":["../../src/window/Window.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kGAA4E;AAC5E,wEAAkD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AAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,2BAAiB,CAAC,KAAK,CAAC,CAAC;6BAChE;wBACF,CAAC,CAAC;6BACD,KAAK,CAAC,UAAA,KAAK;4BACX,MAAM,CAAC,KAAK,CAAC,CAAC;4BACd,KAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,2BAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;wBACxE,CAAC,CAAC,CAAC;oBACL,CAAC,CAAC,EAAC;;;KACH;IACF,aAAC;AAAD,CAAC,AAjcD,CAAoC,qBAAW,GAic9C"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "happy-dom",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.45.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"homepage": "https://github.com/capricorn86/happy-dom",
|
6
6
|
"repository": "https://github.com/capricorn86/happy-dom",
|
@@ -75,5 +75,5 @@
|
|
75
75
|
"ts-jest": "^26.5.6",
|
76
76
|
"typescript": "^4.2.4"
|
77
77
|
},
|
78
|
-
"gitHead": "
|
78
|
+
"gitHead": "b4194bab2382295367574f6b651c97cf28b0fa2a"
|
79
79
|
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import Plugin from './Plugin';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* MimeType.
|
5
|
+
*/
|
6
|
+
export default class MimeType {
|
7
|
+
public readonly description: string;
|
8
|
+
public readonly enabledPlugin: Plugin;
|
9
|
+
public readonly suffixes: string;
|
10
|
+
public readonly type: string;
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Constructor.
|
14
|
+
*
|
15
|
+
* @param description
|
16
|
+
* @param enabledPlugin
|
17
|
+
* @param suffixes
|
18
|
+
* @param type
|
19
|
+
*/
|
20
|
+
constructor(description: string, enabledPlugin: Plugin, suffixes: string, type: string) {
|
21
|
+
this.description = description;
|
22
|
+
this.enabledPlugin = enabledPlugin;
|
23
|
+
this.suffixes = suffixes;
|
24
|
+
this.type = type;
|
25
|
+
}
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Returns the object as a string.
|
29
|
+
*
|
30
|
+
* @returns String.
|
31
|
+
*/
|
32
|
+
public toString(): string {
|
33
|
+
return '[object MimeType]';
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import MimeType from './MimeType';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* MimeTypeArray.
|
5
|
+
*
|
6
|
+
* Reference:
|
7
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray.
|
8
|
+
*/
|
9
|
+
export default class MimeTypeArray {
|
10
|
+
[n: number]: MimeType;
|
11
|
+
public readonly length: number;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Constructor.
|
15
|
+
*
|
16
|
+
* @param mimeTypes
|
17
|
+
*/
|
18
|
+
constructor(mimeTypes: MimeType[]) {
|
19
|
+
for (let i = 0, max = mimeTypes.length; i < max; i++) {
|
20
|
+
this[i] = mimeTypes[i];
|
21
|
+
this[mimeTypes[i].type] = mimeTypes[i];
|
22
|
+
}
|
23
|
+
this.length = mimeTypes.length;
|
24
|
+
}
|
25
|
+
|
26
|
+
/**
|
27
|
+
* @param index
|
28
|
+
*/
|
29
|
+
public item(index: number): MimeType {
|
30
|
+
return this[index] || null;
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* @param name
|
35
|
+
*/
|
36
|
+
public namedItem(name: string): MimeType {
|
37
|
+
return this[name] || null;
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Returns the object as a string.
|
42
|
+
*
|
43
|
+
* @returns String.
|
44
|
+
*/
|
45
|
+
public toString(): string {
|
46
|
+
return '[object MimeTypeArray]';
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import MimeTypeArray from './MimeTypeArray';
|
2
|
+
import PluginArray from './PluginArray';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Browser Navigator API.
|
6
|
+
*
|
7
|
+
* Mocked information is taken from FireFox.
|
8
|
+
*
|
9
|
+
* Reference:
|
10
|
+
* https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator.
|
11
|
+
*/
|
12
|
+
export default class Navigator {
|
13
|
+
// False if setting a cookie will be ignored and true otherwise.
|
14
|
+
public readonly cookieEnabled: boolean = true;
|
15
|
+
|
16
|
+
// TODO: Not implemented.
|
17
|
+
public readonly credentials: string = null;
|
18
|
+
|
19
|
+
// TODO: Not implemented.
|
20
|
+
public readonly geolocation: string = null;
|
21
|
+
|
22
|
+
// String representing the preferred language of the user, usually the language of the browser UI.
|
23
|
+
public readonly language: string = 'en-US';
|
24
|
+
|
25
|
+
// Array of string representing the user's preferred languages.
|
26
|
+
public readonly languages: string[] = ['en-US', 'en'];
|
27
|
+
|
28
|
+
// TODO: Not implemented.
|
29
|
+
public readonly locks: string = null;
|
30
|
+
|
31
|
+
// Maximum number of simultaneous touch contact points are supported by the current device.
|
32
|
+
public readonly maxTouchPoints: number = 0;
|
33
|
+
|
34
|
+
// Number of logical processors available to run threads on the user's computer.
|
35
|
+
public readonly hardwareConcurrency: number = 8;
|
36
|
+
|
37
|
+
// Browser app code name.
|
38
|
+
public readonly appCodeName: string = 'Mozilla';
|
39
|
+
|
40
|
+
// Browser app name.
|
41
|
+
public readonly appName: string = 'Netscape';
|
42
|
+
|
43
|
+
// Browser app version.
|
44
|
+
public readonly appVersion: string = '5.0 (Windows)';
|
45
|
+
|
46
|
+
// Browser platform.
|
47
|
+
public readonly platform: string = 'Win32';
|
48
|
+
|
49
|
+
// Browser product.
|
50
|
+
public readonly product: string = 'Gecko';
|
51
|
+
|
52
|
+
// Browser product sub.
|
53
|
+
public readonly productSub: string = '20100101';
|
54
|
+
|
55
|
+
// Browser vendor.
|
56
|
+
public readonly vendor: string = '';
|
57
|
+
|
58
|
+
// Browser vendor sub.
|
59
|
+
public readonly vendorSub: string = '';
|
60
|
+
|
61
|
+
// Browser user agent.
|
62
|
+
// "appCodeName/appVersion number (Platform; Security; OS-or-CPU; Localization; rv: revision-version-number) product/productSub Application-Name Application-Name-version".
|
63
|
+
public readonly userAgent: string =
|
64
|
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0';
|
65
|
+
|
66
|
+
// Boolean value indicating whether the browser is working online.
|
67
|
+
public readonly onLine: boolean = true;
|
68
|
+
|
69
|
+
// TODO: Not implemented.
|
70
|
+
public readonly permissions: string = null;
|
71
|
+
|
72
|
+
// Boolean Indicates whether the user agent is controlled by automation.
|
73
|
+
public readonly webdriver: boolean = true;
|
74
|
+
|
75
|
+
// The user's Do Not Track setting, which indicates whether the user is requesting web sites and advertisers to not track them.
|
76
|
+
// The value of the property reflects that of the DNT HTTP header, i.e. Values of "1", "0", or "unspecified".
|
77
|
+
public readonly doNotTrack: string = 'unspecified';
|
78
|
+
|
79
|
+
// Browser mime-types.
|
80
|
+
public readonly mimeTypes: MimeTypeArray = new MimeTypeArray([]);
|
81
|
+
|
82
|
+
// Browser plugins.
|
83
|
+
public readonly plugins: PluginArray = new PluginArray([]);
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Returns the object as a string.
|
87
|
+
*
|
88
|
+
* @returns String.
|
89
|
+
*/
|
90
|
+
public toString(): string {
|
91
|
+
return '[object Navigator]';
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import MimeType from './MimeType';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Plugin.
|
5
|
+
*/
|
6
|
+
export default class Plugin {
|
7
|
+
[n: number]: MimeType;
|
8
|
+
public readonly length: number = 0;
|
9
|
+
public readonly description: string;
|
10
|
+
public readonly filename: string;
|
11
|
+
public readonly name: string;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Constructor.
|
15
|
+
*
|
16
|
+
* @param mimeTypes Mime types.
|
17
|
+
* @param description Description.
|
18
|
+
* @param filename Filename.
|
19
|
+
* @param name Name.
|
20
|
+
*/
|
21
|
+
constructor(mimeTypes: MimeType[], description: string, filename: string, name: string) {
|
22
|
+
this.description = description;
|
23
|
+
this.filename = filename;
|
24
|
+
this.name = name;
|
25
|
+
|
26
|
+
for (let i = 0, max = mimeTypes.length; i < max; i++) {
|
27
|
+
this[i] = mimeTypes[i];
|
28
|
+
this[mimeTypes[i].type] = mimeTypes[i];
|
29
|
+
}
|
30
|
+
this.length = mimeTypes.length;
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Item.
|
35
|
+
*
|
36
|
+
* @param index Number.
|
37
|
+
* @returns IMimeType.
|
38
|
+
*/
|
39
|
+
public item(index: number): MimeType {
|
40
|
+
return this[index] || null;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* NamedItem.
|
45
|
+
*
|
46
|
+
* @param name String.
|
47
|
+
* @returns IMimeType.
|
48
|
+
*/
|
49
|
+
public namedItem(name: string): MimeType {
|
50
|
+
return this[name] || null;
|
51
|
+
}
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Returns the object as a string.
|
55
|
+
*
|
56
|
+
* @returns String.
|
57
|
+
*/
|
58
|
+
public toString(): string {
|
59
|
+
return '[object Plugin]';
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import Plugin from './Plugin';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* PluginArray.
|
5
|
+
*/
|
6
|
+
export default class PluginArray {
|
7
|
+
[n: number]: Plugin;
|
8
|
+
public readonly length: number;
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Constructor.
|
12
|
+
*
|
13
|
+
* @param plugins Plugins.
|
14
|
+
*/
|
15
|
+
constructor(plugins: Plugin[]) {
|
16
|
+
for (let i = 0, max = plugins.length; i < max; i++) {
|
17
|
+
this[i] = plugins[i];
|
18
|
+
this[plugins[i].name] = plugins[i];
|
19
|
+
}
|
20
|
+
this.length = plugins.length;
|
21
|
+
}
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Returns an item.
|
25
|
+
*
|
26
|
+
* @param index Index.
|
27
|
+
* @returns Plugin.
|
28
|
+
*/
|
29
|
+
public item(index: number): Plugin {
|
30
|
+
return this[index] || null;
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Returns an item.
|
35
|
+
*
|
36
|
+
* @param name Name.
|
37
|
+
* @returns Plugin.
|
38
|
+
*/
|
39
|
+
public namedItem(name: string): Plugin {
|
40
|
+
return this[name] || null;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Refreshes the list.
|
45
|
+
*/
|
46
|
+
public refresh(): void {
|
47
|
+
// Do nothing
|
48
|
+
}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Returns the object as a string.
|
52
|
+
*
|
53
|
+
* @returns String.
|
54
|
+
*/
|
55
|
+
public toString(): string {
|
56
|
+
return '[object PluginArray]';
|
57
|
+
}
|
58
|
+
}
|
package/src/window/IWindow.ts
CHANGED
@@ -70,6 +70,11 @@ import HTMLCollection from '../nodes/element/HTMLCollection';
|
|
70
70
|
import NodeList from '../nodes/node/NodeList';
|
71
71
|
import Selection from '../selection/Selection';
|
72
72
|
import IEventTarget from '../event/IEventTarget';
|
73
|
+
import Navigator from '../navigator/Navigator';
|
74
|
+
import MimeType from '../navigator/MimeType';
|
75
|
+
import MimeTypeArray from '../navigator/MimeTypeArray';
|
76
|
+
import Plugin from '../navigator/Plugin';
|
77
|
+
import PluginArray from '../navigator/PluginArray';
|
73
78
|
|
74
79
|
/**
|
75
80
|
* Window.
|
@@ -151,6 +156,11 @@ export default interface IWindow extends IEventTarget {
|
|
151
156
|
readonly CSSUnitValue: typeof CSSUnitValue;
|
152
157
|
readonly CSS: CSS;
|
153
158
|
readonly Selection: typeof Selection;
|
159
|
+
readonly Navigator: typeof Navigator;
|
160
|
+
readonly MimeType: typeof MimeType;
|
161
|
+
readonly MimeTypeArray: typeof MimeTypeArray;
|
162
|
+
readonly Plugin: typeof Plugin;
|
163
|
+
readonly PluginArray: typeof PluginArray;
|
154
164
|
|
155
165
|
// Events
|
156
166
|
onload: (event: Event) => void;
|
@@ -161,7 +171,7 @@ export default interface IWindow extends IEventTarget {
|
|
161
171
|
readonly customElements: CustomElementRegistry;
|
162
172
|
readonly location: Location;
|
163
173
|
readonly history: History;
|
164
|
-
readonly navigator:
|
174
|
+
readonly navigator: Navigator;
|
165
175
|
readonly console: Console;
|
166
176
|
readonly self: IWindow;
|
167
177
|
readonly top: IWindow;
|
package/src/window/Window.ts
CHANGED
@@ -75,6 +75,11 @@ import NodeList from '../nodes/node/NodeList';
|
|
75
75
|
import MediaQueryList from '../match-media/MediaQueryList';
|
76
76
|
import Selection from '../selection/Selection';
|
77
77
|
import * as PerfHooks from 'perf_hooks';
|
78
|
+
import Navigator from '../navigator/Navigator';
|
79
|
+
import MimeType from '../navigator/MimeType';
|
80
|
+
import MimeTypeArray from '../navigator/MimeTypeArray';
|
81
|
+
import Plugin from '../navigator/Plugin';
|
82
|
+
import PluginArray from '../navigator/PluginArray';
|
78
83
|
|
79
84
|
const FETCH_RESPONSE_TYPE_METHODS = ['blob', 'json', 'text'];
|
80
85
|
|
@@ -162,6 +167,11 @@ export default class Window extends EventTarget implements IWindow, NodeJS.Globa
|
|
162
167
|
public readonly MediaQueryList = MediaQueryList;
|
163
168
|
public readonly CSSUnitValue = CSSUnitValue;
|
164
169
|
public readonly Selection = Selection;
|
170
|
+
public readonly Navigator = Navigator;
|
171
|
+
public readonly MimeType = MimeType;
|
172
|
+
public readonly MimeTypeArray = MimeTypeArray;
|
173
|
+
public readonly Plugin = Plugin;
|
174
|
+
public readonly PluginArray = PluginArray;
|
165
175
|
|
166
176
|
// Events
|
167
177
|
public onload: (event: Event) => void = null;
|
@@ -172,7 +182,7 @@ export default class Window extends EventTarget implements IWindow, NodeJS.Globa
|
|
172
182
|
public readonly customElements: CustomElementRegistry = new CustomElementRegistry();
|
173
183
|
public readonly location = new Location();
|
174
184
|
public readonly history = new History();
|
175
|
-
public readonly navigator =
|
185
|
+
public readonly navigator = new Navigator();
|
176
186
|
public readonly console = global ? global.console : null;
|
177
187
|
public readonly self = this;
|
178
188
|
public readonly top = this;
|