📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@vaadin/vaadin-development-mode-detector

Package Overview
Dependencies
Maintainers
12
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-development-mode-detector

Element for detecting that an application using Vaadin Elements is running in development mode

2.0.7
latest
Source
npm
Version published
Maintainers
12
Created
Source

Utility method for detecting that an application using Vaadin Elements is running in development mode

Running Tests

There are no automatic tests as the functionality depends on the host the code is run on (localhost vs others) and the bundling status.

To verify functionality:

  • Run npm install
  • Run bower install
  • Run npm start
  • Open http://localhost:8081/test/index.html
  • Verify that mode is development (green)
  • Verify that importIfDevelopmentMode is run (green)
  • Open http://<yourip>:8081/test/index.html
  • Verify that mode is production (orange)
  • Verify that importIfDevelopmentMode is ignored (orange)
  • Run npm run start:prod
  • Open http://localhost:8081/test/index.html
  • Verify that mode is production (orange)
  • Verify that importIfDevelopmentMode is ignored (orange)
  • Open http://<yourip>:8081/test/index.html
    • Verify that mode is production (orange)
    • Verify that importIfDevelopmentMode is ignored (orange)

FAQs

Package last updated on 07 May 2024

Did you know?

Socket

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