Socket
Socket
Sign inDemoInstall

ember-cli-highcharts

Package Overview
Dependencies
88
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

97

index.js

@@ -8,16 +8,2 @@ /* jshin t node: true */

name: 'ember-cli-highcharts',
/*setupPreprocessorRegistry: function(type, registry) {
var options = getOptions(this.parent && this.parent.options && this.parent.options['babel']);
var plugin = {
name : 'ember-cli-babel',
ext : 'js',
toTree : function(tree) {
return require('broccoli-babel-transpiler')(tree, options);
}
};
registry.add('js', plugin);
},*/
blueprintsPath: function() {

@@ -30,28 +16,31 @@ return path.join(__dirname, 'blueprints');

var options = app.options.highcharts || { highcharts: {
include: true,
modules: {
'broken-axis': false,
'data': false,
'canvas-tools': false,
'drilldown': false,
'exporting': false,
'funnel': false,
'heatmap': false,
'no-data-to-display': false,
'solid-gauge': false,
'treemap': false
},
adapters: {
'standalone-framework': false
}
}
};
var _highcharts = app.options.highcharts || {
include: true,
modules: {
/* //Don't need to specify these defaults since they are false
'broken-axis': false,
'data': false,
'canvas-tools': false,
'drilldown': false,
'exporting': false,
'funnel': false,
'heatmap': false,
'no-data-to-display': false,
'solid-gauge': false,
'treemap': false
*/
},
adapters: {
/* //Don't need to specify false defaults
'standalone-framework': false
*/
}
};
//highcharts + modules
if(options.highcharts.include) {
if(_highcharts.include) {
this.app.import(app.bowerDirectory + '/highcharts-release/highcharts.js');
if(options.highcharts.modules) {
for(var module in options.highcharts.modules) {
var includeModule = options.highcharts.modules[module];
if(_highcharts.modules) {
for(var module in _highcharts.modules) {
var includeModule = _highcharts.modules[module];
if(includeModule) {

@@ -63,5 +52,5 @@ this.app.import(app.bowerDirectory + '/highcharts-release/modules/' + module + '.js');

if(options.highcharts.adapters) {
for(var adapter in options.highcharts.adapter) {
var includeAdapter = options.highcharts.adapters[adapter];
if(_highcharts.adapters) {
for(var adapter in _highcharts.adapter) {
var includeAdapter = _highcharts.adapters[adapter];
if(includeAdapter) {

@@ -80,26 +69,2 @@ this.app.import(app.bowerDirectory + '/highcharts-release/adapters/' + adapter + '.js');

}
};
function getOptions(options) {
options = options || {};
// Ensure modules aren't compiled unless explicitly set to compile
options.blacklist = options.blacklist || ['es6.modules'];
if (options.compileModules === true) {
if (options.blacklist.indexOf('es6.modules') >= 0) {
options.blacklist.splice(options.blacklist.indexOf('es6.modules'), 1);
}
delete options.compileModules;
} else {
if (options.blacklist.indexOf('es6.modules') < 0) {
options.blacklist.push('es6.modules');
}
}
// Ember-CLI inserts its own 'use strict' directive
options.blacklist.push('useStrict');
return options;
}
};
{
"name": "ember-cli-highcharts",
"version": "0.0.5",
"version": "0.0.6",
"description": "The default blueprint for ember-cli addons.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc