@nexpress/core 0.3.3 → 0.3.5
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/dist/{chunk-WG3B2GNE.js → chunk-AYWEGNEX.js} +6 -6
- package/dist/{chunk-HYYMUVUK.js → chunk-G5OVHS2V.js} +2 -2
- package/dist/{chunk-2TOS5BYT.js → chunk-ITJ6DX2L.js} +2 -2
- package/dist/{chunk-WOLMQGW7.js → chunk-N3LILW6D.js} +2 -2
- package/dist/{chunk-MXOHWU2P.js → chunk-O3YQ5EMA.js} +6 -6
- package/dist/{chunk-AOEN5EIX.js → chunk-ZGPZPMZD.js} +2 -2
- package/dist/community.js +3 -3
- package/dist/{config-CO6TXCA6.js → config-XTLZZTOF.js} +3 -3
- package/dist/{host-HDRI7WIP.js → host-DIQNMXIB.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/jobs.js +1 -1
- package/dist/{scheduled-7MSJIJLE.js → scheduled-4T3QXV7A.js} +3 -3
- package/dist/seo.js +2 -2
- package/package.json +4 -4
- /package/dist/{chunk-WG3B2GNE.js.map → chunk-AYWEGNEX.js.map} +0 -0
- /package/dist/{chunk-HYYMUVUK.js.map → chunk-G5OVHS2V.js.map} +0 -0
- /package/dist/{chunk-2TOS5BYT.js.map → chunk-ITJ6DX2L.js.map} +0 -0
- /package/dist/{chunk-WOLMQGW7.js.map → chunk-N3LILW6D.js.map} +0 -0
- /package/dist/{chunk-MXOHWU2P.js.map → chunk-O3YQ5EMA.js.map} +0 -0
- /package/dist/{chunk-AOEN5EIX.js.map → chunk-ZGPZPMZD.js.map} +0 -0
- /package/dist/{config-CO6TXCA6.js.map → config-XTLZZTOF.js.map} +0 -0
- /package/dist/{host-HDRI7WIP.js.map → host-DIQNMXIB.js.map} +0 -0
- /package/dist/{scheduled-7MSJIJLE.js.map → scheduled-4T3QXV7A.js.map} +0 -0
|
@@ -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-
|
|
148
|
+
const { publishScheduledDocuments } = await import("./scheduled-4T3QXV7A.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-
|
|
196
|
+
const { runPluginScheduledTask } = await import("./host-DIQNMXIB.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-
|
|
676
|
+
const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-DIQNMXIB.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-
|
|
778
|
+
const { getRegisteredPluginSchedules } = await import("./host-DIQNMXIB.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-
|
|
942
|
+
const { getRegisteredPluginSchedules } = await import("./host-DIQNMXIB.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-
|
|
1270
|
+
//# sourceMappingURL=chunk-AYWEGNEX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHook
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O3YQ5EMA.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-
|
|
83
|
+
//# sourceMappingURL=chunk-G5OVHS2V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPluginRegistration
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O3YQ5EMA.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-
|
|
322
|
+
//# sourceMappingURL=chunk-ITJ6DX2L.js.map
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
findDocuments,
|
|
30
30
|
getDocumentById,
|
|
31
31
|
saveDocument
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-O3YQ5EMA.js";
|
|
33
33
|
import {
|
|
34
34
|
deleteMedia
|
|
35
35
|
} from "./chunk-2VZZ7M26.js";
|
|
@@ -1956,4 +1956,4 @@ export {
|
|
|
1956
1956
|
revokeMemberRole,
|
|
1957
1957
|
purgeMemberContent
|
|
1958
1958
|
};
|
|
1959
|
-
//# sourceMappingURL=chunk-
|
|
1959
|
+
//# sourceMappingURL=chunk-N3LILW6D.js.map
|
|
@@ -1836,7 +1836,7 @@ function createPluginRuntimeContext(options) {
|
|
|
1836
1836
|
return row.value;
|
|
1837
1837
|
},
|
|
1838
1838
|
async getPlugin() {
|
|
1839
|
-
const { getPluginConfig } = await import("./config-
|
|
1839
|
+
const { getPluginConfig } = await import("./config-XTLZZTOF.js");
|
|
1840
1840
|
const value = await getPluginConfig(pluginId);
|
|
1841
1841
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
1842
1842
|
return value;
|
|
@@ -1844,8 +1844,8 @@ function createPluginRuntimeContext(options) {
|
|
|
1844
1844
|
return {};
|
|
1845
1845
|
},
|
|
1846
1846
|
async setPlugin(data) {
|
|
1847
|
-
const { setPluginConfig } = await import("./config-
|
|
1848
|
-
const { getPluginRegistration: getPluginRegistration2 } = await import("./host-
|
|
1847
|
+
const { setPluginConfig } = await import("./config-XTLZZTOF.js");
|
|
1848
|
+
const { getPluginRegistration: getPluginRegistration2 } = await import("./host-DIQNMXIB.js");
|
|
1849
1849
|
const reg = getPluginRegistration2(pluginId);
|
|
1850
1850
|
if (reg?.configSchema) {
|
|
1851
1851
|
await setPluginConfig(pluginId, data, null);
|
|
@@ -2076,7 +2076,7 @@ function invalidatePluginEnabled(pluginId) {
|
|
|
2076
2076
|
var fetchOverride = null;
|
|
2077
2077
|
|
|
2078
2078
|
// src/plugins/compat.ts
|
|
2079
|
-
var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.3.
|
|
2079
|
+
var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.3.5" : "0.0.0-dev";
|
|
2080
2080
|
var frameworkVersion = FRAMEWORK_VERSION_FROM_PACKAGE;
|
|
2081
2081
|
function getFrameworkVersion() {
|
|
2082
2082
|
return frameworkVersion;
|
|
@@ -2226,7 +2226,7 @@ function insertSortedByPriority(list, entry) {
|
|
|
2226
2226
|
list.sort((a, b) => a.priority - b.priority);
|
|
2227
2227
|
}
|
|
2228
2228
|
async function loadPluginConfig(pluginId) {
|
|
2229
|
-
const { getPluginConfig } = await import("./config-
|
|
2229
|
+
const { getPluginConfig } = await import("./config-XTLZZTOF.js");
|
|
2230
2230
|
const value = await getPluginConfig(pluginId);
|
|
2231
2231
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
2232
2232
|
return value;
|
|
@@ -2737,4 +2737,4 @@ export {
|
|
|
2737
2737
|
findDocuments,
|
|
2738
2738
|
getDocumentById
|
|
2739
2739
|
};
|
|
2740
|
-
//# sourceMappingURL=chunk-
|
|
2740
|
+
//# sourceMappingURL=chunk-O3YQ5EMA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findDocuments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O3YQ5EMA.js";
|
|
4
4
|
import {
|
|
5
5
|
getI18nConfig
|
|
6
6
|
} from "./chunk-4ZLMEKFX.js";
|
|
@@ -597,4 +597,4 @@ export {
|
|
|
597
597
|
buildDiscussionForumPostingJsonLd,
|
|
598
598
|
buildPersonJsonLd
|
|
599
599
|
};
|
|
600
|
-
//# sourceMappingURL=chunk-
|
|
600
|
+
//# sourceMappingURL=chunk-ZGPZPMZD.js.map
|
package/dist/community.js
CHANGED
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
unfollow,
|
|
34
34
|
unresolvedReportCount,
|
|
35
35
|
updateComment
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-N3LILW6D.js";
|
|
37
|
+
import "./chunk-G5OVHS2V.js";
|
|
38
38
|
import {
|
|
39
39
|
buildDigestEmail,
|
|
40
40
|
runDigestSweep
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
setProfanityAdapter
|
|
95
95
|
} from "./chunk-KU5M27ZC.js";
|
|
96
96
|
import "./chunk-2N53KKIL.js";
|
|
97
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-O3YQ5EMA.js";
|
|
98
98
|
import "./chunk-2VZZ7M26.js";
|
|
99
99
|
import "./chunk-EQ2Z3KMD.js";
|
|
100
100
|
import {
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
isVersionedPluginConfig,
|
|
6
6
|
pluginConfigCacheTag,
|
|
7
7
|
setPluginConfig
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ITJ6DX2L.js";
|
|
9
|
+
import "./chunk-O3YQ5EMA.js";
|
|
10
10
|
import "./chunk-2VZZ7M26.js";
|
|
11
11
|
import "./chunk-LMPYQLMH.js";
|
|
12
12
|
import "./chunk-2KNG5KMM.js";
|
|
@@ -30,4 +30,4 @@ export {
|
|
|
30
30
|
pluginConfigCacheTag,
|
|
31
31
|
setPluginConfig
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=config-
|
|
33
|
+
//# sourceMappingURL=config-XTLZZTOF.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
runHookAndCollect,
|
|
17
17
|
runPluginScheduledTask,
|
|
18
18
|
schedulePluginTask
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O3YQ5EMA.js";
|
|
20
20
|
import "./chunk-2VZZ7M26.js";
|
|
21
21
|
import "./chunk-EFZH6UPY.js";
|
|
22
22
|
import "./chunk-4ZLMEKFX.js";
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
runPluginScheduledTask,
|
|
50
50
|
schedulePluginTask
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=host-
|
|
52
|
+
//# sourceMappingURL=host-DIQNMXIB.js.map
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
introspectThemeSettingsSchema,
|
|
5
5
|
pluginConfigCacheTag,
|
|
6
6
|
setPluginConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ITJ6DX2L.js";
|
|
8
8
|
import {
|
|
9
9
|
getPluginTemplatesForCollection,
|
|
10
10
|
registerPluginTemplates,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
renderSitemapIndexXml,
|
|
42
42
|
renderSitemapXml,
|
|
43
43
|
validateSeoSettingsPatch
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZGPZPMZD.js";
|
|
45
45
|
import {
|
|
46
46
|
ARGON2_OPTIONS,
|
|
47
47
|
authenticated,
|
|
@@ -130,10 +130,10 @@ import {
|
|
|
130
130
|
unfollow,
|
|
131
131
|
unresolvedReportCount,
|
|
132
132
|
updateComment
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-N3LILW6D.js";
|
|
134
134
|
import {
|
|
135
135
|
publishScheduledDocuments
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-G5OVHS2V.js";
|
|
137
137
|
import {
|
|
138
138
|
buildDigestEmail,
|
|
139
139
|
runDigestSweep
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
schedulePluginTask,
|
|
230
230
|
updateMemberDocument,
|
|
231
231
|
withDeferredPostCommit
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-O3YQ5EMA.js";
|
|
233
233
|
import {
|
|
234
234
|
DEFAULT_IMAGE_SIZES,
|
|
235
235
|
cleanupDeletedMedia,
|
|
@@ -366,7 +366,7 @@ import {
|
|
|
366
366
|
startWorker,
|
|
367
367
|
stopProducer,
|
|
368
368
|
stopWorker
|
|
369
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-AYWEGNEX.js";
|
|
370
370
|
import {
|
|
371
371
|
DEFAULT_JOB_LOG_RETENTION_MS,
|
|
372
372
|
countJobLogs,
|
package/dist/jobs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
publishScheduledDocuments
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-G5OVHS2V.js";
|
|
4
|
+
import "./chunk-O3YQ5EMA.js";
|
|
5
5
|
import "./chunk-2VZZ7M26.js";
|
|
6
6
|
import "./chunk-EFZH6UPY.js";
|
|
7
7
|
import "./chunk-4ZLMEKFX.js";
|
|
@@ -18,4 +18,4 @@ import "./chunk-PZ5AY32C.js";
|
|
|
18
18
|
export {
|
|
19
19
|
publishScheduledDocuments
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=scheduled-
|
|
21
|
+
//# sourceMappingURL=scheduled-4T3QXV7A.js.map
|
package/dist/seo.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
renderSitemapIndexXml,
|
|
13
13
|
renderSitemapXml,
|
|
14
14
|
validateSeoSettingsPatch
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-ZGPZPMZD.js";
|
|
16
|
+
import "./chunk-O3YQ5EMA.js";
|
|
17
17
|
import "./chunk-2VZZ7M26.js";
|
|
18
18
|
import "./chunk-EFZH6UPY.js";
|
|
19
19
|
import "./chunk-4ZLMEKFX.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexpress/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Server-side core for NexPress — collections pipeline, auth, jobs, media, plugins, observability.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nexpress",
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@aws-sdk/client-s3": "^3.
|
|
107
|
+
"@aws-sdk/client-s3": "^3.1049.0",
|
|
108
108
|
"@node-rs/argon2": "^2.0.2",
|
|
109
109
|
"arctic": "^3.7.0",
|
|
110
110
|
"drizzle-orm": "^0.45.2",
|
|
111
111
|
"intl-messageformat": "^11.2.4",
|
|
112
|
-
"jose": "^6.2.
|
|
113
|
-
"pg": "^8.
|
|
112
|
+
"jose": "^6.2.3",
|
|
113
|
+
"pg": "^8.21.0",
|
|
114
114
|
"pg-boss": "^12.18.2",
|
|
115
115
|
"sharp": "^0.34.2",
|
|
116
116
|
"zod": "^4.4.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|