Socket
Socket
Sign inDemoInstall

jsdom

Package Overview
Dependencies
111
Maintainers
6
Versions
258
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 20.0.1 to 20.0.2

4

lib/jsdom/browser/Window.js

@@ -345,3 +345,3 @@ "use strict";

const crypto = Crypto.create(window);
const customElementRegistry = CustomElementRegistry.create(window);
this._customElementRegistry = CustomElementRegistry.create(window);

@@ -445,3 +445,3 @@ define(this, {

get customElements() {
return customElementRegistry;
return this._customElementRegistry;
},

@@ -448,0 +448,0 @@ get event() {

@@ -14,2 +14,8 @@ "use strict";

getModifierState(keyArg) {
if (keyArg === "Control") {
return Boolean(this.ctrlKey);
}
if (["Alt", "Meta", "Shift"].includes(keyArg)) {
return Boolean(this[`${keyArg.toLowerCase()}Key`]);
}
return Boolean(this[`modifier${keyArg}`]);

@@ -16,0 +22,0 @@ }

@@ -152,3 +152,3 @@ "use strict";

const registry = implForWrapper(document._globalObject.customElements);
const registry = implForWrapper(document._globalObject._customElementRegistry);

@@ -155,0 +155,0 @@ const definitionByName = registry._customElementDefinitions.find(def => {

@@ -13,3 +13,3 @@ "use strict";

function HTMLConstructor(globalObject, constructorName, newTarget) {
const registry = implForWrapper(globalObject.customElements);
const registry = implForWrapper(globalObject._customElementRegistry);
if (newTarget === HTMLConstructor) {

@@ -16,0 +16,0 @@ throw new TypeError("Invalid constructor");

@@ -330,2 +330,5 @@ "use strict";

eventEmitterclient.end = () => {};
eventEmitterclient.abort = () => {
// do nothing
};
return eventEmitterclient;

@@ -332,0 +335,0 @@ }

{
"name": "jsdom",
"version": "20.0.1",
"version": "20.0.2",
"description": "A JavaScript implementation of many web standards",

@@ -50,5 +50,2 @@ "keywords": [

},
"_dependenciesComments": {
"parse5": "Pinned to exact version number because we monkeypatch its internals (see htmltodom.js)"
},
"peerDependencies": {

@@ -55,0 +52,0 @@ "canvas": "^2.5.0"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc