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

@vaadin/vaadin-element-mixin

Package Overview
Dependencies
Maintainers
9
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-element-mixin - npm Package Compare versions

Comparing version 1.1.2 to 2.0.0-beta1

6

package.json

@@ -12,3 +12,3 @@ {

"name": "@vaadin/vaadin-element-mixin",
"version": "1.1.2",
"version": "2.0.0-beta1",
"main": "vaadin-element-mixin.js",

@@ -28,4 +28,4 @@ "author": "Vaadin Ltd",

"@polymer/polymer": "^3.0.0",
"@vaadin/vaadin-usage-statistics": "^1.1.0-beta1",
"@vaadin/vaadin-development-mode-detector": "^1.1.0-beta1"
"@vaadin/vaadin-usage-statistics": "^2.0.0-beta2",
"@vaadin/vaadin-development-mode-detector": "^2.0.0-beta1"
},

@@ -32,0 +32,0 @@ "devDependencies": {

@@ -1,4 +0,20 @@

import '@vaadin/vaadin-development-mode-detector/vaadin-development-mode-detector.js';
import { usageStatistics } from '@vaadin/vaadin-usage-statistics/vaadin-usage-statistics.js';
if (!window.Vaadin) {
window['Vaadin'] = {};
}
/**
* Array of Vaadin custom element classes that have been finalized.
*/
window['Vaadin'].registrations = window.Vaadin.registrations || [];
// Use the hack to prevent polymer-modulizer from converting to exports
window['Vaadin'].developmentModeCallback = window.Vaadin.developmentModeCallback || {};
window['Vaadin'].developmentModeCallback['vaadin-usage-statistics'] = function() {
if (usageStatistics) {
usageStatistics();
}
};
/**
* @polymerMixin

@@ -9,9 +25,18 @@ */

return class VaadinElementMixin extends superClass {
/** @protected */
static _finalizeClass() {
super._finalizeClass();
// Registers a class prototype for telemetry purposes.
if (this.is) {
window.Vaadin.registrations.push(this);
}
}
};
} finally {
// This is run every time a new class is declared, not every time an instance is created
if (window.Vaadin.runIfDevelopmentMode) {
window.Vaadin.runIfDevelopmentMode('vaadin-usage-statistics');
if (window.Vaadin.developmentModeCallback) {
window.Vaadin.developmentModeCallback['vaadin-usage-statistics']();
}
}
};
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