Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-bootstrap-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-bootstrap-datepicker - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

20

addon/components/datepicker-support.js

@@ -84,11 +84,17 @@ import Ember from 'ember';

dates = [];
if (Ember.isArray(value)) {
dates = value.map(function(date) {
return self._resetTime(new Date(date));
});
// If value is undefined or null, we don't want bootstrap-datepicker to
// display 1970-01-01. We want a blank value.
if (value) {
if (Ember.isArray(value)) {
dates = value.map(function(date) {
return self._resetTime(new Date(date));
});
} else {
dates = [self._resetTime(new Date(value))];
}
} else {
dates = [self._resetTime(new Date(value))];
dates = [null];
}
element.datepicker.

@@ -95,0 +101,0 @@ apply(element, Array.prototype.concat.call(['update'], dates));

{
"name": "ember-cli-bootstrap-datepicker",
"version": "0.3.3",
"version": "0.3.4",
"description": "Datepicker component for Ember CLI based on bootstrap-datepicker",

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

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