@vaadin/vaadin-development-mode-detector
Advanced tools
Comparing version 2.0.0-alpha3 to 2.0.0-beta1
@@ -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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4019
75
1