New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ember-cli-selectize

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-selectize - npm Package Compare versions

Comparing version
0.5.7
to
0.5.8
+3
-3
addon/components/ember-selectize.js

@@ -240,5 +240,5 @@ import Ember from 'ember';

generalOptions.forEach(function(option) {
options[option] = this.get(option) || options[option];
}, this);
generalOptions.forEach((option) => {
options[option] = this.getWithDefault(option, options[option]);
});

@@ -245,0 +245,0 @@ options = this._mergeSortField(options);

@@ -9,8 +9,21 @@ /* jshint node: true */

var host = this._findHost();
// If the addon has the _findHost() method (in ember-cli >= 2.7.0), we'll just
// use that.
if (typeof this._findHost === 'function') {
app = this._findHost();
}
// Otherwise, we'll use this implementation borrowed from the _findHost()
// method in ember-cli.
// Keep iterating upward until we don't have a grandparent.
// Has to do this grandparent check because at some point we hit the project.
var current = this;
do {
app = current.app || app;
} while (current.parent.parent && (current = current.parent));
//default theme name is 'default'
var options = { theme: 'default' };
if (host.options && host.options['ember-cli-selectize']) {
options = host.options['ember-cli-selectize'];
if (app.options && app.options['ember-cli-selectize']) {
options = app.options['ember-cli-selectize'];
}

@@ -20,10 +33,10 @@

//import theme based on options
if (options.theme) {
this.import(host.bowerDirectory + '/selectize/dist/css/selectize.' + options.theme + '.css');
if (app.theme) {
app.import(app.bowerDirectory + '/selectize/dist/css/selectize.' + options.theme + '.css');
}
//import javascript
this.import(host.bowerDirectory + '/selectize/dist/js/standalone/selectize.js');
app.import(app.bowerDirectory + '/selectize/dist/js/standalone/selectize.js');
}
}
};
{
"name": "ember-cli-selectize",
"version": "0.5.7",
"version": "0.5.8",
"description": "An Ember and Selectize integration, packaged as an Ember-cli addon.",

@@ -5,0 +5,0 @@ "directories": {