ember-flatpickr
Advanced tools
Comparing version 1.0.1 to 1.0.2
21
index.js
@@ -8,5 +8,5 @@ /* eslint-disable */ | ||
let cssPath = 'themes/'; | ||
if(app.options && app.options.flatpickr && app.options.flatpickr.theme) { | ||
if (app.options && app.options.flatpickr && app.options.flatpickr.theme) { | ||
cssPath += app.options.flatpickr.theme; | ||
} | ||
} | ||
else { | ||
@@ -23,11 +23,10 @@ cssPath += 'dark'; | ||
flatpickr: function() { | ||
if (!process.env.EMBER_CLI_FASTBOOT) { | ||
return { | ||
srcDir: 'dist', | ||
import: [ | ||
'flatpickr.js', | ||
this.theme | ||
] | ||
}; | ||
} | ||
return { | ||
enabled: !process.env.EMBER_CLI_FASTBOOT, | ||
srcDir: 'dist', | ||
import: [ | ||
'flatpickr.js', | ||
this.theme | ||
] | ||
}; | ||
} | ||
@@ -34,0 +33,0 @@ } |
{ | ||
"name": "ember-flatpickr", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An Ember addon that wraps the date picker Flatpickr", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
343179
0
1075