"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moment.js" between
moment-2.29.3.tar.gz and moment-2.29.4.tar.gz

About: Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates.

moment.js  (moment-2.29.3):moment.js  (moment-2.29.4)
//! moment.js //! moment.js
//! version : 2.29.3 //! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT //! license : MIT
//! momentjs.com //! momentjs.com
;(function (global, factory) { ;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.export s = factory() : typeof exports === 'object' && typeof module !== 'undefined' ? module.export s = factory() :
typeof define === 'function' && define.amd ? define(factory) : typeof define === 'function' && define.amd ? define(factory) :
global.moment = factory() global.moment = factory()
}(this, (function () { 'use strict'; }(this, (function () { 'use strict';
skipping to change at line 2457 skipping to change at line 2457
return 2000 + year; return 2000 + year;
} else if (year <= 999) { } else if (year <= 999) {
return 1900 + year; return 1900 + year;
} }
return year; return year;
} }
function preprocessRFC2822(s) { function preprocessRFC2822(s) {
// Remove comments and folding whitespace and replace multiple-spaces wi th a single space // Remove comments and folding whitespace and replace multiple-spaces wi th a single space
return s return s
.replace(/\([^)]*\)|[\n\t]/g, ' ') .replace(/\([^()]*\)|[\n\t]/g, ' ')
.replace(/(\s\s+)/g, ' ') .replace(/(\s\s+)/g, ' ')
.replace(/^\s\s*/, '') .replace(/^\s\s*/, '')
.replace(/\s\s*$/, ''); .replace(/\s\s*$/, '');
} }
function checkWeekday(weekdayStr, parsedInput, config) { function checkWeekday(weekdayStr, parsedInput, config) {
if (weekdayStr) { if (weekdayStr) {
// TODO: Replace the vanilla JS Date object with an independent day- of-week check. // TODO: Replace the vanilla JS Date object with an independent day- of-week check.
var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr) , var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr) ,
weekdayActual = new Date( weekdayActual = new Date(
skipping to change at line 5638 skipping to change at line 5638
addRegexToken('X', matchTimestamp); addRegexToken('X', matchTimestamp);
addParseToken('X', function (input, array, config) { addParseToken('X', function (input, array, config) {
config._d = new Date(parseFloat(input) * 1000); config._d = new Date(parseFloat(input) * 1000);
}); });
addParseToken('x', function (input, array, config) { addParseToken('x', function (input, array, config) {
config._d = new Date(toInt(input)); config._d = new Date(toInt(input));
}); });
//! moment.js //! moment.js
hooks.version = '2.29.3'; hooks.version = '2.29.4';
setHookCallback(createLocal); setHookCallback(createLocal);
hooks.fn = proto; hooks.fn = proto;
hooks.min = min; hooks.min = min;
hooks.max = max; hooks.max = max;
hooks.now = now; hooks.now = now;
hooks.utc = createUTC; hooks.utc = createUTC;
hooks.unix = createUnix; hooks.unix = createUnix;
hooks.months = listMonths; hooks.months = listMonths;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)