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

@vaadin/component-base

Package Overview
Dependencies
Maintainers
12
Versions
397
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/component-base - npm Package Compare versions

Comparing version 24.5.0-alpha7 to 24.5.0-alpha8

10

package.json
{
"name": "@vaadin/component-base",
"version": "24.5.0-alpha7",
"version": "24.5.0-alpha8",
"publishConfig": {

@@ -41,7 +41,7 @@ "access": "public"

"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.6.0",
"sinon": "^13.0.2"
"@vaadin/chai-plugins": "24.5.0-alpha8",
"@vaadin/testing-helpers": "^1.0.0",
"sinon": "^18.0.0"
},
"gitHead": "89f77a69ae0eba6247f2b3084941f9395d7134e1"
"gitHead": "1e227aaa55df3f5dae3d477b9afb5fce4f5ece33"
}

@@ -12,3 +12,3 @@ /**

get() {
return '24.5.0-alpha7';
return '24.5.0-alpha8';
},

@@ -15,0 +15,0 @@ });

@@ -41,2 +41,3 @@ /**

useUniqueId?: boolean;
uniqueIdPrefix?: string;
initializer?(host: HTMLElement, node: HTMLElement): void;

@@ -43,0 +44,0 @@ },

@@ -22,4 +22,3 @@ /**

*/
static generateId(host, slotName) {
const prefix = slotName || 'default';
static generateId(host, prefix = 'default') {
return `${prefix}-${host.localName}-${generateUniqueId()}`;

@@ -31,3 +30,3 @@ }

const { initializer, multiple, observe, useUniqueId } = config;
const { initializer, multiple, observe, useUniqueId, uniqueIdPrefix } = config;

@@ -47,3 +46,3 @@ this.host = host;

if (useUniqueId) {
this.defaultId = this.constructor.generateId(host, slotName);
this.defaultId = this.constructor.generateId(host, uniqueIdPrefix || slotName);
}

@@ -50,0 +49,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