Socket
Socket
Sign inDemoInstall

@vaadin/vaadin-development-mode-detector

Package Overview
Dependencies
0
Maintainers
12
Versions
21
Alerts
File Explorer

Advanced tools

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
71K
decreased by-3.51%
Maintainers
12
Install size
14.8 kB
Created
Weekly downloads
 

Readme

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

Last updated on 07 May 2024

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