@nexpress/core 0.2.0 → 0.2.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.
@@ -26,7 +26,7 @@ import {
26
26
  findDocuments,
27
27
  getDocumentById,
28
28
  saveDocument
29
- } from "./chunk-GFXXRMH4.js";
29
+ } from "./chunk-2M4DQNHX.js";
30
30
  import {
31
31
  can
32
32
  } from "./chunk-EQ2Z3KMD.js";
@@ -1956,4 +1956,4 @@ export {
1956
1956
  revokeMemberRole,
1957
1957
  purgeMemberContent
1958
1958
  };
1959
- //# sourceMappingURL=chunk-5L2FVFUX.js.map
1959
+ //# sourceMappingURL=chunk-2GWRIV3W.js.map
@@ -1885,7 +1885,7 @@ function createPluginRuntimeContext(options) {
1885
1885
  return row.value;
1886
1886
  },
1887
1887
  async getPlugin() {
1888
- const { getPluginConfig } = await import("./config-XIWZFOFI.js");
1888
+ const { getPluginConfig } = await import("./config-QJLI2A5L.js");
1889
1889
  const value = await getPluginConfig(pluginId);
1890
1890
  if (value && typeof value === "object" && !Array.isArray(value)) {
1891
1891
  return value;
@@ -1893,8 +1893,8 @@ function createPluginRuntimeContext(options) {
1893
1893
  return {};
1894
1894
  },
1895
1895
  async setPlugin(data) {
1896
- const { setPluginConfig } = await import("./config-XIWZFOFI.js");
1897
- const { getPluginRegistration: getPluginRegistration2 } = await import("./host-SOCAJIUE.js");
1896
+ const { setPluginConfig } = await import("./config-QJLI2A5L.js");
1897
+ const { getPluginRegistration: getPluginRegistration2 } = await import("./host-RVFIDFPR.js");
1898
1898
  const reg = getPluginRegistration2(pluginId);
1899
1899
  if (reg?.configSchema) {
1900
1900
  await setPluginConfig(pluginId, data, null);
@@ -2125,7 +2125,7 @@ function invalidatePluginEnabled(pluginId) {
2125
2125
  var fetchOverride = null;
2126
2126
 
2127
2127
  // src/plugins/compat.ts
2128
- var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.2.0" : "0.0.0-dev";
2128
+ var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.2.1" : "0.0.0-dev";
2129
2129
  var frameworkVersion = FRAMEWORK_VERSION_FROM_PACKAGE;
2130
2130
  function getFrameworkVersion() {
2131
2131
  return frameworkVersion;
@@ -2275,7 +2275,7 @@ function insertSortedByPriority(list, entry) {
2275
2275
  list.sort((a, b) => a.priority - b.priority);
2276
2276
  }
2277
2277
  async function loadPluginConfig(pluginId) {
2278
- const { getPluginConfig } = await import("./config-XIWZFOFI.js");
2278
+ const { getPluginConfig } = await import("./config-QJLI2A5L.js");
2279
2279
  const value = await getPluginConfig(pluginId);
2280
2280
  if (value && typeof value === "object" && !Array.isArray(value)) {
2281
2281
  return value;
@@ -2787,4 +2787,4 @@ export {
2787
2787
  findDocuments,
2788
2788
  getDocumentById
2789
2789
  };
2790
- //# sourceMappingURL=chunk-GFXXRMH4.js.map
2790
+ //# sourceMappingURL=chunk-2M4DQNHX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runHook
3
- } from "./chunk-GFXXRMH4.js";
3
+ } from "./chunk-2M4DQNHX.js";
4
4
  import {
5
5
  getAllCollectionSlugs,
6
6
  getCollectionConfig,
@@ -80,4 +80,4 @@ async function publishScheduledDocuments(atTime = /* @__PURE__ */ new Date()) {
80
80
  export {
81
81
  publishScheduledDocuments
82
82
  };
83
- //# sourceMappingURL=chunk-YFJK2YEJ.js.map
83
+ //# sourceMappingURL=chunk-CYCRYBLX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findDocuments
3
- } from "./chunk-GFXXRMH4.js";
3
+ } from "./chunk-2M4DQNHX.js";
4
4
  import {
5
5
  getI18nConfig
6
6
  } from "./chunk-4ZLMEKFX.js";
@@ -594,4 +594,4 @@ export {
594
594
  buildDiscussionForumPostingJsonLd,
595
595
  buildPersonJsonLd
596
596
  };
597
- //# sourceMappingURL=chunk-4IEBNUYU.js.map
597
+ //# sourceMappingURL=chunk-RNR7KISG.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPluginRegistration
3
- } from "./chunk-GFXXRMH4.js";
3
+ } from "./chunk-2M4DQNHX.js";
4
4
  import {
5
5
  getCurrentSiteId
6
6
  } from "./chunk-SBCVAC2Z.js";
@@ -319,4 +319,4 @@ export {
319
319
  setPluginConfig,
320
320
  pluginConfigCacheTag
321
321
  };
322
- //# sourceMappingURL=chunk-HKAYX4B4.js.map
322
+ //# sourceMappingURL=chunk-RRYDSZXG.js.map
@@ -145,7 +145,7 @@ function registerBuiltinHandlers() {
145
145
  registerJobHandler("notifications:sendDigest", handleNotificationsSendDigest);
146
146
  }
147
147
  async function handleContentPublishScheduled(_) {
148
- const { publishScheduledDocuments } = await import("./scheduled-W5PR7C6H.js");
148
+ const { publishScheduledDocuments } = await import("./scheduled-2AHT3QBN.js");
149
149
  const result = await publishScheduledDocuments();
150
150
  if (result.published > 0) {
151
151
  console.info(
@@ -193,7 +193,7 @@ async function handleMediaCleanup(data) {
193
193
  async function handlePluginScheduledTask(data) {
194
194
  if (isRecord(data) && typeof data.pluginId === "string" && typeof data.taskId === "string") {
195
195
  try {
196
- const { runPluginScheduledTask } = await import("./host-SOCAJIUE.js");
196
+ const { runPluginScheduledTask } = await import("./host-RVFIDFPR.js");
197
197
  await runPluginScheduledTask(data.pluginId, data.taskId);
198
198
  return;
199
199
  } catch (err) {
@@ -673,7 +673,7 @@ var PgBossAdapter = class {
673
673
  this.workRegistrations.push({ queueName, register });
674
674
  await register();
675
675
  }
676
- const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-SOCAJIUE.js");
676
+ const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-RVFIDFPR.js");
677
677
  for (const schedule of getRegisteredPluginSchedules()) {
678
678
  const queueName = `${toQueueName("plugin:scheduledTask")}.${schedule.pluginId}.${schedule.taskId}`;
679
679
  await this.boss.createQueue(queueName);
@@ -775,7 +775,7 @@ var PgBossAdapter = class {
775
775
  });
776
776
  await this.boss.schedule(digestQueue, "0 8 * * *", { cadence: "daily" }, { key: "daily" });
777
777
  await this.boss.schedule(digestQueue, "0 8 * * 1", { cadence: "weekly" }, { key: "weekly" });
778
- const { getRegisteredPluginSchedules } = await import("./host-SOCAJIUE.js");
778
+ const { getRegisteredPluginSchedules } = await import("./host-RVFIDFPR.js");
779
779
  for (const schedule of getRegisteredPluginSchedules()) {
780
780
  const pgBossName = `${toQueueName("plugin:scheduledTask")}.${schedule.pluginId}.${schedule.taskId}`;
781
781
  await this.boss.schedule(pgBossName, schedule.cron, {
@@ -939,7 +939,7 @@ var PgBossAdapter = class {
939
939
  * `workerOwnsRegistrations` so the admin UI can warn the operator.
940
940
  */
941
941
  async reconcilePluginSchedules() {
942
- const { getRegisteredPluginSchedules } = await import("./host-SOCAJIUE.js");
942
+ const { getRegisteredPluginSchedules } = await import("./host-RVFIDFPR.js");
943
943
  const wantedList = getRegisteredPluginSchedules();
944
944
  const wantedByName = /* @__PURE__ */ new Map();
945
945
  for (const schedule of wantedList) {
@@ -1267,4 +1267,4 @@ export {
1267
1267
  stopWorker,
1268
1268
  stopProducer
1269
1269
  };
1270
- //# sourceMappingURL=chunk-FNLBIPKV.js.map
1270
+ //# sourceMappingURL=chunk-XX4GLFD6.js.map
package/dist/community.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  unfollow,
34
34
  unresolvedReportCount,
35
35
  updateComment
36
- } from "./chunk-5L2FVFUX.js";
36
+ } from "./chunk-2GWRIV3W.js";
37
37
  import {
38
38
  buildDigestEmail,
39
39
  runDigestSweep
@@ -83,7 +83,7 @@ import {
83
83
  resetProfanityAdapter,
84
84
  setProfanityAdapter
85
85
  } from "./chunk-KU5M27ZC.js";
86
- import "./chunk-YFJK2YEJ.js";
86
+ import "./chunk-CYCRYBLX.js";
87
87
  import {
88
88
  assertNotBanned,
89
89
  getCommunityRole,
@@ -93,7 +93,7 @@ import {
93
93
  resetCommunityRoles,
94
94
  withMemberWrite
95
95
  } from "./chunk-55FU6WED.js";
96
- import "./chunk-GFXXRMH4.js";
96
+ import "./chunk-2M4DQNHX.js";
97
97
  import "./chunk-EQ2Z3KMD.js";
98
98
  import {
99
99
  listAuditEvents,
@@ -5,8 +5,8 @@ import {
5
5
  isVersionedPluginConfig,
6
6
  pluginConfigCacheTag,
7
7
  setPluginConfig
8
- } from "./chunk-HKAYX4B4.js";
9
- import "./chunk-GFXXRMH4.js";
8
+ } from "./chunk-RRYDSZXG.js";
9
+ import "./chunk-2M4DQNHX.js";
10
10
  import "./chunk-TFJ4MKPH.js";
11
11
  import "./chunk-PPAS4SZR.js";
12
12
  import "./chunk-4ZLMEKFX.js";
@@ -29,4 +29,4 @@ export {
29
29
  pluginConfigCacheTag,
30
30
  setPluginConfig
31
31
  };
32
- //# sourceMappingURL=config-XIWZFOFI.js.map
32
+ //# sourceMappingURL=config-QJLI2A5L.js.map
@@ -16,7 +16,7 @@ import {
16
16
  runHookAndCollect,
17
17
  runPluginScheduledTask,
18
18
  schedulePluginTask
19
- } from "./chunk-GFXXRMH4.js";
19
+ } from "./chunk-2M4DQNHX.js";
20
20
  import "./chunk-4ZLMEKFX.js";
21
21
  import "./chunk-FZ7O6DWI.js";
22
22
  import "./chunk-SBCVAC2Z.js";
@@ -48,4 +48,4 @@ export {
48
48
  runPluginScheduledTask,
49
49
  schedulePluginTask
50
50
  };
51
- //# sourceMappingURL=host-SOCAJIUE.js.map
51
+ //# sourceMappingURL=host-RVFIDFPR.js.map
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  introspectThemeSettingsSchema,
5
5
  pluginConfigCacheTag,
6
6
  setPluginConfig
7
- } from "./chunk-HKAYX4B4.js";
7
+ } from "./chunk-RRYDSZXG.js";
8
8
  import {
9
9
  getPluginTemplatesForCollection,
10
10
  registerPluginTemplates,
@@ -38,7 +38,7 @@ import {
38
38
  renderSitemapIndexXml,
39
39
  renderSitemapXml,
40
40
  validateSeoSettingsPatch
41
- } from "./chunk-4IEBNUYU.js";
41
+ } from "./chunk-RNR7KISG.js";
42
42
  import {
43
43
  ARGON2_OPTIONS,
44
44
  authenticated,
@@ -126,7 +126,7 @@ import {
126
126
  unfollow,
127
127
  unresolvedReportCount,
128
128
  updateComment
129
- } from "./chunk-5L2FVFUX.js";
129
+ } from "./chunk-2GWRIV3W.js";
130
130
  import {
131
131
  buildDigestEmail,
132
132
  runDigestSweep
@@ -178,7 +178,7 @@ import {
178
178
  } from "./chunk-KU5M27ZC.js";
179
179
  import {
180
180
  publishScheduledDocuments
181
- } from "./chunk-YFJK2YEJ.js";
181
+ } from "./chunk-CYCRYBLX.js";
182
182
  import {
183
183
  assertNotBanned,
184
184
  getCommunityRole,
@@ -223,7 +223,7 @@ import {
223
223
  saveDocument,
224
224
  schedulePluginTask,
225
225
  updateMemberDocument
226
- } from "./chunk-GFXXRMH4.js";
226
+ } from "./chunk-2M4DQNHX.js";
227
227
  import {
228
228
  can
229
229
  } from "./chunk-EQ2Z3KMD.js";
@@ -342,7 +342,7 @@ import {
342
342
  startWorker,
343
343
  stopProducer,
344
344
  stopWorker
345
- } from "./chunk-FNLBIPKV.js";
345
+ } from "./chunk-XX4GLFD6.js";
346
346
  import {
347
347
  DEFAULT_JOB_LOG_RETENTION_MS,
348
348
  countJobLogs,
package/dist/jobs.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  startWorker,
19
19
  stopProducer,
20
20
  stopWorker
21
- } from "./chunk-FNLBIPKV.js";
21
+ } from "./chunk-XX4GLFD6.js";
22
22
  import {
23
23
  DEFAULT_JOB_LOG_RETENTION_MS,
24
24
  countJobLogs,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  publishScheduledDocuments
3
- } from "./chunk-YFJK2YEJ.js";
4
- import "./chunk-GFXXRMH4.js";
3
+ } from "./chunk-CYCRYBLX.js";
4
+ import "./chunk-2M4DQNHX.js";
5
5
  import "./chunk-4ZLMEKFX.js";
6
6
  import "./chunk-FZ7O6DWI.js";
7
7
  import "./chunk-SBCVAC2Z.js";
@@ -17,4 +17,4 @@ import "./chunk-PZ5AY32C.js";
17
17
  export {
18
18
  publishScheduledDocuments
19
19
  };
20
- //# sourceMappingURL=scheduled-W5PR7C6H.js.map
20
+ //# sourceMappingURL=scheduled-2AHT3QBN.js.map
package/dist/seo.js CHANGED
@@ -12,8 +12,8 @@ import {
12
12
  renderSitemapIndexXml,
13
13
  renderSitemapXml,
14
14
  validateSeoSettingsPatch
15
- } from "./chunk-4IEBNUYU.js";
16
- import "./chunk-GFXXRMH4.js";
15
+ } from "./chunk-RNR7KISG.js";
16
+ import "./chunk-2M4DQNHX.js";
17
17
  import "./chunk-4ZLMEKFX.js";
18
18
  import "./chunk-FZ7O6DWI.js";
19
19
  import "./chunk-SBCVAC2Z.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexpress/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Server-side core for NexPress — collections pipeline, auth, jobs, media, plugins, observability.",
5
5
  "license": "MIT",
6
6
  "author": "Nexpress",