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

choices.js

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choices.js - npm Package Compare versions

Comparing version 2.8.6 to 2.8.7

2

bower.json
{
"name": "choices.js",
"version": "2.8.6",
"version": "2.8.7",
"description": "A vanilla JS customisable text input/select box plugin",

@@ -5,0 +5,0 @@ "main": [

{
"name": "choices.js",
"version": "2.8.6",
"version": "2.8.7",
"description": "A vanilla JS customisable text input/select box plugin",

@@ -5,0 +5,0 @@ "main": "./assets/scripts/dist/choices.min.js",

@@ -170,3 +170,3 @@ # Choices.js ![Build Status](https://travis-ci.org/jshjohnson/Choices.svg?branch=master)

customProperties: {
random: 'I am a custom property'
random: 'I am a custom property'
}

@@ -741,3 +741,3 @@ }]

**Usage:** Set value of input based on existing Choice.
**Usage:** Set value of input based on existing Choice. `value` can be either a single string or an array of strings

@@ -773,3 +773,3 @@ **Example:**

**Usage:** Disables input from accepting new value/sselecting further choices.
**Usage:** Disables input from accepting new value/selecting further choices.

@@ -776,0 +776,0 @@ ### enable();

@@ -1041,3 +1041,21 @@ import 'whatwg-fetch';

});
it('should allow the user to supply custom properties when directly creating a selected item', function() {
const expectedCustomProperties = {
isBestOptionEver: true
};
this.choices = new Choices(this.input);
this.choices.setValue([{
value: 'bar',
label: 'foo',
customProperties: expectedCustomProperties
}]);
const selectedItems = this.choices.getValue();
expect(selectedItems.length).toBe(1);
expect(selectedItems[0].customProperties).toBe(expectedCustomProperties);
});
});
});

@@ -1,8 +0,8 @@

// Example usage: npm --newVersion=2.7.2 run version
// Example usage: npm --newVersion=2.8.7 run version
const fs = require('fs'),
path = require('path'),
config = {
files: ['bower.json', 'package.json', 'index.html']
};
const fs = require('fs');
const path = require('path');
const config = {
files: ['bower.json', 'package.json', 'index.html', 'version.js']
};

@@ -33,2 +33,6 @@ /**

/**
* Loop through files updating the current version
* @param {Object} config
*/
const updateVersion = (config) => {

@@ -38,3 +42,5 @@ const args = argvToObject();

const newVersion = args.new;
console.log(`Updating version from ${currentVersion} to ${newVersion}`);
config.files.forEach((file) => {

@@ -41,0 +47,0 @@ const filePath = path.join(__dirname, file);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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