@fedify/postgres 2.4.0-dev.1581 → 2.4.0-dev.1599

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.
@@ -1,4 +1,4 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
1
+
2
2
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
package/dist/kv.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
1
+
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("./_virtual/_rolldown/runtime.cjs");
4
4
  const require_utils = require("./utils.cjs");
package/dist/kv.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { driverSerializesJson } from "./utils.js";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  //#region src/kv.ts
package/dist/mod.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
1
+
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const require_kv = require("./kv.cjs");
4
4
  const require_mq = require("./mq.cjs");
package/dist/mod.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { PostgresKvStore } from "./kv.js";
3
3
  import { PostgresMessageQueue } from "./mq.js";
4
4
  export { PostgresKvStore, PostgresMessageQueue };
package/dist/mq.cjs CHANGED
@@ -1,11 +1,13 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
1
+
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
4
4
  const require_utils = require("./utils.cjs");
5
+ const require_index = require("./node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/index.cjs");
5
6
  let _logtape_logtape = require("@logtape/logtape");
6
7
  let postgres = require("postgres");
7
8
  postgres = require_runtime.__toESM(postgres, 1);
8
9
  //#region src/mq.ts
10
+ const Temporal = require_index.Temporal;
9
11
  const logger = (0, _logtape_logtape.getLogger)([
10
12
  "fedify",
11
13
  "postgres",
package/dist/mq.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { driverSerializesJson } from "./utils.js";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  import postgres from "postgres";
@@ -0,0 +1,143 @@
1
+
2
+ const require_internal = require("./internal.cjs");
3
+ //#region ../../node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/apiHelpers.js
4
+ const PlainYearMonthBranding = "PlainYearMonth";
5
+ const PlainMonthDayBranding = "PlainMonthDay";
6
+ const PlainDateBranding = "PlainDate";
7
+ const PlainDateTimeBranding = "PlainDateTime";
8
+ const PlainTimeBranding = "PlainTime";
9
+ const ZonedDateTimeBranding = "ZonedDateTime";
10
+ const InstantBranding = "Instant";
11
+ const DurationBranding = "Duration";
12
+ function defineTemporalClass(branding, cls, getSlots, ...getterMaps) {
13
+ Object.defineProperties(cls, require_internal.createNameDescriptors(branding)), Object.defineProperties(cls.prototype, require_internal.createStringTagDescriptors("Temporal." + branding));
14
+ for (const getterMap of getterMaps) defineSlotGetters(cls.prototype, getSlots, getterMap);
15
+ return cls;
16
+ }
17
+ function defineSlotGetters(destPrototype, getSlots, getterMap) {
18
+ Object.defineProperties(destPrototype, require_internal.mapProps((getter) => ({
19
+ get() {
20
+ return getter(getSlots(this));
21
+ },
22
+ configurable: 1
23
+ }), getterMap));
24
+ }
25
+ const attachDebugString = "noop" === require_internal.noop.name ? (instance) => {
26
+ Object.defineProperty(instance, "_str_", { value: instance.toJSON() });
27
+ } : require_internal.noop;
28
+ function invalidRecordType() {
29
+ require_internal.throwTypeError(require_internal.invalidCallingContext);
30
+ }
31
+ function forbiddenValueOf() {
32
+ require_internal.throwTypeError(require_internal.forbiddenValueOf);
33
+ }
34
+ const yearMonthFieldGetters$1 = {
35
+ era(slots) {
36
+ return require_internal.computeCalendarEraFields(slots.calendar, slots).era;
37
+ },
38
+ eraYear(slots) {
39
+ return require_internal.computeCalendarEraFields(slots.calendar, slots).eraYear;
40
+ },
41
+ year(slots) {
42
+ return require_internal.computeCalendarDateFields(slots.calendar, slots).year;
43
+ },
44
+ month(slots) {
45
+ return require_internal.computeCalendarDateFields(slots.calendar, slots).month;
46
+ },
47
+ monthCode(slots) {
48
+ return require_internal.computeCalendarMonthCode(slots.calendar, slots);
49
+ }
50
+ };
51
+ const dateFieldGetters$1 = {
52
+ era(slots) {
53
+ return require_internal.computeCalendarEraFields(slots.calendar, slots).era;
54
+ },
55
+ eraYear(slots) {
56
+ return require_internal.computeCalendarEraFields(slots.calendar, slots).eraYear;
57
+ },
58
+ year(slots) {
59
+ return require_internal.computeCalendarDateFields(slots.calendar, slots).year;
60
+ },
61
+ month(slots) {
62
+ return require_internal.computeCalendarDateFields(slots.calendar, slots).month;
63
+ },
64
+ monthCode(slots) {
65
+ return require_internal.computeCalendarMonthCode(slots.calendar, slots);
66
+ },
67
+ day(slots) {
68
+ return require_internal.computeCalendarDateFields(slots.calendar, slots).day;
69
+ }
70
+ };
71
+ const monthDayFieldGetters$1 = {
72
+ monthCode(slots) {
73
+ return require_internal.computeCalendarMonthCode(slots.calendar, slots);
74
+ },
75
+ day(slots) {
76
+ return require_internal.computeCalendarDateFields(slots.calendar, slots).day;
77
+ }
78
+ };
79
+ const yearMonthDerivedGetters = {
80
+ daysInMonth(slots) {
81
+ return require_internal.computeCalendarDaysInMonth(slots.calendar, slots);
82
+ },
83
+ daysInYear(slots) {
84
+ return require_internal.computeCalendarDaysInYear(slots.calendar, slots);
85
+ },
86
+ monthsInYear(slots) {
87
+ return require_internal.computeCalendarMonthsInYear(slots.calendar, slots);
88
+ },
89
+ inLeapYear(slots) {
90
+ return require_internal.computeCalendarInLeapYear(slots.calendar, slots);
91
+ }
92
+ };
93
+ const dateDerivedGetters = {
94
+ dayOfWeek(slots) {
95
+ return require_internal.computeIsoDayOfWeek(slots);
96
+ },
97
+ dayOfYear(slots) {
98
+ return require_internal.computeCalendarDayOfYear(slots.calendar, slots);
99
+ },
100
+ weekOfYear(slots) {
101
+ return require_internal.computeCalendarWeekOfYear(slots.calendar, slots);
102
+ },
103
+ yearOfWeek(slots) {
104
+ return require_internal.computeCalendarYearOfWeek(slots.calendar, slots);
105
+ },
106
+ daysInWeek() {
107
+ return 7;
108
+ },
109
+ daysInMonth(slots) {
110
+ return require_internal.computeCalendarDaysInMonth(slots.calendar, slots);
111
+ },
112
+ daysInYear(slots) {
113
+ return require_internal.computeCalendarDaysInYear(slots.calendar, slots);
114
+ },
115
+ monthsInYear(slots) {
116
+ return require_internal.computeCalendarMonthsInYear(slots.calendar, slots);
117
+ },
118
+ inLeapYear(slots) {
119
+ return require_internal.computeCalendarInLeapYear(slots.calendar, slots);
120
+ }
121
+ };
122
+ function createNativeGetters(shimGetters) {
123
+ return require_internal.createPropGetters(Object.keys(shimGetters));
124
+ }
125
+ createNativeGetters(yearMonthDerivedGetters), createNativeGetters(dateDerivedGetters);
126
+ //#endregion
127
+ exports.DurationBranding = DurationBranding;
128
+ exports.InstantBranding = InstantBranding;
129
+ exports.PlainDateBranding = PlainDateBranding;
130
+ exports.PlainDateTimeBranding = PlainDateTimeBranding;
131
+ exports.PlainMonthDayBranding = PlainMonthDayBranding;
132
+ exports.PlainTimeBranding = PlainTimeBranding;
133
+ exports.PlainYearMonthBranding = PlainYearMonthBranding;
134
+ exports.ZonedDateTimeBranding = ZonedDateTimeBranding;
135
+ exports.attachDebugString = attachDebugString;
136
+ exports.dateDerivedGetters = dateDerivedGetters;
137
+ exports.dateFieldGetters$1 = dateFieldGetters$1;
138
+ exports.defineTemporalClass = defineTemporalClass;
139
+ exports.forbiddenValueOf = forbiddenValueOf;
140
+ exports.invalidRecordType = invalidRecordType;
141
+ exports.monthDayFieldGetters$1 = monthDayFieldGetters$1;
142
+ exports.yearMonthDerivedGetters = yearMonthDerivedGetters;
143
+ exports.yearMonthFieldGetters$1 = yearMonthFieldGetters$1;