Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/jsdom

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jsdom - npm Package Compare versions

Comparing version 2.0.33 to 2.0.34

62

jsdom v2.0/index.d.ts

@@ -46,16 +46,16 @@ // Type definitions for jsdom 2.0.0

export interface WindowProperties {
parsingMode?: string; // html, xml, auto, undefined
contentType?: string;
parsingMode?: string | undefined; // html, xml, auto, undefined
contentType?: string | undefined;
parser?: any;
url?: string;
referrer?: string;
cookieJar?: CookieJar;
cookie?: string;
url?: string | undefined;
referrer?: string | undefined;
cookieJar?: CookieJar | undefined;
cookie?: string | undefined;
resourceLoader?: any;
deferClose?: boolean;
concurrentNodeIterators?: number;
virtualConsole?: VirtualConsole;
created?: (something: any, window: Window) => any;
features?: FeatureOptions;
top?: Window;
deferClose?: boolean | undefined;
concurrentNodeIterators?: number | undefined;
virtualConsole?: VirtualConsole | undefined;
created?: ((something: any, window: Window) => any) | undefined;
features?: FeatureOptions | undefined;
top?: Window | undefined;
}

@@ -113,3 +113,3 @@

*/
FetchExternalResources?: string[] | boolean;
FetchExternalResources?: string[] | boolean | undefined;

@@ -122,3 +122,3 @@ /**

*/
ProcessExternalResources?: string[] | boolean;
ProcessExternalResources?: string[] | boolean | undefined;

@@ -131,3 +131,3 @@ /**

*/
SkipExternalResources?: string | boolean;
SkipExternalResources?: string | boolean | undefined;
}

@@ -139,11 +139,11 @@

*/
referrer?: string;
referrer?: string | undefined;
/**
* manually set a cookie value, e.g. 'key=value; expires=Wed, Sep 21 2011 12:00:00 GMT; path=/'.
*/
cookie?: string;
cookie?: string | undefined;
/**
* a cookie domain for the manually set cookie; defaults to 127.0.0.1.
*/
cookieDomain?: string;
cookieDomain?: string | undefined;
}

@@ -155,34 +155,34 @@

*/
html?: string;
html?: string | undefined;
/**
* a file which jsdom will load HTML from; the resulting window's location.href will be a file:// URL.
*/
file?: string;
file?: string | undefined;
/**
* sets the resulting window's location.href; if config.html and config.file are not provided, jsdom will load HTML from this URL
*/
url?: string;
url?: string | undefined;
/**
* a string or array of strings, containing file names or URLs that will be inserted as <script> tags
*/
scripts?: string[];
scripts?: string[] | undefined;
/**
* an array of JavaScript strings that will be evaluated against the resulting document. Similar to scripts, but it accepts JavaScript instead of paths/URLs.
*/
src?: string[];
src?: string[] | undefined;
/**
* a custom cookie jar, if desired; see mikeal/request documentation.
*/
jar?: CookieJar;
jar?: CookieJar | undefined;
/**
* either "auto", "html", or "xml". The default is "auto", which uses HTML behavior unless config.url responds with an XML Content-Type, or config.file contains a filename ending in .xml or .xhtml. Setting to "xml" will attempt to parse the document as an XHTML document. (jsdom is currently only OK at doing that.)
*/
parsingMode?: string;
document?: EnvDocument;
parsingMode?: string | undefined;
document?: EnvDocument | undefined;
/**
* Note: the default feature set for jsdom.env does not include fetching remote JavaScript and executing it. This is something that you will need to carefully enable yourself.
*/
features?: FeatureOptions;
features?: FeatureOptions | undefined;
virtualConsole?: VirtualConsole;
virtualConsole?: VirtualConsole | undefined;

@@ -195,7 +195,7 @@ /**

*/
done?: Callback;
done?: Callback | undefined;
/**
* The loaded callback is called along with the window's 'load' event. This means it will only be called if creation succeeds without error. Note that by the time it has called, any external resources will have been downloaded, and any <script>s will have finished executing. If errors is non-null, it will contain an array of all JavaScript errors that occured during script execution. window will still be passed, however.
*/
loaded?: Callback;
loaded?: Callback | undefined;

@@ -205,3 +205,3 @@ /**

*/
created?: (error: Error, window: Window) => void;
created?: ((error: Error, window: Window) => void) | undefined;
}
{
"name": "@types/jsdom",
"version": "2.0.33",
"version": "2.0.34",
"description": "TypeScript definitions for jsdom",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsdom",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "ddc642bba4a468377f86fa2b3404653f2adf70199a304c5596f98fb5fd2e2d14",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "9540458f66eead967947ff51cd6c5c359119e3a8735d26b6072fdc87d1acb4e1",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 15 May 2020 04:09:50 GMT
* Last updated: Tue, 06 Jul 2021 21:33:46 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/jquery](https://npmjs.com/package/@types/jquery)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc