Socket
Socket
Sign inDemoInstall

@vaadin/vaadin-development-mode-detector

Package Overview
Dependencies
Maintainers
9
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


Version published
Weekly downloads
87K
increased by4.11%
Maintainers
9
Weekly downloads
 
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:

  1. Run npm install
  2. Run bower install
  3. Run npm start
  4. Open http://localhost:8081/test/index.html
  5. Verify that mode is development (green)
  6. Verify that importIfDevelopmentMode is run (green)
  7. Open http://<yourip>:8081/test/index.html
  8. Verify that mode is production (orange)
  9. Verify that importIfDevelopmentMode is ignored (orange)
  10. Run npm run start:prod
  11. Open http://localhost:8081/test/index.html
  12. Verify that mode is production (orange)
  13. Verify that importIfDevelopmentMode is ignored (orange)
  14. Open http://<yourip>:8081/test/index.html
    1. Verify that mode is production (orange)
    2. Verify that importIfDevelopmentMode is ignored (orange)

FAQs

Package last updated on 20 Jul 2018

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

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