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

domv

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domv - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

29

lib/domv.js

@@ -9,2 +9,3 @@ 'use strict';

var jsdom = {};
var jsdomErr = null;
try

@@ -16,2 +17,4 @@ {

{
/* istanbul ignore next */
jsdomErr = err;
}

@@ -44,3 +47,19 @@

/* istanbul ignore next */
function maybeJsdomError(error)
{
if (jsdomErr)
{
error.message += '\nJsdom might fail to load because of this error: ' +
jsdomErr.message +
'\n' +
jsdomErr.stack;
}
error.jsdomCause = jsdomErr;
return error;
}
/** Test if the current environment / browser / DOM library supports everything that is needed for the domv library.

@@ -644,3 +663,6 @@ * @param {!external:Document} document

{
throw new domv.Exception(Error('Unable to find a Document implementation in domv.createHtmlDomDocument(). The browser is too old, or jsdom is not installed (node.js/io.js)'));
throw maybeJsdomError(new domv.Exception(Error(
'Unable to find a Document implementation in domv.createHtmlDomDocument(). ' +
'The browser is too old, or jsdom is not installed (node.js/io.js).'
)));
}

@@ -696,3 +718,6 @@ };

// Safari / jsdom missing
throw domv.Exception(Error('Unable to find a DOM parser implementation in domv.parseHTMLDocument(). The browser is too old, or jsdom is not installed (node.js/io.js)'));
throw maybeJsdomError(domv.Exception(Error(
'Unable to find a DOM parser implementation in domv.parseHTMLDocument(). ' +
'The browser is too old, or jsdom is not installed (node.js/io.js)'
)));
}

@@ -699,0 +724,0 @@

2

package.json
{
"name": "domv",
"version": "1.2.0",
"version": "1.2.1",
"author": "Joris van der Wel <joris@jorisvanderwel.com>",

@@ -5,0 +5,0 @@ "description": "Create views as components using DOM. Run the same code on the browser and on the server.",

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