Skip to content

Commit 7e8c9b7

Browse files
Updated monentjs (2.27.0 => 2.29.1)
1 parent b29e839 commit 7e8c9b7

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/jQueryDatatableServerSideNetCore/wwwroot/lib/momentjs/moment.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! moment.js
2-
//! version : 2.27.0
2+
//! version : 2.29.1
33
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
44
//! license : MIT
55
//! momentjs.com
@@ -2540,8 +2540,7 @@
25402540
hooks.createFromInputFallback = deprecate(
25412541
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
25422542
'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
2543-
'discouraged and will be removed in an upcoming major release. Please refer to ' +
2544-
'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
2543+
'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
25452544
function (config) {
25462545
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
25472546
}
@@ -3726,7 +3725,10 @@
37263725
function calendar$1(time, formats) {
37273726
// Support for single parameter, formats only overload to the calendar function
37283727
if (arguments.length === 1) {
3729-
if (isMomentInput(arguments[0])) {
3728+
if (!arguments[0]) {
3729+
time = undefined;
3730+
formats = undefined;
3731+
} else if (isMomentInput(arguments[0])) {
37303732
time = arguments[0];
37313733
formats = undefined;
37323734
} else if (isCalendarSpec(arguments[0])) {
@@ -4404,7 +4406,7 @@
44044406
eras = this.localeData().eras();
44054407
for (i = 0, l = eras.length; i < l; ++i) {
44064408
// truncate time
4407-
val = this.startOf('day').valueOf();
4409+
val = this.clone().startOf('day').valueOf();
44084410

44094411
if (eras[i].since <= val && val <= eras[i].until) {
44104412
return eras[i].name;
@@ -4424,7 +4426,7 @@
44244426
eras = this.localeData().eras();
44254427
for (i = 0, l = eras.length; i < l; ++i) {
44264428
// truncate time
4427-
val = this.startOf('day').valueOf();
4429+
val = this.clone().startOf('day').valueOf();
44284430

44294431
if (eras[i].since <= val && val <= eras[i].until) {
44304432
return eras[i].narrow;
@@ -4444,7 +4446,7 @@
44444446
eras = this.localeData().eras();
44454447
for (i = 0, l = eras.length; i < l; ++i) {
44464448
// truncate time
4447-
val = this.startOf('day').valueOf();
4449+
val = this.clone().startOf('day').valueOf();
44484450

44494451
if (eras[i].since <= val && val <= eras[i].until) {
44504452
return eras[i].abbr;
@@ -4467,7 +4469,7 @@
44674469
dir = eras[i].since <= eras[i].until ? +1 : -1;
44684470

44694471
// truncate time
4470-
val = this.startOf('day').valueOf();
4472+
val = this.clone().startOf('day').valueOf();
44714473

44724474
if (
44734475
(eras[i].since <= val && val <= eras[i].until) ||
@@ -5618,7 +5620,7 @@
56185620

56195621
//! moment.js
56205622

5621-
hooks.version = '2.27.0';
5623+
hooks.version = '2.29.1';
56225624

56235625
setHookCallback(createLocal);
56245626

src/jQueryDatatableServerSideNetCore/wwwroot/lib/momentjs/moment.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jQueryDatatableServerSideNetCore/wwwroot/lib/momentjs/moment.min.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)