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

@vaadin/vaadin-themable-mixin

Package Overview
Dependencies
Maintainers
14
Versions
479
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 23.1.0-alpha3 to 23.1.0-alpha4

4

package.json
{
"name": "@vaadin/vaadin-themable-mixin",
"version": "23.1.0-alpha3",
"version": "23.1.0-alpha4",
"publishConfig": {

@@ -43,3 +43,3 @@ "access": "public"

},
"gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85"
"gitHead": "aacdb7fe09811894751f0378ff7fb66071892c71"
}

@@ -14,3 +14,3 @@ /**

export declare function ThemableMixin<T extends Constructor<HTMLElement>>(
base: T
base: T,
): T & Constructor<ThemableMixinClass> & Constructor<ThemePropertyMixinClass>;

@@ -17,0 +17,0 @@

@@ -55,3 +55,3 @@ /**

include: options.include,
moduleId: options.moduleId
moduleId: options.moduleId,
});

@@ -81,3 +81,3 @@ }

return (themeFor || '').split(' ').some((themeForToken) => {
return new RegExp('^' + themeForToken.split('*').join('.*') + '$').test(tagName);
return new RegExp(`^${themeForToken.split('*').join('.*')}$`).test(tagName);
});

@@ -156,3 +156,3 @@ }

function getThemes(tagName) {
const defaultModuleName = tagName + '-default-theme';
const defaultModuleName = `${tagName}-default-theme`;

@@ -167,3 +167,3 @@ const themes = getAllThemes()

// Map moduleId to includePriority
includePriority: getIncludePriority(theme.moduleId)
includePriority: getIncludePriority(theme.moduleId),
}))

@@ -211,2 +211,7 @@ // Sort by includePriority

// Make sure not to run the logic intended for PolymerElement when LitElement is used.
if (this.elementStyles) {
return;
}
const template = this.prototype._template;

@@ -213,0 +218,0 @@ if (!template || classHasThemes(this)) {

@@ -9,3 +9,3 @@ /**

export declare function ThemePropertyMixin<T extends Constructor<HTMLElement>>(
base: T
base: T,
): T & Constructor<ThemePropertyMixinClass>;

@@ -12,0 +12,0 @@

@@ -35,3 +35,3 @@ /**

reflectToAttribute: true,
observer: '__deprecatedThemePropertyChanged'
observer: '__deprecatedThemePropertyChanged',
},

@@ -58,4 +58,4 @@

type: String,
readOnly: true
}
readOnly: true,
},
};

@@ -62,0 +62,0 @@ }

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