temporal-polyfill
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,2 +0,2 @@ | ||
import*as a from"./impl";const n=globalThis.Temporal,t=n||a,PlainYearMonth=t.PlainYearMonth,PlainMonthDay=t.PlainMonthDay,PlainDate=t.PlainDate,PlainTime=t.PlainTime,PlainDateTime=t.PlainDateTime,ZonedDateTime=t.ZonedDateTime,Instant=t.Instant,Calendar=t.Calendar,TimeZone=t.TimeZone,Duration=t.Duration,e=t.Now,o=n?a=>a.toTemporalInstant():a.dateToTemporalInstant;export{Calendar,Duration,Instant,e as Now,PlainDate,PlainDateTime,PlainMonthDay,PlainTime,PlainYearMonth,TimeZone,ZonedDateTime,o as dateToTemporalInstant}; | ||
import*as a from"./impl.js";var n=globalThis.Temporal,t=n||a,PlainYearMonth=t.PlainYearMonth,PlainMonthDay=t.PlainMonthDay,PlainDate=t.PlainDate,PlainTime=t.PlainTime,PlainDateTime=t.PlainDateTime,ZonedDateTime=t.ZonedDateTime,Instant=t.Instant,Calendar=t.Calendar,TimeZone=t.TimeZone,Duration=t.Duration,e=t.Now,o=n?a=>a.toTemporalInstant():a.dateToTemporalInstant;export{Calendar,Duration,Instant,e as Now,PlainDate,PlainDateTime,PlainMonthDay,PlainTime,PlainYearMonth,TimeZone,ZonedDateTime,o as dateToTemporalInstant}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{Calendar,Duration,Instant,Now as a,OrigDateTimeFormat as t,PlainDate,PlainDateTime,PlainMonthDay,PlainTime,PlainYearMonth,TimeZone,ZonedDateTime,dateToTemporalInstant as r,normalizeIntlDateArg as e,normalizeIntlOptionalDateArg as o}from"./impl";function n(){if(!globalThis.Temporal){globalThis.Temporal={PlainYearMonth:PlainYearMonth,PlainMonthDay:PlainMonthDay,PlainDate:PlainDate,PlainTime:PlainTime,PlainDateTime:PlainDateTime,ZonedDateTime:ZonedDateTime,Instant:Instant,Calendar:Calendar,TimeZone:TimeZone,Duration:Duration,Now:a},globalThis.Date.prototype.toTemporalInstant=function(){return r(this)};class n extends t{format(a){return super.format(o(a))}formatToParts(a){return super.formatToParts(o(a))}formatRange(a,t){return super.formatRange(e(a),e(t))}formatRangeToParts(a,t){return super.formatRangeToParts(e(a),e(t))}}globalThis.Intl.DateTimeFormat=n}}export{n as shimTemporal}; | ||
import{Calendar,Duration,Instant,Now as a,OrigDateTimeFormat as t,PlainDate,PlainDateTime,PlainMonthDay,PlainTime,PlainYearMonth,TimeZone,ZonedDateTime,dateToTemporalInstant as r,normalizeIntlDateArg as e,normalizeIntlOptionalDateArg as o}from"./impl.js";function n(){if(!globalThis.Temporal){globalThis.Temporal={PlainYearMonth:PlainYearMonth,PlainMonthDay:PlainMonthDay,PlainDate:PlainDate,PlainTime:PlainTime,PlainDateTime:PlainDateTime,ZonedDateTime:ZonedDateTime,Instant:Instant,Calendar:Calendar,TimeZone:TimeZone,Duration:Duration,Now:a},globalThis.Date.prototype.toTemporalInstant=function(){return r(this)};class n extends t{format(a){return super.format(o(a))}formatToParts(a){return super.formatToParts(o(a))}formatRange(a,t){return super.formatRange(e(a),e(t))}formatRangeToParts(a,t){return super.formatRangeToParts(e(a),e(t))}}globalThis.Intl.DateTimeFormat=n}}export{n as shimTemporal}; | ||
//# sourceMappingURL=shim.js.map |
{ | ||
"name": "temporal-polyfill", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"title": "Temporal Polyfill", | ||
@@ -5,0 +5,0 @@ "description": "A spec-compliant Temporal JavaScript polyfill in less than 15kb", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1838157