New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/vaadin-custom-field

Package Overview
Dependencies
Maintainers
15
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-custom-field - npm Package Compare versions

Comparing version 1.0.0-alpha1 to 1.0.0-alpha2

6

package.json

@@ -13,3 +13,3 @@ {

"name": "@vaadin/vaadin-custom-field",
"version": "1.0.0-alpha1",
"version": "1.0.0-alpha2",
"main": "vaadin-custom-field.js",

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

"devDependencies": {
"@polymer/iron-component-page": "^3.0.0-pre.18",
"@polymer/iron-form": "^3.0.0-pre.18",
"@polymer/iron-component-page": "^4.0.0",
"@polymer/iron-form": "^3.0.0",
"@webcomponents/webcomponentsjs": "^2.0.0",

@@ -48,0 +48,0 @@ "wct-browser-legacy": "^1.0.1",

@@ -12,2 +12,25 @@ /**

/**
* The object used to localize this component.
* To change the default localization, replace the entire
* _i18n_ object or just the property you want to modify.
*
* The object has the following JSON structure:
{
// A function to format given `Array` as
// component value. Array is list of all internal values
// in the order of their presense in the DOM
formatValue: (inputValues) => {
// returns a value representation of the given
// array of values
},
// A function to parse the given value to an `Array` in the format
// of the list of all internal values
// in the order of their presence in the DOM
parseValue: value => {
// Parses a string into the array of values.
}
*/
i18n: {

@@ -75,3 +98,8 @@ type: Object,

const valuesArray = this.i18n.parseValue(value, this.inputs);
const valuesArray = this.i18n.parseValue(value);
if (!valuesArray || valuesArray.length == 0) {
console.warn('Value parser has not provided values array');
return;
}
this.inputs.forEach((input, id) => input.value = valuesArray[id]);

@@ -78,0 +106,0 @@ if (oldValue !== undefined) {

@@ -63,3 +63,3 @@ /**

static get version() {
return '1.0.0-alpha1';
return '1.0.0-alpha2';
}

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