@types/jsdom
Advanced tools
Comparing version 16.2.15 to 20.0.0
@@ -5,3 +5,3 @@ /// <reference lib="dom" /> | ||
import { EventEmitter } from "events"; | ||
import { ElementLocation } from "parse5"; | ||
import { Token } from "parse5"; | ||
import { Context } from "vm"; | ||
@@ -43,3 +43,3 @@ import * as tough from "tough-cookie"; | ||
*/ | ||
nodeLocation(node: Node): ElementLocation | null; | ||
nodeLocation(node: Node): Token.Location | null | undefined; | ||
@@ -51,5 +51,3 @@ /** | ||
* | ||
* @throws {TypeError} | ||
* Note that this method will throw an exception if the `JSDOM` instance was created | ||
* without `runScripts` set, or if you are using JSDOM in a web browser. | ||
* @throws {TypeError} If the `JSDOM` instance was created without `runScripts` set, or if you are using JSDOM in a web browser. | ||
*/ | ||
@@ -151,3 +149,3 @@ getInternalVMContext(): Context; | ||
*/ | ||
contentType?: string | undefined; | ||
contentType?: SupportedContentTypes | undefined; | ||
@@ -164,2 +162,4 @@ /** | ||
type SupportedContentTypes = 'text/html' | 'application/xhtml+xml' | 'application/xml' | 'text/xml' | 'image/svg+xml'; | ||
interface VirtualConsoleSendToOptions { | ||
@@ -202,3 +202,3 @@ omitJSDOMErrors: boolean; | ||
eval(script: string): any; | ||
eval(script: string): unknown; | ||
parseInt(s: string, radix?: number): number; | ||
@@ -205,0 +205,0 @@ parseFloat(string: string): number; |
@@ -1,2 +0,2 @@ | ||
// Type definitions for jsdom 16.2 | ||
// Type definitions for jsdom 20.0 | ||
// Project: https://github.com/jsdom/jsdom | ||
@@ -7,4 +7,5 @@ // Definitions by: Leonard Thieu <https://github.com/leonard-thieu> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// Minimum TypeScript Version: 4.5 | ||
/// <reference path="ts4.0/index.d.ts"/> | ||
/// <reference path="base.d.ts"/> | ||
@@ -16,2 +17,4 @@ // tslint:disable-next-line: no-declare-current-package no-single-declare-module | ||
WeakRef: WeakRefConstructor; | ||
InputEvent: typeof InputEvent; | ||
External: typeof External; | ||
} | ||
@@ -18,0 +21,0 @@ } |
{ | ||
"name": "@types/jsdom", | ||
"version": "16.2.15", | ||
"version": "20.0.0", | ||
"description": "TypeScript definitions for jsdom", | ||
@@ -26,9 +26,2 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsdom", | ||
"types": "index.d.ts", | ||
"typesVersions": { | ||
"<=4.0": { | ||
"*": [ | ||
"ts4.0/*" | ||
] | ||
} | ||
}, | ||
"repository": { | ||
@@ -42,7 +35,13 @@ "type": "git", | ||
"@types/node": "*", | ||
"@types/parse5": "^6.0.3", | ||
"@types/tough-cookie": "*" | ||
"@types/tough-cookie": "*", | ||
"parse5": "^7.0.0" | ||
}, | ||
"typesPublisherContentHash": "7348b29fae4689b9d47590c95102ccbd3ca0004e9dbeec73873788b248d5c073", | ||
"typeScriptVersion": "4.0" | ||
"typesPublisherContentHash": "4bae16471aa39f2f5df8bfb6c676dc7255c9c17fdc7138b8d69bd821e02f4e61", | ||
"typeScriptVersion": "4.5", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts" | ||
}, | ||
"./package.json": "./package.json" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 20 Jul 2022 12:32:27 GMT | ||
* Last updated: Sat, 23 Jul 2022 22:02:25 GMT | ||
* Dependencies: [@types/parse5](https://npmjs.com/package/@types/parse5), [@types/tough-cookie](https://npmjs.com/package/@types/tough-cookie), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22202
5
418
+ Addedparse5@^7.0.0
+ Addedentities@4.5.0(transitive)
+ Addedparse5@7.2.1(transitive)
- Removed@types/parse5@^6.0.3
- Removed@types/parse5@6.0.3(transitive)