Socket
Socket
Sign inDemoInstall

@applitools/jsdom

Package Overview
Dependencies
55
Maintainers
24
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @applitools/jsdom

jsdom without canvas 19.0.0


Version published
Weekly downloads
69K
decreased by-5.18%
Maintainers
24
Install size
9.10 MB
Created
Weekly downloads
 

Readme

Source

APPLITOOLS JSDOM

Just JSDOM without canvas package.

Forked from JSDOM

Why ?

  • VGC requires JSDOM: For extracting URLs from SVGs (only ones downloaded by VGC not dom-snapshot ones).

  • Cypress uses VGC as a plugin (i.e. opens eyes-cypress in it's own defined Node environment); if a user adds canvas package in it's project dependencies we get a conflict:

    cypress compiles canvas when the user installs the packages but then uses that native canvas library in the plugin environment (since VGC requires JSDOM and JSDOM requires canvas as well) and so we get a conflict saying that canvas was compiled with wrong node version.

  • See this issue: https://github.com/cypress-io/cypress/issues/5785

  • Note that by not using canvas JSDOM still works fine just turns canvas tags to div tags (anyway VGC doesn't need the canvas..)

Keywords

FAQs

Last updated on 16 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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