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 - npm Package Compare versions

Comparing version 2.0.0-alpha3 to 2.0.0-beta1

4

package.json

@@ -5,3 +5,3 @@ {

"name": "@vaadin/vaadin-development-mode-detector",
"version": "2.0.0-alpha3",
"version": "2.0.0-beta1",
"author": "Vaadin Ltd",

@@ -18,4 +18,4 @@ "license": "Apache-2.0",

"devDependencies": {
"@webcomponents/webcomponentsjs": "^1.0.0"
"@webcomponents/webcomponentsjs": "^2.0.0"
}
}

@@ -66,2 +66,14 @@ const DEV_MODE_CODE_REGEXP =

/**
* Inspects the source code of the given `callback` function for
* specially-marked _commented_ code. If such commented code is found in the
* callback source, uncomments and runs that code instead of the callback
* itself. Otherwise runs the callback as is.
*
* The optional arguments are passed into the callback / uncommented code,
* the result is returned.
*
* See the `isMinified()` function source code in this file for an example.
*
*/
export const runIfDevelopmentMode = function(callback, args) {

@@ -68,0 +80,0 @@ if (window.Vaadin.developmentMode) {

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