@vaadin/vaadin-development-mode-detector
Advanced tools
Comparing version 1.0.3-pre.5 to 1.0.3-pre.6
@@ -5,3 +5,3 @@ { | ||
"name": "@vaadin/vaadin-development-mode-detector", | ||
"version": "1.0.3-pre.5", | ||
"version": "1.0.3-pre.6", | ||
"author": "Vaadin Ltd", | ||
@@ -8,0 +8,0 @@ "license": "Apache-2.0", |
Utility method for detecting that an application using Vaadin Elements is running in development mode | ||
### Polymer 3 publishing | ||
1. Run `magi p3-convert --out . --import-style=name` | ||
2. Remove `@polymer/polymer/lib/utils/import-href.js` import from the output | ||
3. Commit the changes | ||
4. Publish to npm | ||
## Running Tests | ||
@@ -4,0 +11,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { importHref } from '@polymer/polymer/lib/utils/import-href.js'; | ||
import { DomModule } from '@polymer/polymer/lib/elements/dom-module.js'; | ||
@@ -77,7 +76,2 @@ const $_documentContainer = document.createElement('template'); | ||
const prepareHtmlPath = function (id) { | ||
let path = getAssetpath(); | ||
return path + "../" + id + "/" + id + ".html"; | ||
} | ||
const prepareJsPath = function (id) { | ||
@@ -98,9 +92,2 @@ const scope = '@vaadin'; | ||
const importAndRun = function(id, optionalArgument) { | ||
let path = prepareHtmlPath(id); | ||
return importHref(path, function() { | ||
runCallback(id, optionalArgument); | ||
}, function() {}, true); | ||
} | ||
const loadAndRun = function(id, optionalArgument) { | ||
@@ -146,12 +133,4 @@ let path = prepareJsPath(id); | ||
if (window.HTMLImports && useHtmlImports) { | ||
HTMLImports.whenReady(function() { | ||
importAndRun(id, optionalArgument); | ||
}); | ||
} else if (useHtmlImports) { | ||
importAndRun(id, optionalArgument); | ||
} else { | ||
loadAndRun(id, optionalArgument); | ||
} | ||
loadAndRun(id, optionalArgument); | ||
} | ||
} |
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
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
31
0
6757
116