@fedify/sqlite 2.4.0-dev.1583 → 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.
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "2.4.0-dev.1583+1a6f31cb",
3
+ "version": "2.4.0-dev.1599+7b19967f",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
package/dist/kv.cjs CHANGED
@@ -1,9 +1,11 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
1
+
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const require_index = require("./node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/index.cjs");
3
4
  let _sqlite = require("#sqlite");
4
5
  let _logtape_logtape = require("@logtape/logtape");
5
6
  let es_toolkit = require("es-toolkit");
6
7
  //#region src/kv.ts
8
+ const Temporal = require_index.Temporal;
7
9
  const logger = (0, _logtape_logtape.getLogger)([
8
10
  "fedify",
9
11
  "sqlite",
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 { SqliteDatabase } from "#sqlite";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  import { isEqual } from "es-toolkit";
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 { SqliteKvStore } from "./kv.js";
3
3
  import { SqliteMessageQueue } from "./mq.js";
4
4
  export { SqliteKvStore, SqliteMessageQueue };
package/dist/mq.cjs CHANGED
@@ -1,8 +1,11 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
1
+
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const require_index = require("./node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/index.cjs");
3
4
  let _sqlite = require("#sqlite");
5
+ let _logtape_logtape = require("@logtape/logtape");
4
6
  //#region src/mq.ts
5
- const logger = (0, require("@logtape/logtape").getLogger)([
7
+ const Temporal = require_index.Temporal;
8
+ const logger = (0, _logtape_logtape.getLogger)([
6
9
  "fedify",
7
10
  "sqlite",
8
11
  "mq"
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 { SqliteDatabase } from "#sqlite";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  //#region src/mq.ts
@@ -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;