Skip to content

Commit

Permalink
Updated with module.exports check
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillardo committed Jan 20, 2017
1 parent 57c51a4 commit 3ecc7e2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-ui-datetime-picker",
"version": "2.5.2",
"version": "2.5.3",
"homepage": "https://github.com/Gillardo/bootstrap-ui-datetime-picker",
"authors": [
"Gillardo <[email protected]>"
Expand Down
8 changes: 5 additions & 3 deletions dist/datetime-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://github.com/Gillardo/bootstrap-ui-datetime-picker
// Version: 2.5.2
// Released: 2017-01-19
// Version: 2.5.3
// Released: 2017-01-20
angular.module('ui.bootstrap.datetimepicker', ['ui.bootstrap.dateparser', 'ui.bootstrap.position'])
.constant('uiDatetimePickerConfig', {
dateFormat: 'yyyy-MM-dd HH:mm',
Expand Down Expand Up @@ -686,4 +686,6 @@ angular.module('ui.bootstrap.datetimepicker').run(['$templateCache', function($t

}]);

module.exports = 'ui.bootstrap.datetimepicker';
if(typeof exports === 'object' && typeof module === 'object') {
module.exports = 'ui.bootstrap.datetimepicker';
}
6 changes: 3 additions & 3 deletions dist/datetime-picker.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion module-export.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module.exports = 'ui.bootstrap.datetimepicker';
if(typeof exports === 'object' && typeof module === 'object') {
module.exports = 'ui.bootstrap.datetimepicker';
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-ui-datetime-picker",
"version": "2.5.2",
"version": "2.5.3",
"url": "https://github.com/Gillardo/bootstrap-ui-datetime-picker",
"authors": [
"Gillardo <[email protected]>"
Expand Down

0 comments on commit 3ecc7e2

Please sign in to comment.