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

@vaadin/component-base

Package Overview
Dependencies
Maintainers
14
Versions
408
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 23.1.1 to 23.2.0-alpha1

src/unique-id-utils.d.ts

4

package.json
{
"name": "@vaadin/component-base",
"version": "23.1.1",
"version": "23.2.0-alpha1",
"publishConfig": {

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

},
"gitHead": "390458d6519433a2dd502cef90da48e84573a275"
"gitHead": "f226a2976c270d3d53c824f6e0a740a5d3382d91"
}

@@ -42,3 +42,3 @@ /**

static get version() {
return '23.1.1';
return '23.2.0-alpha1';
}

@@ -45,0 +45,0 @@

@@ -6,4 +6,4 @@ /**

*/
import { dashToCamelCase } from '@polymer/polymer/lib/utils/case-map.js';
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
import { generateUniqueId } from './unique-id-utils.js';

@@ -24,10 +24,3 @@ /**

const prefix = slotName || 'default';
// Support dash-case slot names e.g. "error-message"
const field = `${dashToCamelCase(prefix)}Id`;
// Maintain the unique ID counter for a given prefix.
this[field] = 1 + this[field] || 0;
return `${prefix}-${host.localName}-${this[field]}`;
return `${prefix}-${host.localName}-${generateUniqueId()}`;
}

@@ -34,0 +27,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