@rikdotcodes/temporal-polyfill 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/global.cjs ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ var classApi = require("./chunks/classApi.cjs"), internal = require("./chunks/internal.cjs");
4
+
5
+ Object.defineProperties(globalThis, internal.createPropDescriptors({
6
+ Temporal: classApi.Temporal
7
+ })), Object.defineProperties(Intl, internal.createPropDescriptors({
8
+ DateTimeFormat: classApi.DateTimeFormat
9
+ })), Object.defineProperties(Date.prototype, internal.createPropDescriptors({
10
+ toTemporalInstant: classApi.toTemporalInstant
11
+ }));
package/global.d.cts ADDED
@@ -0,0 +1 @@
1
+ export * from 'temporal-spec/global';
package/global.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from 'temporal-spec/global';
package/global.esm.js ADDED
@@ -0,0 +1,11 @@
1
+ import { Temporal as Xn, DateTimeFormat as _n, toTemporalInstant as ja } from "./chunks/classApi.js";
2
+
3
+ import { createPropDescriptors as n } from "./chunks/internal.js";
4
+
5
+ Object.defineProperties(globalThis, n({
6
+ Temporal: Xn
7
+ })), Object.defineProperties(Intl, n({
8
+ DateTimeFormat: _n
9
+ })), Object.defineProperties(Date.prototype, n({
10
+ toTemporalInstant: ja
11
+ }));