Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/vaadin-development-mode-detector

Package Overview
Dependencies
Maintainers
8
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 1.0.3-pre.5 to 1.0.3-pre.6

2

package.json

@@ -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);
}
}
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