@nexpress/core 0.2.1 → 0.3.0
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/{audit-54XLVCWD.js → audit-43OLHR3U.js} +4 -4
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +6 -6
- package/dist/{can-YLUHRJAB.js → can-FKIEV54H.js} +5 -5
- package/dist/{chunk-TFJ4MKPH.js → chunk-26RYBFTF.js} +2 -2
- package/dist/{chunk-PPAS4SZR.js → chunk-2KNG5KMM.js} +2 -2
- package/dist/{chunk-CYCRYBLX.js → chunk-4EPNN4XG.js} +3 -3
- package/dist/{chunk-PPBWRKO2.js → chunk-74CGJJDY.js} +3 -3
- package/dist/{chunk-2YDGE7YX.js → chunk-B7DTNT4O.js} +2 -2
- package/dist/{chunk-CTSQ7BRI.js → chunk-CAS4Z6IN.js} +2 -2
- package/dist/{chunk-BHK3AD3Q.js → chunk-CHQJG4BB.js} +3 -3
- package/dist/{chunk-NUCGHWCF.js → chunk-CKT4QZDC.js} +7 -7
- package/dist/{chunk-RNR7KISG.js → chunk-DPRBHEHI.js} +4 -4
- package/dist/{chunk-473S4TER.js → chunk-DWG3RZH2.js} +4 -4
- package/dist/{chunk-QVJ2HCAX.js → chunk-ELK6AVW5.js} +4 -4
- package/dist/{chunk-RRYDSZXG.js → chunk-EVOBLRHW.js} +6 -6
- package/dist/{chunk-UGQSQO5B.js → chunk-HM46WM45.js} +9 -9
- package/dist/{chunk-2M4DQNHX.js → chunk-HTDDXBMY.js} +29 -29
- package/dist/{chunk-THX3SHYA.js → chunk-L6VG7IK6.js} +3 -3
- package/dist/{chunk-VNIHXQ7W.js → chunk-LN6NTH6E.js} +5 -5
- package/dist/{chunk-RIPHIRPP.js → chunk-ML2E3P3X.js} +3 -3
- package/dist/{chunk-JJL74ZPK.js → chunk-NFHS7CFV.js} +2 -2
- package/dist/{chunk-55FU6WED.js → chunk-PQBJWZ7D.js} +6 -6
- package/dist/{chunk-DK2JBJH7.js → chunk-QBIJZZ5V.js} +3 -3
- package/dist/{chunk-XX4GLFD6.js → chunk-QSJIKNQJ.js} +11 -11
- package/dist/{chunk-OK5HOCQI.js → chunk-QYP6E5FP.js} +4 -4
- package/dist/{chunk-2GWRIV3W.js → chunk-TD4KNSEP.js} +18 -18
- package/dist/{chunk-S27S42QY.js → chunk-TETTWT56.js} +2 -2
- package/dist/{chunk-FZ7O6DWI.js → chunk-U4QCCLAW.js} +2 -2
- package/dist/{chunk-M43PGOQY.js → chunk-X7K5F2UI.js} +474 -474
- package/dist/chunk-X7K5F2UI.js.map +1 -0
- package/dist/community.d.ts +1 -1
- package/dist/community.js +17 -17
- package/dist/{config-QJLI2A5L.js → config-2Y2YGD25.js} +10 -10
- package/dist/db-schema.d.ts +2 -2
- package/dist/db-schema.js +2 -2
- package/dist/db.d.ts +3 -3
- package/dist/db.js +3 -3
- package/dist/{digest-SY42GQSU.js → digest-ZODDTXA2.js} +6 -6
- package/dist/{host-RVFIDFPR.js → host-YSADWU7J.js} +7 -7
- package/dist/i18n.d.ts +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{index-B6-_vr_m.d.ts → index-7_PBSyOq.d.ts} +1 -1
- package/dist/{index-XwP1ET8b.d.ts → index-9IhVtFfA.d.ts} +2 -2
- package/dist/{index-CY55LC0u.d.ts → index-CXuqW_Gl.d.ts} +3 -3
- package/dist/{index-CeiTvwbp.d.ts → index-ClcinJ29.d.ts} +1 -1
- package/dist/index.d.ts +34 -8
- package/dist/index.js +226 -33
- package/dist/index.js.map +1 -1
- package/dist/{job-log-VZXWQUDK.js → job-log-N3IGI4NA.js} +4 -4
- package/dist/jobs.d.ts +2 -2
- package/dist/jobs.js +4 -4
- package/dist/{logger-S7REWDNE.js → logger-2WUTTELV.js} +2 -2
- package/dist/media.d.ts +2 -2
- package/dist/media.js +5 -5
- package/dist/{mentions-2IHFVSHW.js → mentions-NCQR4B72.js} +5 -5
- package/dist/{mutes-EWAE5FZR.js → mutes-FJSSU2JP.js} +5 -5
- package/dist/{notification-prefs-VPJDU7I6.js → notification-prefs-H4HFVCL7.js} +3 -3
- package/dist/observability.js +2 -2
- package/dist/{registry-XIXDEPVI.js → registry-WZVL5HH6.js} +3 -3
- package/dist/reputation-ICIXDGPM.js +11 -0
- package/dist/{scheduled-2AHT3QBN.js → scheduled-F77QCDOG.js} +8 -8
- package/dist/seo.js +7 -7
- package/dist/{settings-FOBIESPB.js → settings-JODDWMDB.js} +3 -3
- package/dist/{strings-VAE47B2C.js → strings-4EWJYDOG.js} +6 -6
- package/dist/{types-TlsbXS0T.d.ts → types-DI3gxsiY.d.ts} +43 -16
- package/package.json +1 -1
- package/dist/chunk-M43PGOQY.js.map +0 -1
- package/dist/reputation-JRL2YQHM.js +0 -11
- /package/dist/{audit-54XLVCWD.js.map → audit-43OLHR3U.js.map} +0 -0
- /package/dist/{can-YLUHRJAB.js.map → can-FKIEV54H.js.map} +0 -0
- /package/dist/{chunk-TFJ4MKPH.js.map → chunk-26RYBFTF.js.map} +0 -0
- /package/dist/{chunk-PPAS4SZR.js.map → chunk-2KNG5KMM.js.map} +0 -0
- /package/dist/{chunk-CYCRYBLX.js.map → chunk-4EPNN4XG.js.map} +0 -0
- /package/dist/{chunk-PPBWRKO2.js.map → chunk-74CGJJDY.js.map} +0 -0
- /package/dist/{chunk-2YDGE7YX.js.map → chunk-B7DTNT4O.js.map} +0 -0
- /package/dist/{chunk-CTSQ7BRI.js.map → chunk-CAS4Z6IN.js.map} +0 -0
- /package/dist/{chunk-BHK3AD3Q.js.map → chunk-CHQJG4BB.js.map} +0 -0
- /package/dist/{chunk-NUCGHWCF.js.map → chunk-CKT4QZDC.js.map} +0 -0
- /package/dist/{chunk-RNR7KISG.js.map → chunk-DPRBHEHI.js.map} +0 -0
- /package/dist/{chunk-473S4TER.js.map → chunk-DWG3RZH2.js.map} +0 -0
- /package/dist/{chunk-QVJ2HCAX.js.map → chunk-ELK6AVW5.js.map} +0 -0
- /package/dist/{chunk-RRYDSZXG.js.map → chunk-EVOBLRHW.js.map} +0 -0
- /package/dist/{chunk-UGQSQO5B.js.map → chunk-HM46WM45.js.map} +0 -0
- /package/dist/{chunk-2M4DQNHX.js.map → chunk-HTDDXBMY.js.map} +0 -0
- /package/dist/{chunk-THX3SHYA.js.map → chunk-L6VG7IK6.js.map} +0 -0
- /package/dist/{chunk-VNIHXQ7W.js.map → chunk-LN6NTH6E.js.map} +0 -0
- /package/dist/{chunk-RIPHIRPP.js.map → chunk-ML2E3P3X.js.map} +0 -0
- /package/dist/{chunk-JJL74ZPK.js.map → chunk-NFHS7CFV.js.map} +0 -0
- /package/dist/{chunk-55FU6WED.js.map → chunk-PQBJWZ7D.js.map} +0 -0
- /package/dist/{chunk-DK2JBJH7.js.map → chunk-QBIJZZ5V.js.map} +0 -0
- /package/dist/{chunk-XX4GLFD6.js.map → chunk-QSJIKNQJ.js.map} +0 -0
- /package/dist/{chunk-OK5HOCQI.js.map → chunk-QYP6E5FP.js.map} +0 -0
- /package/dist/{chunk-2GWRIV3W.js.map → chunk-TD4KNSEP.js.map} +0 -0
- /package/dist/{chunk-S27S42QY.js.map → chunk-TETTWT56.js.map} +0 -0
- /package/dist/{chunk-FZ7O6DWI.js.map → chunk-U4QCCLAW.js.map} +0 -0
- /package/dist/{config-QJLI2A5L.js.map → config-2Y2YGD25.js.map} +0 -0
- /package/dist/{digest-SY42GQSU.js.map → digest-ZODDTXA2.js.map} +0 -0
- /package/dist/{host-RVFIDFPR.js.map → host-YSADWU7J.js.map} +0 -0
- /package/dist/{job-log-VZXWQUDK.js.map → job-log-N3IGI4NA.js.map} +0 -0
- /package/dist/{logger-S7REWDNE.js.map → logger-2WUTTELV.js.map} +0 -0
- /package/dist/{mentions-2IHFVSHW.js.map → mentions-NCQR4B72.js.map} +0 -0
- /package/dist/{mutes-EWAE5FZR.js.map → mutes-FJSSU2JP.js.map} +0 -0
- /package/dist/{notification-prefs-VPJDU7I6.js.map → notification-prefs-H4HFVCL7.js.map} +0 -0
- /package/dist/{registry-XIXDEPVI.js.map → registry-WZVL5HH6.js.map} +0 -0
- /package/dist/{reputation-JRL2YQHM.js.map → reputation-ICIXDGPM.js.map} +0 -0
- /package/dist/{scheduled-2AHT3QBN.js.map → scheduled-F77QCDOG.js.map} +0 -0
- /package/dist/{settings-FOBIESPB.js.map → settings-JODDWMDB.js.map} +0 -0
- /package/dist/{strings-VAE47B2C.js.map → strings-4EWJYDOG.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listAuditEvents,
|
|
3
3
|
recordAuditEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ML2E3P3X.js";
|
|
5
5
|
import "./chunk-SBCVAC2Z.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-NFHS7CFV.js";
|
|
7
7
|
import "./chunk-XANPEOJC.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-X7K5F2UI.js";
|
|
9
9
|
import "./chunk-PZ5AY32C.js";
|
|
10
10
|
export {
|
|
11
11
|
listAuditEvents,
|
|
12
12
|
recordAuditEvent
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=audit-
|
|
14
|
+
//# sourceMappingURL=audit-43OLHR3U.js.map
|
package/dist/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as NpAccessFunction, n as NpUserRole, e as NpAuthUser } from './types-
|
|
2
|
-
export { F as NpPrincipal } from './types-
|
|
1
|
+
import { p as NpAccessFunction, n as NpUserRole, e as NpAuthUser } from './types-DI3gxsiY.js';
|
|
2
|
+
export { F as NpPrincipal } from './types-DI3gxsiY.js';
|
|
3
3
|
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
4
4
|
import { Options } from '@node-rs/argon2';
|
|
5
5
|
|
package/dist/auth.js
CHANGED
|
@@ -37,18 +37,18 @@ import {
|
|
|
37
37
|
verifyPassword,
|
|
38
38
|
verifyToken,
|
|
39
39
|
verifyTokenFull
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-QYP6E5FP.js";
|
|
41
41
|
import {
|
|
42
42
|
can
|
|
43
43
|
} from "./chunk-EQ2Z3KMD.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-SBCVAC2Z.js";
|
|
44
|
+
import "./chunk-ML2E3P3X.js";
|
|
45
|
+
import "./chunk-74CGJJDY.js";
|
|
47
46
|
import "./chunk-ZCINJSS4.js";
|
|
47
|
+
import "./chunk-SBCVAC2Z.js";
|
|
48
48
|
import "./chunk-OROPGO65.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-NFHS7CFV.js";
|
|
50
50
|
import "./chunk-XANPEOJC.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-X7K5F2UI.js";
|
|
52
52
|
import "./chunk-PZ5AY32C.js";
|
|
53
53
|
export {
|
|
54
54
|
ARGON2_OPTIONS,
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
isMemberBanned,
|
|
4
4
|
memberCan,
|
|
5
5
|
withMemberWrite
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-SBCVAC2Z.js";
|
|
6
|
+
} from "./chunk-PQBJWZ7D.js";
|
|
7
|
+
import "./chunk-U4QCCLAW.js";
|
|
9
8
|
import "./chunk-ZCINJSS4.js";
|
|
9
|
+
import "./chunk-SBCVAC2Z.js";
|
|
10
10
|
import "./chunk-XANPEOJC.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-X7K5F2UI.js";
|
|
12
12
|
import "./chunk-PZ5AY32C.js";
|
|
13
13
|
export {
|
|
14
14
|
assertNotBanned,
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
memberCan,
|
|
17
17
|
withMemberWrite
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=can-
|
|
19
|
+
//# sourceMappingURL=can-FKIEV54H.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
schema_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2KNG5KMM.js";
|
|
4
4
|
import {
|
|
5
5
|
readEnvPositiveInt
|
|
6
6
|
} from "./chunk-OROPGO65.js";
|
|
@@ -691,4 +691,4 @@ export {
|
|
|
691
691
|
generateTypeScript,
|
|
692
692
|
generateDocumentsModule
|
|
693
693
|
};
|
|
694
|
-
//# sourceMappingURL=chunk-
|
|
694
|
+
//# sourceMappingURL=chunk-26RYBFTF.js.map
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
npUserRoleEnum,
|
|
39
39
|
npUsers,
|
|
40
40
|
npWorkerHeartbeats
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-X7K5F2UI.js";
|
|
42
42
|
import {
|
|
43
43
|
__export
|
|
44
44
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -173,4 +173,4 @@ export {
|
|
|
173
173
|
npMediaRefsRelations,
|
|
174
174
|
schema_exports
|
|
175
175
|
};
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
176
|
+
//# sourceMappingURL=chunk-2KNG5KMM.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runHook
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HTDDXBMY.js";
|
|
4
4
|
import {
|
|
5
5
|
getAllCollectionSlugs,
|
|
6
6
|
getCollectionConfig,
|
|
7
7
|
getCollectionTable
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U4QCCLAW.js";
|
|
9
9
|
import {
|
|
10
10
|
enqueueJob
|
|
11
11
|
} from "./chunk-V2UNHGAP.js";
|
|
@@ -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-4EPNN4XG.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-XANPEOJC.js";
|
|
7
7
|
import {
|
|
8
8
|
npSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X7K5F2UI.js";
|
|
10
10
|
|
|
11
11
|
// src/community/settings.ts
|
|
12
12
|
import { and, eq } from "drizzle-orm";
|
|
@@ -41,7 +41,7 @@ function readQuota(raw) {
|
|
|
41
41
|
async function getCommunitySettings() {
|
|
42
42
|
const db = getDb();
|
|
43
43
|
const { getCurrentSiteId } = await import("./context-MNZ4QXPC.js");
|
|
44
|
-
const { NP_DEFAULT_SITE_ID } = await import("./registry-
|
|
44
|
+
const { NP_DEFAULT_SITE_ID } = await import("./registry-WZVL5HH6.js");
|
|
45
45
|
const siteId = await getCurrentSiteId() ?? NP_DEFAULT_SITE_ID;
|
|
46
46
|
const [row] = await db.select().from(npSettings).where(and(eq(npSettings.siteId, siteId), eq(npSettings.key, SETTINGS_KEY))).limit(1);
|
|
47
47
|
return mergeWithDefaults(row?.value);
|
|
@@ -168,4 +168,4 @@ export {
|
|
|
168
168
|
validateCommunitySettingsPatch,
|
|
169
169
|
updateCommunitySettings
|
|
170
170
|
};
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
171
|
+
//# sourceMappingURL=chunk-74CGJJDY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getScopedLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NFHS7CFV.js";
|
|
4
4
|
|
|
5
5
|
// src/observability/safety-check.ts
|
|
6
6
|
var MIN_PROD_SECRET_LENGTH = 32;
|
|
@@ -89,4 +89,4 @@ function isLoopbackUrl(url) {
|
|
|
89
89
|
export {
|
|
90
90
|
verifyStartupSafety
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-B7DTNT4O.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-XANPEOJC.js";
|
|
8
8
|
import {
|
|
9
9
|
npMembers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X7K5F2UI.js";
|
|
11
11
|
|
|
12
12
|
// src/community/notification-prefs.ts
|
|
13
13
|
import { eq } from "drizzle-orm";
|
|
@@ -172,4 +172,4 @@ export {
|
|
|
172
172
|
recordDigestSent,
|
|
173
173
|
isNotificationKindEnabled
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=chunk-
|
|
175
|
+
//# sourceMappingURL=chunk-CAS4Z6IN.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStorageAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWG3RZH2.js";
|
|
4
4
|
import {
|
|
5
5
|
getDb
|
|
6
6
|
} from "./chunk-XANPEOJC.js";
|
|
7
7
|
import {
|
|
8
8
|
npMedia
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X7K5F2UI.js";
|
|
10
10
|
|
|
11
11
|
// src/media/url.ts
|
|
12
12
|
import { and, eq, isNull } from "drizzle-orm";
|
|
@@ -38,4 +38,4 @@ async function getMediaUrl(id, options = {}) {
|
|
|
38
38
|
export {
|
|
39
39
|
getMediaUrl
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-CHQJG4BB.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NP_DEFAULT_SITE_ID
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
getCurrentSiteId,
|
|
6
|
-
requireSiteId
|
|
7
|
-
} from "./chunk-SBCVAC2Z.js";
|
|
3
|
+
} from "./chunk-U4QCCLAW.js";
|
|
8
4
|
import {
|
|
9
5
|
NpNotFoundError,
|
|
10
6
|
NpValidationError
|
|
11
7
|
} from "./chunk-ZCINJSS4.js";
|
|
8
|
+
import {
|
|
9
|
+
getCurrentSiteId,
|
|
10
|
+
requireSiteId
|
|
11
|
+
} from "./chunk-SBCVAC2Z.js";
|
|
12
12
|
import {
|
|
13
13
|
getDb
|
|
14
14
|
} from "./chunk-XANPEOJC.js";
|
|
15
15
|
import {
|
|
16
16
|
npMemberMutes,
|
|
17
17
|
npMembers
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X7K5F2UI.js";
|
|
19
19
|
|
|
20
20
|
// src/community/mutes.ts
|
|
21
21
|
import { and, desc, eq } from "drizzle-orm";
|
|
@@ -98,4 +98,4 @@ export {
|
|
|
98
98
|
getMutedTargetIds,
|
|
99
99
|
listMutes
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=chunk-
|
|
101
|
+
//# sourceMappingURL=chunk-CKT4QZDC.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findDocuments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HTDDXBMY.js";
|
|
4
4
|
import {
|
|
5
5
|
getI18nConfig
|
|
6
6
|
} from "./chunk-4ZLMEKFX.js";
|
|
7
7
|
import {
|
|
8
8
|
getAllCollectionSlugs,
|
|
9
9
|
getCollectionConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U4QCCLAW.js";
|
|
11
11
|
import {
|
|
12
12
|
getDb
|
|
13
13
|
} from "./chunk-XANPEOJC.js";
|
|
14
14
|
import {
|
|
15
15
|
npSettings
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-X7K5F2UI.js";
|
|
17
17
|
|
|
18
18
|
// src/seo/sitemap.ts
|
|
19
19
|
var DEFAULT_LIMIT_PER_COLLECTION = 5e3;
|
|
@@ -594,4 +594,4 @@ export {
|
|
|
594
594
|
buildDiscussionForumPostingJsonLd,
|
|
595
595
|
buildPersonJsonLd
|
|
596
596
|
};
|
|
597
|
-
//# sourceMappingURL=chunk-
|
|
597
|
+
//# sourceMappingURL=chunk-DPRBHEHI.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OROPGO65.js";
|
|
7
7
|
import {
|
|
8
8
|
getLogger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NFHS7CFV.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb
|
|
12
12
|
} from "./chunk-XANPEOJC.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
npMediaRefs,
|
|
16
16
|
npMembers,
|
|
17
17
|
npUsers
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X7K5F2UI.js";
|
|
19
19
|
|
|
20
20
|
// src/media/processor.ts
|
|
21
21
|
import sharp from "sharp";
|
|
@@ -170,7 +170,7 @@ async function uploadMedia(file, uploader, folderId) {
|
|
|
170
170
|
return { id, status: "processing" };
|
|
171
171
|
}
|
|
172
172
|
async function assertMemberUploadQuota(memberId, txDb) {
|
|
173
|
-
const { getCommunitySettings } = await import("./settings-
|
|
173
|
+
const { getCommunitySettings } = await import("./settings-JODDWMDB.js");
|
|
174
174
|
const { NpRateLimitError } = await import("./errors-5OS3S2J3.js");
|
|
175
175
|
const settings = await getCommunitySettings();
|
|
176
176
|
const { perDay, total } = settings.memberUploadQuota;
|
|
@@ -535,4 +535,4 @@ export {
|
|
|
535
535
|
listMedia,
|
|
536
536
|
cleanupDeletedMedia
|
|
537
537
|
};
|
|
538
|
-
//# sourceMappingURL=chunk-
|
|
538
|
+
//# sourceMappingURL=chunk-DWG3RZH2.js.map
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-4ZLMEKFX.js";
|
|
4
4
|
import {
|
|
5
5
|
NP_DEFAULT_SITE_ID
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U4QCCLAW.js";
|
|
7
7
|
import {
|
|
8
8
|
getCurrentSiteId
|
|
9
9
|
} from "./chunk-SBCVAC2Z.js";
|
|
10
10
|
import {
|
|
11
11
|
getLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NFHS7CFV.js";
|
|
13
13
|
import {
|
|
14
14
|
getDb
|
|
15
15
|
} from "./chunk-XANPEOJC.js";
|
|
16
16
|
import {
|
|
17
17
|
npStringOverrides
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X7K5F2UI.js";
|
|
19
19
|
|
|
20
20
|
// src/i18n/strings.ts
|
|
21
21
|
import IntlMessageFormat from "intl-messageformat";
|
|
@@ -222,4 +222,4 @@ export {
|
|
|
222
222
|
tSync,
|
|
223
223
|
resetTranslationCache
|
|
224
224
|
};
|
|
225
|
-
//# sourceMappingURL=chunk-
|
|
225
|
+
//# sourceMappingURL=chunk-ELK6AVW5.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPluginRegistration
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
getCurrentSiteId
|
|
6
|
-
} from "./chunk-SBCVAC2Z.js";
|
|
3
|
+
} from "./chunk-HTDDXBMY.js";
|
|
7
4
|
import {
|
|
8
5
|
NpValidationError
|
|
9
6
|
} from "./chunk-ZCINJSS4.js";
|
|
7
|
+
import {
|
|
8
|
+
getCurrentSiteId
|
|
9
|
+
} from "./chunk-SBCVAC2Z.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb
|
|
12
12
|
} from "./chunk-XANPEOJC.js";
|
|
13
13
|
import {
|
|
14
14
|
npSettings
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X7K5F2UI.js";
|
|
16
16
|
|
|
17
17
|
// src/plugins/config.ts
|
|
18
18
|
import { and, eq } from "drizzle-orm";
|
|
@@ -319,4 +319,4 @@ export {
|
|
|
319
319
|
setPluginConfig,
|
|
320
320
|
pluginConfigCacheTag
|
|
321
321
|
};
|
|
322
|
-
//# sourceMappingURL=chunk-
|
|
322
|
+
//# sourceMappingURL=chunk-EVOBLRHW.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NP_DEFAULT_SITE_ID
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
getCurrentSiteId,
|
|
6
|
-
requireSiteId
|
|
7
|
-
} from "./chunk-SBCVAC2Z.js";
|
|
3
|
+
} from "./chunk-U4QCCLAW.js";
|
|
8
4
|
import {
|
|
9
5
|
NpForbiddenError,
|
|
10
6
|
NpValidationError
|
|
11
7
|
} from "./chunk-ZCINJSS4.js";
|
|
8
|
+
import {
|
|
9
|
+
getCurrentSiteId,
|
|
10
|
+
requireSiteId
|
|
11
|
+
} from "./chunk-SBCVAC2Z.js";
|
|
12
12
|
import {
|
|
13
13
|
getDb
|
|
14
14
|
} from "./chunk-XANPEOJC.js";
|
|
15
15
|
import {
|
|
16
16
|
npMembers,
|
|
17
17
|
npNotifications
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-X7K5F2UI.js";
|
|
19
19
|
|
|
20
20
|
// src/community/mentions.ts
|
|
21
21
|
import { inArray as inArray2 } from "drizzle-orm";
|
|
@@ -24,7 +24,7 @@ import { inArray as inArray2 } from "drizzle-orm";
|
|
|
24
24
|
import { and, count, desc, eq, isNull, inArray } from "drizzle-orm";
|
|
25
25
|
async function createNotification(input) {
|
|
26
26
|
if (input.actorMemberId && input.actorMemberId !== input.memberId) {
|
|
27
|
-
const { isMuted } = await import("./mutes-
|
|
27
|
+
const { isMuted } = await import("./mutes-FJSSU2JP.js");
|
|
28
28
|
const muted = await isMuted({
|
|
29
29
|
memberId: input.memberId,
|
|
30
30
|
targetId: input.actorMemberId
|
|
@@ -32,7 +32,7 @@ async function createNotification(input) {
|
|
|
32
32
|
if (muted) return null;
|
|
33
33
|
}
|
|
34
34
|
{
|
|
35
|
-
const { isNotificationKindEnabled } = await import("./notification-prefs-
|
|
35
|
+
const { isNotificationKindEnabled } = await import("./notification-prefs-H4HFVCL7.js");
|
|
36
36
|
const enabled = await isNotificationKindEnabled(input.memberId, input.kind);
|
|
37
37
|
if (!enabled) return null;
|
|
38
38
|
}
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
resolveMentionedMembers,
|
|
220
220
|
fanOutMentionNotifications
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-HM46WM45.js.map
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
getCollectionConfig,
|
|
7
7
|
getCollectionRegistration,
|
|
8
8
|
getCollectionTable
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
getCurrentSiteId
|
|
12
|
-
} from "./chunk-SBCVAC2Z.js";
|
|
9
|
+
} from "./chunk-U4QCCLAW.js";
|
|
13
10
|
import {
|
|
14
11
|
NpError,
|
|
15
12
|
NpForbiddenError,
|
|
16
13
|
NpNotFoundError,
|
|
17
14
|
NpValidationError
|
|
18
15
|
} from "./chunk-ZCINJSS4.js";
|
|
16
|
+
import {
|
|
17
|
+
getCurrentSiteId
|
|
18
|
+
} from "./chunk-SBCVAC2Z.js";
|
|
19
19
|
import {
|
|
20
20
|
reportError
|
|
21
21
|
} from "./chunk-WV272MPW.js";
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
getStorageAdapter,
|
|
26
26
|
listMedia,
|
|
27
27
|
uploadMedia
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DWG3RZH2.js";
|
|
29
29
|
import {
|
|
30
30
|
enqueueJob
|
|
31
31
|
} from "./chunk-V2UNHGAP.js";
|
|
32
32
|
import {
|
|
33
33
|
getLogger,
|
|
34
34
|
getScopedLogger
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NFHS7CFV.js";
|
|
36
36
|
import {
|
|
37
37
|
getDb
|
|
38
38
|
} from "./chunk-XANPEOJC.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
npRevisions,
|
|
48
48
|
npSettings,
|
|
49
49
|
npSlugHistory
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-X7K5F2UI.js";
|
|
51
51
|
|
|
52
52
|
// src/plugins/context.ts
|
|
53
53
|
import { and, eq as eq2, gt, isNull, like, or } from "drizzle-orm";
|
|
@@ -284,7 +284,7 @@ async function runPostCommit(label, context, fn) {
|
|
|
284
284
|
try {
|
|
285
285
|
await fn();
|
|
286
286
|
} catch (err) {
|
|
287
|
-
const { getLogger: getLogger2 } = await import("./logger-
|
|
287
|
+
const { getLogger: getLogger2 } = await import("./logger-2WUTTELV.js");
|
|
288
288
|
getLogger2().error(
|
|
289
289
|
`post-commit ${label} failed \u2014 document persisted, follow-up skipped`,
|
|
290
290
|
{
|
|
@@ -318,7 +318,7 @@ async function updateMemberDocument(collection, docId, data, memberId, options)
|
|
|
318
318
|
if (authorId !== memberId) {
|
|
319
319
|
throw new NpForbiddenError(collection, "update");
|
|
320
320
|
}
|
|
321
|
-
const { assertNotBanned } = await import("./can-
|
|
321
|
+
const { assertNotBanned } = await import("./can-FKIEV54H.js");
|
|
322
322
|
await assertNotBanned(memberId);
|
|
323
323
|
const moderation = await runMemberDocModeration({
|
|
324
324
|
collection,
|
|
@@ -336,7 +336,7 @@ async function updateMemberDocument(collection, docId, data, memberId, options)
|
|
|
336
336
|
{ kind: "member", memberId },
|
|
337
337
|
memberOptions
|
|
338
338
|
);
|
|
339
|
-
const { recordAuditEvent } = await import("./audit-
|
|
339
|
+
const { recordAuditEvent } = await import("./audit-43OLHR3U.js");
|
|
340
340
|
await recordAuditEvent({
|
|
341
341
|
actor: { kind: "member", memberId },
|
|
342
342
|
action: moderation.flaggedBy.length > 0 ? "document.flag" : "document.update",
|
|
@@ -352,7 +352,7 @@ async function updateMemberDocument(collection, docId, data, memberId, options)
|
|
|
352
352
|
});
|
|
353
353
|
const resultStatus = result.doc.status;
|
|
354
354
|
if (resultStatus === "published") {
|
|
355
|
-
const { extractMentionHandlesFromDocData, fanOutMentionNotifications } = await import("./mentions-
|
|
355
|
+
const { extractMentionHandlesFromDocData, fanOutMentionNotifications } = await import("./mentions-NCQR4B72.js");
|
|
356
356
|
const previousHandles = new Set(extractMentionHandlesFromDocData(originalDoc));
|
|
357
357
|
await fanOutMentionNotifications({
|
|
358
358
|
actorMemberId: memberId,
|
|
@@ -372,7 +372,7 @@ async function createMemberDocument(collection, data, memberId, options) {
|
|
|
372
372
|
if (!config.community?.memberWrite?.create) {
|
|
373
373
|
throw new NpForbiddenError(collection, "create");
|
|
374
374
|
}
|
|
375
|
-
const { assertNotBanned } = await import("./can-
|
|
375
|
+
const { assertNotBanned } = await import("./can-FKIEV54H.js");
|
|
376
376
|
await assertNotBanned(memberId);
|
|
377
377
|
const defaultStatus = config.community?.memberWrite?.defaultStatus === "pending" ? "pending" : "published";
|
|
378
378
|
const moderation = await runMemberDocModeration({
|
|
@@ -391,8 +391,8 @@ async function createMemberDocument(collection, data, memberId, options) {
|
|
|
391
391
|
{ kind: "member", memberId },
|
|
392
392
|
memberOptions
|
|
393
393
|
);
|
|
394
|
-
const { applyReputation } = await import("./reputation-
|
|
395
|
-
const { recordAuditEvent } = await import("./audit-
|
|
394
|
+
const { applyReputation } = await import("./reputation-ICIXDGPM.js");
|
|
395
|
+
const { recordAuditEvent } = await import("./audit-43OLHR3U.js");
|
|
396
396
|
const documentId = getRecordId(result.doc);
|
|
397
397
|
await recordAuditEvent({
|
|
398
398
|
actor: { kind: "member", memberId },
|
|
@@ -416,7 +416,7 @@ async function createMemberDocument(collection, data, memberId, options) {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
if (spamStatus === "published") {
|
|
419
|
-
const { fanOutMentionNotifications } = await import("./mentions-
|
|
419
|
+
const { fanOutMentionNotifications } = await import("./mentions-NCQR4B72.js");
|
|
420
420
|
await fanOutMentionNotifications({
|
|
421
421
|
actorMemberId: memberId,
|
|
422
422
|
kind: "document.mention",
|
|
@@ -434,7 +434,7 @@ async function runMemberDocModeration(input) {
|
|
|
434
434
|
const config = getCollectionConfig(collection);
|
|
435
435
|
const { getSpamAdapter } = await import("./spam-adapter-XX3G737Z.js");
|
|
436
436
|
const { getProfanityAdapter } = await import("./profanity-adapter-NU2JQSLX.js");
|
|
437
|
-
const { getLogger: getLogger2 } = await import("./logger-
|
|
437
|
+
const { getLogger: getLogger2 } = await import("./logger-2WUTTELV.js");
|
|
438
438
|
const moderationText = buildSearchVector(config, data);
|
|
439
439
|
const ctx = {
|
|
440
440
|
memberId,
|
|
@@ -533,7 +533,7 @@ async function validateActorAccess(ctx) {
|
|
|
533
533
|
);
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
|
-
const { assertNotBanned } = await import("./can-
|
|
536
|
+
const { assertNotBanned } = await import("./can-FKIEV54H.js");
|
|
537
537
|
if (ctx.operation === "create") {
|
|
538
538
|
if (!ctx.config.community?.memberWrite?.create) {
|
|
539
539
|
throw new NpForbiddenError(ctx.collection, "create");
|
|
@@ -872,8 +872,8 @@ async function deleteMemberDocument(collection, docId, memberId) {
|
|
|
872
872
|
const original = await getDocumentByIdInternal(db, table, collection, docId);
|
|
873
873
|
const wasPublished = typeof original?.status === "string" && original.status === "published";
|
|
874
874
|
await deleteDocumentImpl(collection, docId, { kind: "member", memberId });
|
|
875
|
-
const { applyReputation } = await import("./reputation-
|
|
876
|
-
const { recordAuditEvent } = await import("./audit-
|
|
875
|
+
const { applyReputation } = await import("./reputation-ICIXDGPM.js");
|
|
876
|
+
const { recordAuditEvent } = await import("./audit-43OLHR3U.js");
|
|
877
877
|
await recordAuditEvent({
|
|
878
878
|
actor: { kind: "member", memberId },
|
|
879
879
|
action: "document.delete",
|
|
@@ -936,8 +936,8 @@ async function promoteMemberDocument(collection, docId, staffUserId) {
|
|
|
936
936
|
]);
|
|
937
937
|
}
|
|
938
938
|
const persistedDoc = toRecord(updated[0]);
|
|
939
|
-
const { applyReputation } = await import("./reputation-
|
|
940
|
-
const { recordAuditEvent } = await import("./audit-
|
|
939
|
+
const { applyReputation } = await import("./reputation-ICIXDGPM.js");
|
|
940
|
+
const { recordAuditEvent } = await import("./audit-43OLHR3U.js");
|
|
941
941
|
await recordAuditEvent({
|
|
942
942
|
actor: { kind: "staff", userId: staffUserId },
|
|
943
943
|
action: "document.promote",
|
|
@@ -981,7 +981,7 @@ async function deleteDocumentImpl(collection, docId, actor) {
|
|
|
981
981
|
if (authorId !== actor.memberId) {
|
|
982
982
|
throw new NpForbiddenError(collection, "delete");
|
|
983
983
|
}
|
|
984
|
-
const { assertNotBanned } = await import("./can-
|
|
984
|
+
const { assertNotBanned } = await import("./can-FKIEV54H.js");
|
|
985
985
|
await assertNotBanned(actor.memberId);
|
|
986
986
|
}
|
|
987
987
|
const userForHooks = actorUserOrNull(actor);
|
|
@@ -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-2Y2YGD25.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-2Y2YGD25.js");
|
|
1897
|
+
const { getPluginRegistration: getPluginRegistration2 } = await import("./host-YSADWU7J.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.
|
|
2128
|
+
var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.3.0" : "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-2Y2YGD25.js");
|
|
2279
2279
|
const value = await getPluginConfig(pluginId);
|
|
2280
2280
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
2281
2281
|
return value;
|
|
@@ -2451,7 +2451,7 @@ async function loadResolvedPlugin(plugin) {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
const i18nBundles = plugin.i18n;
|
|
2453
2453
|
if (i18nBundles && typeof i18nBundles === "object") {
|
|
2454
|
-
const { addStrings } = await import("./strings-
|
|
2454
|
+
const { addStrings } = await import("./strings-4EWJYDOG.js");
|
|
2455
2455
|
for (const [locale, bundle] of Object.entries(i18nBundles)) {
|
|
2456
2456
|
if (bundle && typeof bundle === "object") {
|
|
2457
2457
|
addStrings(locale, bundle);
|
|
@@ -2787,4 +2787,4 @@ export {
|
|
|
2787
2787
|
findDocuments,
|
|
2788
2788
|
getDocumentById
|
|
2789
2789
|
};
|
|
2790
|
-
//# sourceMappingURL=chunk-
|
|
2790
|
+
//# sourceMappingURL=chunk-HTDDXBMY.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NFHS7CFV.js";
|
|
4
4
|
import {
|
|
5
5
|
getDb
|
|
6
6
|
} from "./chunk-XANPEOJC.js";
|
|
7
7
|
import {
|
|
8
8
|
npMembers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X7K5F2UI.js";
|
|
10
10
|
|
|
11
11
|
// src/community/reputation.ts
|
|
12
12
|
import { eq, sql } from "drizzle-orm";
|
|
@@ -72,4 +72,4 @@ export {
|
|
|
72
72
|
resetReputationAdapter,
|
|
73
73
|
applyReputation
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-L6VG7IK6.js.map
|