Socket
Socket
Sign inDemoInstall

temporal-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temporal-polyfill - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc