@nexpress/core 0.1.5 → 0.1.6
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-CBCJUO4X.js → chunk-2IQ3JCLS.js} +6 -6
- package/dist/{chunk-O44S7KGT.js → chunk-7EYR3GGQ.js} +2 -2
- package/dist/{chunk-WU22KSBT.js → chunk-HLWSJWSO.js} +2 -2
- package/dist/{chunk-OFJXJUK7.js → chunk-MAGGAGUF.js} +6 -6
- package/dist/{chunk-3UNQWZNN.js → chunk-QBG4WENF.js} +2 -2
- package/dist/{chunk-U7UJ5V66.js → chunk-UU2LLLPG.js} +2 -2
- package/dist/community.js +3 -3
- package/dist/{config-EH4U64N7.js → config-IIX4XJCI.js} +3 -3
- package/dist/{host-KGXIV334.js → host-JFSJFGNB.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/jobs.js +1 -1
- package/dist/{scheduled-AIDL5ZQM.js → scheduled-3XMIKAUZ.js} +3 -3
- package/dist/seo.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-CBCJUO4X.js.map → chunk-2IQ3JCLS.js.map} +0 -0
- /package/dist/{chunk-O44S7KGT.js.map → chunk-7EYR3GGQ.js.map} +0 -0
- /package/dist/{chunk-WU22KSBT.js.map → chunk-HLWSJWSO.js.map} +0 -0
- /package/dist/{chunk-OFJXJUK7.js.map → chunk-MAGGAGUF.js.map} +0 -0
- /package/dist/{chunk-3UNQWZNN.js.map → chunk-QBG4WENF.js.map} +0 -0
- /package/dist/{chunk-U7UJ5V66.js.map → chunk-UU2LLLPG.js.map} +0 -0
- /package/dist/{config-EH4U64N7.js.map → config-IIX4XJCI.js.map} +0 -0
- /package/dist/{host-KGXIV334.js.map → host-JFSJFGNB.js.map} +0 -0
- /package/dist/{scheduled-AIDL5ZQM.js.map → scheduled-3XMIKAUZ.js.map} +0 -0
|
@@ -1885,7 +1885,7 @@ function createPluginRuntimeContext(options) {
|
|
|
1885
1885
|
return row.value;
|
|
1886
1886
|
},
|
|
1887
1887
|
async getPlugin() {
|
|
1888
|
-
const { getPluginConfig } = await import("./config-
|
|
1888
|
+
const { getPluginConfig } = await import("./config-IIX4XJCI.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-
|
|
1897
|
-
const { getPluginRegistration: getPluginRegistration2 } = await import("./host-
|
|
1896
|
+
const { setPluginConfig } = await import("./config-IIX4XJCI.js");
|
|
1897
|
+
const { getPluginRegistration: getPluginRegistration2 } = await import("./host-JFSJFGNB.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.1.
|
|
2128
|
+
var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.1.6" : "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-
|
|
2278
|
+
const { getPluginConfig } = await import("./config-IIX4XJCI.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-
|
|
2790
|
+
//# sourceMappingURL=chunk-2IQ3JCLS.js.map
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
findDocuments,
|
|
27
27
|
getDocumentById,
|
|
28
28
|
saveDocument
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2IQ3JCLS.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-
|
|
1959
|
+
//# sourceMappingURL=chunk-7EYR3GGQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPluginRegistration
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2IQ3JCLS.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-HLWSJWSO.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-
|
|
148
|
+
const { publishScheduledDocuments } = await import("./scheduled-3XMIKAUZ.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-JFSJFGNB.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-JFSJFGNB.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-JFSJFGNB.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-JFSJFGNB.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-MAGGAGUF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHook
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2IQ3JCLS.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-QBG4WENF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findDocuments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2IQ3JCLS.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-
|
|
597
|
+
//# sourceMappingURL=chunk-UU2LLLPG.js.map
|
package/dist/community.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
unfollow,
|
|
34
34
|
unresolvedReportCount,
|
|
35
35
|
updateComment
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7EYR3GGQ.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-
|
|
86
|
+
import "./chunk-QBG4WENF.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-
|
|
96
|
+
import "./chunk-2IQ3JCLS.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-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-HLWSJWSO.js";
|
|
9
|
+
import "./chunk-2IQ3JCLS.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-
|
|
32
|
+
//# sourceMappingURL=config-IIX4XJCI.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
runHookAndCollect,
|
|
17
17
|
runPluginScheduledTask,
|
|
18
18
|
schedulePluginTask
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2IQ3JCLS.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-
|
|
51
|
+
//# sourceMappingURL=host-JFSJFGNB.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-HLWSJWSO.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-
|
|
41
|
+
} from "./chunk-UU2LLLPG.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-
|
|
129
|
+
} from "./chunk-7EYR3GGQ.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-
|
|
181
|
+
} from "./chunk-QBG4WENF.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-
|
|
226
|
+
} from "./chunk-2IQ3JCLS.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-
|
|
345
|
+
} from "./chunk-MAGGAGUF.js";
|
|
346
346
|
import {
|
|
347
347
|
DEFAULT_JOB_LOG_RETENTION_MS,
|
|
348
348
|
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-QBG4WENF.js";
|
|
4
|
+
import "./chunk-2IQ3JCLS.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-
|
|
20
|
+
//# sourceMappingURL=scheduled-3XMIKAUZ.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-UU2LLLPG.js";
|
|
16
|
+
import "./chunk-2IQ3JCLS.js";
|
|
17
17
|
import "./chunk-4ZLMEKFX.js";
|
|
18
18
|
import "./chunk-FZ7O6DWI.js";
|
|
19
19
|
import "./chunk-SBCVAC2Z.js";
|
package/package.json
CHANGED
|
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
|