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

jsdom

Package Overview
Dependencies
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdom - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

3

lib/jsdom.js

@@ -171,3 +171,4 @@ var dom = exports.dom = require("./jsdom/level3/index").dom,

'FetchExternalResources' : false,
'ProcessExternalResources' : false
'ProcessExternalResources' : false,
'SkipExternalResources' : false
},

@@ -174,0 +175,0 @@ url: config.url

@@ -5,10 +5,12 @@ exports.availableDocumentFeatures = [

'MutationEvents',
'QuerySelector'
'QuerySelector',
'SkipExternalResources'
];
exports.defaultDocumentFeatures = {
"FetchExternalResources" : ['script'/*, 'img', 'css', 'frame', 'link'*/],
"ProcessExternalResources" : ['script'/*, 'frame', 'iframe'*/],
"MutationEvents" : '2.0',
"QuerySelector" : false
"FetchExternalResources": ['script'/*, 'img', 'css', 'frame', 'link'*/],
"ProcessExternalResources": ['script'/*, 'frame', 'iframe'*/],
"MutationEvents": '2.0',
"QuerySelector": false,
"SkipExternalResources": false
};

@@ -15,0 +17,0 @@

@@ -0,0 +0,0 @@ var charByEntityName = {

@@ -300,3 +300,9 @@ /*

} else if (versions.indexOf && versions.length > 0) {
return versions.indexOf(version) !== -1;
for (var i = 0; i < versions.length; i++) {
var found = versions[i] instanceof RegExp ?
versions[i].test(version) :
versions[i] === version;
if (found) { return true; }
}
return false;
} else {

@@ -1165,3 +1171,3 @@ return false;

canvas = new (require('canvas'))(0,0);
for (attr in element) {
for (var attr in element) {
if (!canvas[attr]) {

@@ -1168,0 +1174,0 @@ canvas[attr] = element[attr];

@@ -25,2 +25,5 @@ var core = require("./core").dom.level2.core,

var url = URL.parse(full);
if (ownerImplementation.hasFeature('SkipExternalResources', full)) {
return false;
}
if (url.hostname) {

@@ -71,3 +74,3 @@ this.download(url, this.baseUrl(element._ownerDocument), this.enqueue(element, callback, full));

if (baseElements.length > 0) {
baseUrl = baseElements.item(0).href;
baseUrl = baseElements.item(0).href || baseUrl;
}

@@ -74,0 +77,0 @@

@@ -0,0 +0,0 @@ exports.dom = {

@@ -0,0 +0,0 @@ exports.javascript = function(element, code, filename) {

@@ -0,0 +0,0 @@ var events = require("../level2/events").dom.level2.events;

@@ -0,0 +0,0 @@ var core = require("./core").dom.level3.core,

@@ -0,0 +0,0 @@ // w3c Load/Save functionality: http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ Copyright (c) 2010 Elijah Insua

{
"name": "jsdom",
"version": "0.2.18",
"version": "0.2.19",
"description": "A JavaScript implementation of the W3C DOM",

@@ -5,0 +5,0 @@ "keywords": [

@@ -195,2 +195,10 @@ # jsdom

`SkipExternalResources`
- _Default_: `false`
- _Allowed_: `/url to be skipped/` or `false`
- _Example_: `/http:\/\/example.org/js/bad\.js/`
Do not download and process resources with url matching a regular expression.
`MutationEvents`

@@ -300,3 +308,3 @@

sizzle/index 12/15 80%
jsdom/index 80/80 100%
jsdom/index 83/83 100%
jsonp/jsonp 1/1 100%

@@ -306,3 +314,3 @@ browser/contextifyReplacement 4/4 100%

------------------------------------------------------
TOTALS: 3/2551 failed; 99% success
TOTALS: 3/2554 failed; 99% success
```

@@ -309,0 +317,0 @@

Sorry, the diff of this file is too big to display

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