temporal-polyfill-lite 0.3.1 → 0.3.3
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/CHANGELOG.md +20 -0
- package/dist/calendars/index.js +2 -2
- package/dist/calendars/shim.d.ts +5 -0
- package/dist/calendars/shim.js +6 -6
- package/dist/calendars/src-m77GJsdB.js +3471 -0
- package/dist/index.js +2 -2
- package/dist/shim.d.ts +5 -0
- package/dist/shim.js +6 -6
- package/dist/src-CfkGat92.js +2876 -0
- package/package.json +1 -1
- package/dist/calendars/src-CmT13QxP.js +0 -4938
- package/dist/src-CvhHR31X.js +0 -4092
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { i as a, r as s, t as r } from "./src-CfkGat92.js";
|
|
2
|
+
export { s as Intl, r as Temporal, a as toTemporalInstant };
|
package/dist/shim.d.ts
CHANGED
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
* @param overwrite Whether to overwrite an existing Temporal implementation
|
|
4
4
|
*/
|
|
5
5
|
export declare function install(overwrite: boolean): void;
|
|
6
|
+
/**
|
|
7
|
+
* Set TTL for `Temporal.Now.timeZoneId` cache (`Infinity` means no expiration). Pass `0` to clear and disable cache again.
|
|
8
|
+
* @param ttl TTL in milliseconds
|
|
9
|
+
*/
|
|
10
|
+
export declare function setSystemTimeZoneIdCacheTtl(ttl: number): void;
|
package/dist/shim.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function install(s) {
|
|
2
|
-
|
|
3
|
-
(a(globalThis, "Temporal", o),
|
|
4
|
-
a(globalThis, "Intl", l),
|
|
5
|
-
a(Date.prototype, "toTemporalInstant", t));
|
|
2
|
+
(s || "object" != typeof globalThis.Temporal) && (t(globalThis, "Temporal", l), t(globalThis, "Intl", e), t(Date.prototype, "toTemporalInstant", a));
|
|
6
3
|
}
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
function setSystemTimeZoneIdCacheTtl(t) {
|
|
5
|
+
s(t);
|
|
6
|
+
}
|
|
7
|
+
import { a as t, i as a, n as s, r as e, t as l } from "./src-CfkGat92.js";
|
|
8
|
+
export { install, setSystemTimeZoneIdCacheTtl };
|