cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

prototype.js (1739B)


      1import { Duration } from './constructor';
      2
      3var proto = Duration.prototype;
      4
      5import { abs } from './abs';
      6import { add, subtract } from './add-subtract';
      7import {
      8    as,
      9    asMilliseconds,
     10    asSeconds,
     11    asMinutes,
     12    asHours,
     13    asDays,
     14    asWeeks,
     15    asMonths,
     16    asQuarters,
     17    asYears,
     18    valueOf,
     19} from './as';
     20import { bubble } from './bubble';
     21import { clone } from './clone';
     22import {
     23    get,
     24    milliseconds,
     25    seconds,
     26    minutes,
     27    hours,
     28    days,
     29    months,
     30    years,
     31    weeks,
     32} from './get';
     33import { humanize } from './humanize';
     34import { toISOString } from './iso-string';
     35import { lang, locale, localeData } from '../moment/locale';
     36import { isValid } from './valid';
     37
     38proto.isValid = isValid;
     39proto.abs = abs;
     40proto.add = add;
     41proto.subtract = subtract;
     42proto.as = as;
     43proto.asMilliseconds = asMilliseconds;
     44proto.asSeconds = asSeconds;
     45proto.asMinutes = asMinutes;
     46proto.asHours = asHours;
     47proto.asDays = asDays;
     48proto.asWeeks = asWeeks;
     49proto.asMonths = asMonths;
     50proto.asQuarters = asQuarters;
     51proto.asYears = asYears;
     52proto.valueOf = valueOf;
     53proto._bubble = bubble;
     54proto.clone = clone;
     55proto.get = get;
     56proto.milliseconds = milliseconds;
     57proto.seconds = seconds;
     58proto.minutes = minutes;
     59proto.hours = hours;
     60proto.days = days;
     61proto.weeks = weeks;
     62proto.months = months;
     63proto.years = years;
     64proto.humanize = humanize;
     65proto.toISOString = toISOString;
     66proto.toString = toISOString;
     67proto.toJSON = toISOString;
     68proto.locale = locale;
     69proto.localeData = localeData;
     70
     71// Deprecations
     72import { deprecate } from '../utils/deprecate';
     73
     74proto.toIsoString = deprecate(
     75    'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
     76    toISOString
     77);
     78proto.lang = lang;