dineway 0.2.36 → 0.2.38
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/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +5 -5
- package/dist/api/schemas/index.d.mts +1 -1
- package/dist/{api-BotAYpCU.mjs → api-qTefA3vh.mjs} +4 -4
- package/dist/{apply-BTfAReIv.mjs → apply-CC0OQb8V.mjs} +9 -9
- package/dist/astro/index.d.mts +2 -2
- package/dist/astro/index.mjs +3 -3
- package/dist/astro/middleware/auth.d.mts +2 -2
- package/dist/astro/middleware/auth.mjs +2 -2
- package/dist/astro/middleware/request-context.d.mts +1 -1
- package/dist/astro/middleware/request-context.mjs +9 -8
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.mjs +42 -42
- package/dist/astro/routes/api/admin/briefing.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +4 -4
- package/dist/astro/routes/api/admin/bylines/index.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +4 -4
- package/dist/astro/routes/api/admin/comments/_id_.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/bulk.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/counts.mjs +3 -3
- package/dist/astro/routes/api/admin/comments/index.mjs +3 -3
- package/dist/astro/routes/api/admin/context/_id_/history.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/index.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/review.mjs +11 -11
- package/dist/astro/routes/api/admin/context/_id_/supersede.mjs +11 -11
- package/dist/astro/routes/api/admin/context/diff.mjs +11 -11
- package/dist/astro/routes/api/admin/context/index.mjs +11 -11
- package/dist/astro/routes/api/admin/context/stale.mjs +11 -11
- package/dist/astro/routes/api/admin/hitl-requests/_id_/index.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/_id_/resolve.mjs +12 -12
- package/dist/astro/routes/api/admin/hitl-requests/index.mjs +12 -12
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +11 -11
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +23 -23
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +20 -20
- package/dist/astro/routes/api/admin/plugins/updates.mjs +20 -20
- package/dist/astro/routes/api/admin/review-requests/_id_/image.mjs +4 -4
- package/dist/astro/routes/api/admin/review-requests/_id_/index.mjs +10 -10
- package/dist/astro/routes/api/admin/review-requests/_id_/resolve.mjs +15 -15
- package/dist/astro/routes/api/admin/review-requests/index.mjs +13 -13
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +20 -20
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +20 -20
- package/dist/astro/routes/api/auth/invite/complete.mjs +2 -2
- package/dist/astro/routes/api/auth/invite/register-options.mjs +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/verify.mjs +2 -2
- package/dist/astro/routes/api/auth/signup/complete.mjs +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.d.mts +2 -2
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +4 -4
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +3 -3
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +7 -7
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +4 -4
- package/dist/astro/routes/api/dashboard.mjs +3 -3
- package/dist/astro/routes/api/health.mjs +1 -1
- package/dist/astro/routes/api/import/probe.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/execute.mjs +14 -14
- package/dist/astro/routes/api/import/wordpress/media.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +11 -11
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +2 -2
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +15 -15
- package/dist/astro/routes/api/manifest.mjs +2 -2
- package/dist/astro/routes/api/mcp.mjs +39 -39
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/items.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_/translations.mjs +12 -12
- package/dist/astro/routes/api/menus/_name_.mjs +12 -12
- package/dist/astro/routes/api/menus/index.mjs +12 -12
- package/dist/astro/routes/api/openapi.json.mjs +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +11 -11
- package/dist/astro/routes/api/redirects/index.mjs +11 -11
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +20 -20
- package/dist/astro/routes/api/schema/collections/index.mjs +20 -20
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +20 -20
- package/dist/astro/routes/api/schema/orphans/index.mjs +20 -20
- package/dist/astro/routes/api/sections/_slug_.mjs +11 -11
- package/dist/astro/routes/api/sections/index.mjs +11 -11
- package/dist/astro/routes/api/settings/reviews.mjs +1 -1
- package/dist/astro/routes/api/settings.mjs +12 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs +3 -3
- package/dist/astro/routes/api/setup/admin.mjs +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +6 -6
- package/dist/astro/routes/api/setup/index.mjs +7 -7
- package/dist/astro/routes/api/setup/status.mjs +1 -1
- package/dist/astro/routes/api/snapshot.mjs +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +14 -14
- package/dist/astro/routes/api/taxonomies/index.mjs +14 -14
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/_name_.mjs +11 -11
- package/dist/astro/routes/api/widget-areas/index.mjs +11 -11
- package/dist/astro/routes/robots.txt.mjs +2 -2
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +2 -2
- package/dist/astro/routes/sitemap.xml.mjs +2 -2
- package/dist/astro/types.d.mts +2 -2
- package/dist/{briefing-5zf0YZbR.mjs → briefing-BiBHuHqK.mjs} +1 -1
- package/dist/{briefing-DiupPvyN.mjs → briefing-DQYj9x6H.mjs} +1 -1
- package/dist/{byline-DEZKlzD9.mjs → byline-BCPYEtzy.mjs} +1 -1
- package/dist/{byline-fields-sT8qm0iY.d.mts → byline-fields-S7igJ-zQ.d.mts} +32 -32
- package/dist/{bylines-gSAfpHl4.mjs → bylines-BkRyEw1m.mjs} +1 -1
- package/dist/{bylines-CXyKpVLQ.mjs → bylines-Do1KuJkk.mjs} +2 -2
- package/dist/cli/index.mjs +10 -10
- package/dist/cli/plugin-kit.d.mts +2 -2
- package/dist/client/index.d.mts +2 -2
- package/dist/{comment-kgLTdtQD.mjs → comment-DX7gSK1w.mjs} +1 -1
- package/dist/{comments-ZYK_cZvx.mjs → comments-CFswogn0.mjs} +1 -1
- package/dist/{content-D9xKUSno.mjs → content-Bf6Z1KsW.mjs} +8 -7
- package/dist/{context-C5lPtfeh.mjs → context-4B6AEEJg.mjs} +3 -3
- package/dist/{context-BU8AbLmY.mjs → context-BrRrM0lb.mjs} +2 -2
- package/dist/{dashboard-BnD5krLg.mjs → dashboard-DHv8q_NK.mjs} +1 -1
- package/dist/database/batch.mjs +3 -1
- package/dist/database/d1/index.d.mts +2 -2
- package/dist/database/d1/index.mjs +2 -2
- package/dist/{evidence-krrA3uiG.mjs → evidence-CoLCtvqq.mjs} +1 -1
- package/dist/{hitl-requests-CGjA1jND.mjs → hitl-requests-B4am5rjr.mjs} +1 -1
- package/dist/{hitl-route-helpers-BxSL0iZB.mjs → hitl-route-helpers-CwIBl1Rq.mjs} +1 -1
- package/dist/{import-CayDCPaH.mjs → import-Bg-IiofM.mjs} +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +31 -31
- package/dist/{jsonld-DzI2Ma14.d.mts → jsonld-B2e_FWju.d.mts} +1 -1
- package/dist/{mcp-reviewed-executor-RJ71uyQb.mjs → mcp-reviewed-executor-B_65l7Hq.mjs} +3 -3
- package/dist/media/local-runtime.d.mts +2 -2
- package/dist/{menus-5liJusbp.mjs → menus-BJvvB0n9.mjs} +1 -1
- package/dist/{menus-2o-DVcwA.mjs → menus-DNcY6Do7.mjs} +2 -2
- package/dist/{object-cache-BGjIlY9s.mjs → object-cache-DYGlsI-R.mjs} +7 -1
- package/dist/page/index.d.mts +3 -3
- package/dist/plugin-utils.d.mts +2 -2
- package/dist/plugins/adapt-sandbox-entry.d.mts +2 -2
- package/dist/{plugins-f48yrwfI.mjs → plugins-CE6y1ImU.mjs} +1 -1
- package/dist/{public-url-4jAdQgr3.d.mts → public-url-Dj1vD21t.d.mts} +1 -1
- package/dist/{publication-authorization-Dq_20SZR.mjs → publication-authorization-DEf-rGSM.mjs} +4 -4
- package/dist/{query-D6oNo9iz.mjs → query-COquV-XH.mjs} +5 -5
- package/dist/{query-BkWWdxyb.mjs → query-DnK6LJdA.mjs} +1 -1
- package/dist/{release-CZfAeyXm.mjs → release-DFBXSMnD.mjs} +1 -1
- package/dist/request-context.d.mts +9 -1
- package/dist/request-context.mjs +11 -1
- package/dist/{review-payload-LLIi1sxO.mjs → review-payload-CzN5RQL4.mjs} +4 -4
- package/dist/{review-requests-C7prIbCo.mjs → review-requests-CQX7T3MV.mjs} +1 -1
- package/dist/runtime.d.mts +2 -2
- package/dist/seed/index.mjs +6 -6
- package/dist/{seo-DYpc_rQ1.mjs → seo-B3cQl1r2.mjs} +1 -1
- package/dist/{service-DOFqfUVv.mjs → service-CMR5_eSN.mjs} +2 -2
- package/dist/{settings-2p7TuNWG.mjs → settings-DiAKrrP4.mjs} +1 -1
- package/dist/{settings-DRFy8JQx.mjs → settings-dNtUakSt.mjs} +1 -1
- package/dist/{site-context-D9oETfxF.mjs → site-context-BBmRiuZl.mjs} +5 -5
- package/dist/{submission-BLvkvewK.mjs → submission-eaVl2STP.mjs} +4 -4
- package/dist/{taxonomies-DW6Fps-w.mjs → taxonomies-Cz2F2QAm.mjs} +2 -2
- package/dist/{taxonomies-C5ayPp3T.mjs → taxonomies-H63wRvul.mjs} +2 -2
- package/dist/{taxonomy-DWxxLpp5.mjs → taxonomy-CAd9SL-L.mjs} +1 -1
- package/dist/{types-jefx_scD.d.mts → types-5xfwCI4m.d.mts} +4 -4
- package/dist/ui/server-runtime.d.mts +4 -4
- package/dist/ui/server-runtime.mjs +7 -7
- package/dist/version-9AyJ5JWH.mjs +6 -0
- package/dist/{worker-wjRq4FI9.mjs → worker-hQbWAsIT.mjs} +5 -5
- package/package.json +1 -1
- package/dist/version-fsTzG0GS.mjs +0 -6
- /package/dist/{allowed-origins-Cp7BI3L9.mjs → allowed-origins-B2Jh2tzw.mjs} +0 -0
- /package/dist/{challenge-store-DFGsDtCj.mjs → challenge-store-D-_-VavY.mjs} +0 -0
- /package/dist/{mode-BJwb_MgK.mjs → mode-CPf_KZ37.mjs} +0 -0
- /package/dist/{policy-CrK1vl8l.mjs → policy-Dej7NJFD.mjs} +0 -0
- /package/dist/{session-user-DacoiKrJ.mjs → session-user-DeqTcAmR.mjs} +0 -0
- /package/dist/{setup-complete-CWMnrNFN.mjs → setup-complete-CNhQl2Cu.mjs} +0 -0
- /package/dist/{state-D8AogXCV.mjs → state-jyNZ6-7L.mjs} +0 -0
- /package/dist/{workers-build-QVrquLLe.mjs → workers-build-BaQCrSmf.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Bt as StorageCollectionConfig, _c as apiSuccess, dc as OptionsRepository, fc as ParseResult, gc as apiError, hc as parseQuery, mc as parseBody, pc as isParseError, vc as handleError, zt as StorageCollection } from "../types-
|
|
1
|
+
import { Bt as StorageCollectionConfig, _c as apiSuccess, dc as OptionsRepository, fc as ParseResult, gc as apiError, hc as parseQuery, mc as parseBody, pc as isParseError, vc as handleError, zt as StorageCollection } from "../types-5xfwCI4m.mjs";
|
|
2
2
|
import { t as Database } from "../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../types-SddyDti7.mjs";
|
|
6
6
|
import "../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../byline-fields-
|
|
8
|
+
import "../byline-fields-S7igJ-zQ.mjs";
|
|
9
9
|
import "../types-CAD4OvmF.mjs";
|
|
10
|
-
import { t as getPublicOrigin } from "../public-url-
|
|
10
|
+
import { t as getPublicOrigin } from "../public-url-Dj1vD21t.mjs";
|
|
11
11
|
import { Kysely } from "kysely";
|
|
12
12
|
|
|
13
13
|
//#region src/api/auth-storage.d.ts
|
package/dist/api/route-utils.mjs
CHANGED
|
@@ -5,22 +5,22 @@ import "../types-BqxIv8Il.mjs";
|
|
|
5
5
|
import "../actor-DxUAJgQX.mjs";
|
|
6
6
|
import "../atomic-authority-CnBQJ14T.mjs";
|
|
7
7
|
import "../after-BVaUn7bK.mjs";
|
|
8
|
-
import "../object-cache-
|
|
8
|
+
import "../object-cache-DYGlsI-R.mjs";
|
|
9
9
|
import "../revision-090sZyGc.mjs";
|
|
10
|
-
import "../content-
|
|
10
|
+
import "../content-Bf6Z1KsW.mjs";
|
|
11
11
|
import "../media-BZqwtRTZ.mjs";
|
|
12
12
|
import "../user-1-YV30lf.mjs";
|
|
13
13
|
import { t as OptionsRepository } from "../options-BcqHWpc-.mjs";
|
|
14
|
-
import { r as createStorageAccess } from "../context-
|
|
14
|
+
import { r as createStorageAccess } from "../context-4B6AEEJg.mjs";
|
|
15
15
|
import "../enrich-BjF-J4sF.mjs";
|
|
16
|
-
import "../seo-
|
|
16
|
+
import "../seo-B3cQl1r2.mjs";
|
|
17
17
|
import "../content-refresh-9M9cc55-.mjs";
|
|
18
18
|
import "../ssrf-COxLChKv.mjs";
|
|
19
19
|
import { n as apiSuccess, r as handleError, t as apiError } from "../error-B-44r5TD.mjs";
|
|
20
20
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../parse-BscLr3p2.mjs";
|
|
21
21
|
import "../cron-BVYo08mi.mjs";
|
|
22
22
|
import { n as getPublicOrigin } from "../public-url-4sMO36Gw.mjs";
|
|
23
|
-
import { t as finalizeSetup } from "../setup-complete-
|
|
23
|
+
import { t as finalizeSetup } from "../setup-complete-CNhQl2Cu.mjs";
|
|
24
24
|
|
|
25
25
|
//#region src/api/auth-storage.ts
|
|
26
26
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as settingsUpdateBody, $n as contentResponseSchema, $t as adminCommentListResponseSchema, A as widgetAreaSchema, An as mediaConfirmResponseSchema, At as inviteCompleteBody, B as usersListQuery, Bn as contentAuthorSchema, Bt as signupRequestBody, C as redirectSchema, Cn as orphanedTableSchema, Ct as menuSchema, D as createWidgetBody, Dn as DEFAULT_MAX_UPLOAD_SIZE, Dt as updateMenuBody, E as createWidgetAreaBody, En as updateFieldBody, Et as reorderMenuItemsBody, F as allowedDomainUpdateBody, Fn as mediaProviderListQuery, Ft as passkeyRegisterOptionsBody, G as wpPrepareBody, Gn as contentListQuery, Gt as hitlRequestResolveBody, H as wpMediaImportBody, Hn as contentCompareResponseSchema, Ht as reviewRequestListQuery, I as userDetailSchema, In as mediaResponseSchema, It as passkeyRegisterVerifyBody, J as searchQuery, Jn as contentPublicationReceiptSchema, Jt as contextEntryDiffQuery, K as wpRewriteUrlsBody, Kn as contentListResponseSchema, Kt as siteBriefingQuery, L as userListResponseSchema, Ln as mediaUpdateBody, Lt as passkeyRenameBody, M as widgetAreaWithWidgetsSchema, Mn as mediaItemSchema, Mt as inviteRegisterOptionsBody, N as widgetSchema, Nn as mediaListQuery, Nt as magicLinkSendBody, O as reorderWidgetsBody, On as formatFileSize, Ot as updateMenuItemBody, P as allowedDomainCreateBody, Pn as mediaListResponseSchema, Pt as passkeyOptionsBody, Q as searchSuggestQuery, Qn as contentReleaseReadinessResponseSchema, Qt as contextEntrySupersedeBody, R as userSchema, Rn as mediaUploadUrlBody, Rt as passkeyVerifyBody, S as redirectListResponseSchema, Sn as orphanedTableListResponseSchema, St as menuListItemSchema, T as updateRedirectBody, Tn as updateCollectionBody, Tt as menuWithItemsSchema, U as wpPluginAnalyzeBody, Un as contentCreateBody, Ut as reviewRequestResolveBody, V as importProbeBody, Vn as contentAuthorsResponseSchema, Vt as reviewRequestCreateBody, W as wpPluginExecuteBody, Wn as contentItemSchema, Wt as hitlRequestListQuery, X as searchResponseSchema, Xn as contentPublishResponseSchema, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentPublishBody, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentReleaseReadinessQuery, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as localeFilterQuery, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as contentTranslationsResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, br as slugPattern, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as trashedContentItemSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as apiErrorSchema, dt as termGetResponseSchema, en as commentBulkBody, er as contentScheduleBody, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as countResponseSchema, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as localeCode, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as httpUrl, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as contentTranslationSchema, it as sectionsListQuery, j as widgetAreaWithWidgetsAndCountSchema, jn as mediaExistingResponseSchema, jt as inviteCreateBody, k as updateWidgetBody, kn as mediaConfirmBody, kt as authMeActionBody, l as bylineListResponseSchema, ln as publicCommentSchema, lr as trashedContentListResponseSchema, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as deleteResponseSchema, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentSeoSchema, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as contentTrashQuery, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as cursorPaginationQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentTermsBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as contentUpdateBody, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentSeoInput, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as VALID_ROLE_LEVELS, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vr as offsetPaginationQuery, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xr as successEnvelope, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yr as roleLevel, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-
|
|
1
|
+
import { $ as settingsUpdateBody, $n as contentResponseSchema, $t as adminCommentListResponseSchema, A as widgetAreaSchema, An as mediaConfirmResponseSchema, At as inviteCompleteBody, B as usersListQuery, Bn as contentAuthorSchema, Bt as signupRequestBody, C as redirectSchema, Cn as orphanedTableSchema, Ct as menuSchema, D as createWidgetBody, Dn as DEFAULT_MAX_UPLOAD_SIZE, Dt as updateMenuBody, E as createWidgetAreaBody, En as updateFieldBody, Et as reorderMenuItemsBody, F as allowedDomainUpdateBody, Fn as mediaProviderListQuery, Ft as passkeyRegisterOptionsBody, G as wpPrepareBody, Gn as contentListQuery, Gt as hitlRequestResolveBody, H as wpMediaImportBody, Hn as contentCompareResponseSchema, Ht as reviewRequestListQuery, I as userDetailSchema, In as mediaResponseSchema, It as passkeyRegisterVerifyBody, J as searchQuery, Jn as contentPublicationReceiptSchema, Jt as contextEntryDiffQuery, K as wpRewriteUrlsBody, Kn as contentListResponseSchema, Kt as siteBriefingQuery, L as userListResponseSchema, Ln as mediaUpdateBody, Lt as passkeyRenameBody, M as widgetAreaWithWidgetsSchema, Mn as mediaItemSchema, Mt as inviteRegisterOptionsBody, N as widgetSchema, Nn as mediaListQuery, Nt as magicLinkSendBody, O as reorderWidgetsBody, On as formatFileSize, Ot as updateMenuItemBody, P as allowedDomainCreateBody, Pn as mediaListResponseSchema, Pt as passkeyOptionsBody, Q as searchSuggestQuery, Qn as contentReleaseReadinessResponseSchema, Qt as contextEntrySupersedeBody, R as userSchema, Rn as mediaUploadUrlBody, Rt as passkeyVerifyBody, S as redirectListResponseSchema, Sn as orphanedTableListResponseSchema, St as menuListItemSchema, T as updateRedirectBody, Tn as updateCollectionBody, Tt as menuWithItemsSchema, U as wpPluginAnalyzeBody, Un as contentCreateBody, Ut as reviewRequestResolveBody, V as importProbeBody, Vn as contentAuthorsResponseSchema, Vt as reviewRequestCreateBody, W as wpPluginExecuteBody, Wn as contentItemSchema, Wt as hitlRequestListQuery, X as searchResponseSchema, Xn as contentPublishResponseSchema, Xt as contextEntryReviewBody, Y as searchRebuildBody, Yn as contentPublishBody, Yt as contextEntryListQuery, Z as searchResultSchema, Zn as contentReleaseReadinessQuery, Zt as contextEntryStaleQuery, _ as notFoundListResponseSchema, _n as fieldListResponseSchema, _r as localeFilterQuery, _t as updateTermBody, a as bylineFieldUpdateBody, an as commentStatusBody, ar as contentTranslationsResponseSchema, at as updateSectionBody, b as notFoundSummaryResponseSchema, bn as fieldSchema, br as slugPattern, bt as menuItemSchema, c as bylineCreditSchema, cn as publicCommentListResponseSchema, cr as trashedContentItemSchema, ct as taxonomyDefSchema, d as bylineUpdateBody, dn as collectionListResponseSchema, dr as apiErrorSchema, dt as termGetResponseSchema, en as commentBulkBody, er as contentScheduleBody, et as siteSettingsSchema, f as bylinesListQuery, fn as collectionResponseSchema, fr as countResponseSchema, ft as termListResponseSchema, g as notFoundListQuery, gn as createFieldBody, gr as localeCode, gt as termWithCountSchema, h as notFoundEntrySchema, hn as createCollectionBody, hr as httpUrl, ht as termTranslationsSchema, i as bylineFieldReorderBody, in as commentSchema, ir as contentTranslationSchema, it as sectionsListQuery, j as widgetAreaWithWidgetsAndCountSchema, jn as mediaExistingResponseSchema, jt as inviteCreateBody, k as updateWidgetBody, kn as mediaConfirmBody, kt as authMeActionBody, l as bylineListResponseSchema, ln as publicCommentSchema, lr as trashedContentListResponseSchema, lt as taxonomyDefTranslationsSchema, m as createRedirectBody, mn as collectionWithFieldsResponseSchema, mr as deleteResponseSchema, mt as termSchema, n as bylineFieldDefinitionSchema, nn as commentCountsResponseSchema, nr as contentSeoSchema, nt as sectionListResponseSchema, o as bylineFieldUsageResponseSchema, on as createCommentBody, or as contentTrashQuery, ot as createTaxonomyDefBody, p as contentBylineInputSchema, pn as collectionSchema, pr as cursorPaginationQuery, pt as termResponseSchema, q as searchEnableBody, qn as contentPreviewUrlBody, qt as contextEntryCreateBody, r as bylineFieldListResponseSchema, rn as commentListQuery, rr as contentTermsBody, rt as sectionSchema, s as bylineCreateBody, sn as createReactionBody, sr as contentUpdateBody, st as createTermBody, t as bylineFieldCreateBody, tn as commentBulkResponseSchema, tr as contentSeoInput, tt as createSectionBody, u as bylineSummarySchema, un as collectionGetQuery, ur as VALID_ROLE_LEVELS, ut as taxonomyListResponseSchema, v as notFoundPruneBody, vn as fieldReorderBody, vr as offsetPaginationQuery, vt as createMenuBody, w as redirectsListQuery, wn as schemaExportQuery, wt as menuTranslationsSchema, x as notFoundSummarySchema, xn as orphanRegisterBody, xr as successEnvelope, xt as menuItemTypeEnum, y as notFoundSummaryQuery, yn as fieldResponseSchema, yr as roleLevel, yt as createMenuItemBody, z as userUpdateBody, zn as mediaUploadUrlResponseSchema, zt as signupCompleteBody } from "../../byline-fields-S7igJ-zQ.mjs";
|
|
2
2
|
import { atprotoLoginBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody } from "./setup.mjs";
|
|
3
3
|
export { DEFAULT_MAX_UPLOAD_SIZE, VALID_ROLE_LEVELS, adminCommentListResponseSchema, allowedDomainCreateBody, allowedDomainUpdateBody, apiErrorSchema, atprotoLoginBody, authMeActionBody, bylineCreateBody, bylineCreditSchema, bylineFieldCreateBody, bylineFieldDefinitionSchema, bylineFieldListResponseSchema, bylineFieldReorderBody, bylineFieldUpdateBody, bylineFieldUsageResponseSchema, bylineListResponseSchema, bylineSummarySchema, bylineUpdateBody, bylinesListQuery, collectionGetQuery, collectionListResponseSchema, collectionResponseSchema, collectionSchema, collectionWithFieldsResponseSchema, commentBulkBody, commentBulkResponseSchema, commentCountsResponseSchema, commentListQuery, commentSchema, commentStatusBody, contentAuthorSchema, contentAuthorsResponseSchema, contentBylineInputSchema, contentCompareResponseSchema, contentCreateBody, contentItemSchema, contentListQuery, contentListResponseSchema, contentPreviewUrlBody, contentPublicationReceiptSchema, contentPublishBody, contentPublishResponseSchema, contentReleaseReadinessQuery, contentReleaseReadinessResponseSchema, contentResponseSchema, contentScheduleBody, contentSeoInput, contentSeoSchema, contentTermsBody, contentTranslationSchema, contentTranslationsResponseSchema, contentTrashQuery, contentUpdateBody, contextEntryCreateBody, contextEntryDiffQuery, contextEntryListQuery, contextEntryReviewBody, contextEntryStaleQuery, contextEntrySupersedeBody, countResponseSchema, createCollectionBody, createCommentBody, createFieldBody, createMenuBody, createMenuItemBody, createReactionBody, createRedirectBody, createSectionBody, createTaxonomyDefBody, createTermBody, createWidgetAreaBody, createWidgetBody, cursorPaginationQuery, deleteResponseSchema, fieldListResponseSchema, fieldReorderBody, fieldResponseSchema, fieldSchema, formatFileSize, hitlRequestListQuery, hitlRequestResolveBody, httpUrl, importProbeBody, inviteCompleteBody, inviteCreateBody, inviteRegisterOptionsBody, localeCode, localeFilterQuery, magicLinkSendBody, mediaConfirmBody, mediaConfirmResponseSchema, mediaExistingResponseSchema, mediaItemSchema, mediaListQuery, mediaListResponseSchema, mediaProviderListQuery, mediaResponseSchema, mediaUpdateBody, mediaUploadUrlBody, mediaUploadUrlResponseSchema, menuItemSchema, menuItemTypeEnum, menuListItemSchema, menuSchema, menuTranslationsSchema, menuWithItemsSchema, notFoundEntrySchema, notFoundListQuery, notFoundListResponseSchema, notFoundPruneBody, notFoundSummaryQuery, notFoundSummaryResponseSchema, notFoundSummarySchema, offsetPaginationQuery, orphanRegisterBody, orphanedTableListResponseSchema, orphanedTableSchema, passkeyOptionsBody, passkeyRegisterOptionsBody, passkeyRegisterVerifyBody, passkeyRenameBody, passkeyVerifyBody, publicCommentListResponseSchema, publicCommentSchema, redirectListResponseSchema, redirectSchema, redirectsListQuery, reorderMenuItemsBody, reorderWidgetsBody, reviewRequestCreateBody, reviewRequestListQuery, reviewRequestResolveBody, roleLevel, schemaExportQuery, searchEnableBody, searchQuery, searchRebuildBody, searchResponseSchema, searchResultSchema, searchSuggestQuery, sectionListResponseSchema, sectionSchema, sectionsListQuery, settingsUpdateBody, setupAdminBody, setupAdminVerifyBody, setupAtprotoAdminBody, setupBody, signupCompleteBody, signupRequestBody, siteBriefingQuery, siteSettingsSchema, slugPattern, successEnvelope, taxonomyDefSchema, taxonomyDefTranslationsSchema, taxonomyListResponseSchema, termGetResponseSchema, termListResponseSchema, termResponseSchema, termSchema, termTranslationsSchema, termWithCountSchema, trashedContentItemSchema, trashedContentListResponseSchema, updateCollectionBody, updateFieldBody, updateMenuBody, updateMenuItemBody, updateRedirectBody, updateSectionBody, updateTermBody, updateWidgetBody, userDetailSchema, userListResponseSchema, userSchema, userUpdateBody, usersListQuery, widgetAreaSchema, widgetAreaWithWidgetsAndCountSchema, widgetAreaWithWidgetsSchema, widgetSchema, wpMediaImportBody, wpPluginAnalyzeBody, wpPluginExecuteBody, wpPrepareBody, wpRewriteUrlsBody };
|
|
@@ -2,14 +2,14 @@ import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
|
2
2
|
import { r as validatePluginIdentifier } from "./validate-Co3j6T_K.mjs";
|
|
3
3
|
import { t as contentWriteChecks } from "./atomic-authority-CnBQJ14T.mjs";
|
|
4
4
|
import { t as after } from "./after-BVaUn7bK.mjs";
|
|
5
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
5
|
+
import { o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
6
6
|
import { t as RevisionRepository } from "./revision-090sZyGc.mjs";
|
|
7
|
-
import { t as ContentRepository } from "./content-
|
|
7
|
+
import { t as ContentRepository } from "./content-Bf6Z1KsW.mjs";
|
|
8
8
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
9
|
-
import { u as PluginStateRepository } from "./briefing-
|
|
9
|
+
import { u as PluginStateRepository } from "./briefing-BiBHuHqK.mjs";
|
|
10
10
|
import { n as hashString } from "./hash-DvMZXj2L.mjs";
|
|
11
11
|
import { n as SchemaRegistry, t as SchemaError } from "./registry-DcV93OL_.mjs";
|
|
12
|
-
import { n as VERSION, t as COMMIT } from "./version-
|
|
12
|
+
import { n as VERSION, t as COMMIT } from "./version-9AyJ5JWH.mjs";
|
|
13
13
|
import { a as reconcileManifestAccess, i as pluginManifestSchema, r as normalizeManifestRoute } from "./manifest-schema-DBXM_g8l.mjs";
|
|
14
14
|
import { t as DinewayStorageError } from "./types-BKsk4nnM.mjs";
|
|
15
15
|
import { sql } from "kysely";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { c as __exportAll } from "./runner-CVeq0266.mjs";
|
|
2
2
|
import { atomicBatch, rowUnchanged } from "./database/batch.mjs";
|
|
3
3
|
import { n as getI18nConfig } from "./config-XW5tMrH8.mjs";
|
|
4
|
-
import { o as invalidateCollectionCache } from "./object-cache-
|
|
5
|
-
import { t as ContentRepository } from "./content-
|
|
4
|
+
import { o as invalidateCollectionCache } from "./object-cache-DYGlsI-R.mjs";
|
|
5
|
+
import { t as ContentRepository } from "./content-Bf6Z1KsW.mjs";
|
|
6
6
|
import { t as MediaRepository } from "./media-BZqwtRTZ.mjs";
|
|
7
|
-
import { t as TaxonomyRepository } from "./taxonomy-
|
|
7
|
+
import { t as TaxonomyRepository } from "./taxonomy-CAd9SL-L.mjs";
|
|
8
8
|
import { t as RedirectRepository } from "./redirect-HLI3wT5Y.mjs";
|
|
9
|
-
import { t as BylineRepository } from "./byline-
|
|
9
|
+
import { t as BylineRepository } from "./byline-BCPYEtzy.mjs";
|
|
10
10
|
import { a as markContentMediaUsageCollectionStaleSafely, o as prepareContentMediaUsageCollectionStale } from "./content-refresh-9M9cc55-.mjs";
|
|
11
11
|
import { a as validateExternalUrl, r as ssrfSafeFetch } from "./ssrf-COxLChKv.mjs";
|
|
12
12
|
import { t as FTSManager } from "./fts-manager-DA74x_uP.mjs";
|
|
13
13
|
import { n as SchemaRegistry } from "./registry-DcV93OL_.mjs";
|
|
14
|
-
import { s as setSiteSettings } from "./settings-
|
|
14
|
+
import { s as setSiteSettings } from "./settings-dNtUakSt.mjs";
|
|
15
15
|
import { t as validateSeed } from "./validate-CupwWNWL.mjs";
|
|
16
16
|
import { sql } from "kysely";
|
|
17
17
|
import { ulid } from "ulidx";
|
|
@@ -289,7 +289,7 @@ async function applySeed(db, seed, options = {}) {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
const { invalidateTaxonomyDefsCache } = await import("./taxonomies-
|
|
292
|
+
const { invalidateTaxonomyDefsCache } = await import("./taxonomies-Cz2F2QAm.mjs").then((n) => n.u);
|
|
293
293
|
invalidateTaxonomyDefsCache();
|
|
294
294
|
}
|
|
295
295
|
if (includeContent && seed.bylines) {
|
|
@@ -518,8 +518,8 @@ async function applySeed(db, seed, options = {}) {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
const { invalidateBylineCache } = await import("./bylines-
|
|
522
|
-
const { invalidateUrlPatternCache } = await import("./query-
|
|
521
|
+
const { invalidateBylineCache } = await import("./bylines-Do1KuJkk.mjs").then((n) => n.t);
|
|
522
|
+
const { invalidateUrlPatternCache } = await import("./query-COquV-XH.mjs").then((n) => n.o);
|
|
523
523
|
const { invalidateRedirectCache } = await import("./cache-DZDOBJv3.mjs").then((n) => n.t);
|
|
524
524
|
invalidateBylineCache();
|
|
525
525
|
invalidateUrlPatternCache();
|
|
@@ -626,7 +626,7 @@ async function writeSeedContent(db, collection, entry, data, bylineIds, target)
|
|
|
626
626
|
statements
|
|
627
627
|
});
|
|
628
628
|
invalidateCollectionCache(collection);
|
|
629
|
-
const { invalidateTermCache } = await import("./taxonomies-
|
|
629
|
+
const { invalidateTermCache } = await import("./taxonomies-Cz2F2QAm.mjs").then((n) => n.u);
|
|
630
630
|
invalidateTermCache();
|
|
631
631
|
const item = await repository.findById(collection, id);
|
|
632
632
|
if (!item) throw new Error("Failed to reload seeded content");
|
package/dist/astro/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as ContentItem } from "../types-BFoQ5a1v.mjs";
|
|
2
|
-
import { Ao as DinewayConfig, At as ResolvedPlugin, Fo as StorageDescriptor, Ks as MediaItem, Mo as getStoredConfig, No as LocalStorageConfig, Po as S3StorageConfig } from "../types-
|
|
2
|
+
import { Ao as DinewayConfig, At as ResolvedPlugin, Fo as StorageDescriptor, Ks as MediaItem, Mo as getStoredConfig, No as LocalStorageConfig, Po as S3StorageConfig } from "../types-5xfwCI4m.mjs";
|
|
3
3
|
import "../types-CVRNRAA5.mjs";
|
|
4
4
|
import "../runner-Cxl-vyk2.mjs";
|
|
5
5
|
import "../index-mlJSqFkG.mjs";
|
|
@@ -7,7 +7,7 @@ import "../types-SddyDti7.mjs";
|
|
|
7
7
|
import { i as ObjectCacheRuntimeConfig, r as ObjectCacheDescriptor } from "../types-DNPP-eu4.mjs";
|
|
8
8
|
import "../public-url-zoO-QbN6.mjs";
|
|
9
9
|
import "../validate-CCOsvPg2.mjs";
|
|
10
|
-
import "../byline-fields-
|
|
10
|
+
import "../byline-fields-S7igJ-zQ.mjs";
|
|
11
11
|
import "../types-CAD4OvmF.mjs";
|
|
12
12
|
import { DinewayHandlers, DinewayManifest, ManifestCollection } from "./types.mjs";
|
|
13
13
|
import { AstroIntegration } from "astro";
|
package/dist/astro/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as INTERNAL_MEDIA_PREFIX } from "../normalize-5rct_U0I.mjs";
|
|
2
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
2
|
+
import { n as VERSION, t as COMMIT } from "../version-9AyJ5JWH.mjs";
|
|
3
3
|
import { t as defaultSeed } from "../default-w3MwLng7.mjs";
|
|
4
|
-
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-
|
|
5
|
-
import { r as writeWorkersBuildMetadata } from "../workers-build-
|
|
4
|
+
import { n as validateAllowedOrigins, r as validateOriginShape } from "../allowed-origins-B2Jh2tzw.mjs";
|
|
5
|
+
import { r as writeWorkersBuildMetadata } from "../workers-build-BaQCrSmf.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import { existsSync, readFileSync } from "node:fs";
|
|
8
8
|
import { dirname, isAbsolute, relative, resolve } from "node:path";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ho as SiteAuthTokenContext } from "../../types-
|
|
1
|
+
import { ho as SiteAuthTokenContext } from "../../types-5xfwCI4m.mjs";
|
|
2
2
|
import "../../types-CVRNRAA5.mjs";
|
|
3
3
|
import "../../runner-Cxl-vyk2.mjs";
|
|
4
4
|
import "../../index-mlJSqFkG.mjs";
|
|
5
5
|
import "../../types-SddyDti7.mjs";
|
|
6
6
|
import "../../public-url-zoO-QbN6.mjs";
|
|
7
7
|
import "../../validate-CCOsvPg2.mjs";
|
|
8
|
-
import "../../byline-fields-
|
|
8
|
+
import "../../byline-fields-S7igJ-zQ.mjs";
|
|
9
9
|
import "../../types-CAD4OvmF.mjs";
|
|
10
10
|
import { DinewayHandlers } from "../types.mjs";
|
|
11
11
|
import { User } from "@dineway-ai/auth";
|
|
@@ -7,8 +7,8 @@ import "../../after-BVaUn7bK.mjs";
|
|
|
7
7
|
import { t as apiError } from "../../error-B-44r5TD.mjs";
|
|
8
8
|
import { a as hashApiToken, i as hasScope } from "../../api-tokens-DA18zxza.mjs";
|
|
9
9
|
import { n as getPublicOrigin } from "../../public-url-4sMO36Gw.mjs";
|
|
10
|
-
import { t as getAuthMode } from "../../mode-
|
|
11
|
-
import { t as resolveSessionUser } from "../../session-user-
|
|
10
|
+
import { t as getAuthMode } from "../../mode-CPf_KZ37.mjs";
|
|
11
|
+
import { t as resolveSessionUser } from "../../session-user-DeqTcAmR.mjs";
|
|
12
12
|
import { a as resolveApiToken, o as resolveOAuthToken } from "../../api-tokens-OAgvq4xg.mjs";
|
|
13
13
|
import { ulid } from "ulidx";
|
|
14
14
|
import { defineMiddleware } from "astro:middleware";
|
|
@@ -5,7 +5,7 @@ import * as astro from "astro";
|
|
|
5
5
|
* Dineway Request Context Middleware
|
|
6
6
|
*
|
|
7
7
|
* Sets up AsyncLocalStorage-based request context for query functions.
|
|
8
|
-
* Skips ALS
|
|
8
|
+
* Skips ALS for logged-out users without CMS signals when page caching is disabled.
|
|
9
9
|
*
|
|
10
10
|
* Handles:
|
|
11
11
|
* - Preview tokens: _preview query param with signed HMAC token
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getRequestContext, runWithContext } from "../../request-context.mjs";
|
|
1
|
+
import { getRequestContext, runWithContext, runWithPageCache } from "../../request-context.mjs";
|
|
2
2
|
import "../../base64-Cz-aU0X1.mjs";
|
|
3
3
|
import "../../after-BVaUn7bK.mjs";
|
|
4
4
|
import "../../options-BcqHWpc-.mjs";
|
|
@@ -1305,7 +1305,7 @@ function renderToolbar(config) {
|
|
|
1305
1305
|
* Dineway Request Context Middleware
|
|
1306
1306
|
*
|
|
1307
1307
|
* Sets up AsyncLocalStorage-based request context for query functions.
|
|
1308
|
-
* Skips ALS
|
|
1308
|
+
* Skips ALS for logged-out users without CMS signals when page caching is disabled.
|
|
1309
1309
|
*
|
|
1310
1310
|
* Handles:
|
|
1311
1311
|
* - Preview tokens: _preview query param with signed HMAC token
|
|
@@ -1330,9 +1330,10 @@ async function injectToolbar(response, toolbarHtml) {
|
|
|
1330
1330
|
}
|
|
1331
1331
|
const onRequest = defineMiddleware(async (context, next) => {
|
|
1332
1332
|
const { cookies, url } = context;
|
|
1333
|
+
const runNext = () => runWithPageCache(context.cache.enabled && !context.locals.__dinewayRequestDb ? context.cache : void 0, next);
|
|
1333
1334
|
if (url.pathname.startsWith("/_dineway")) {
|
|
1334
1335
|
if (context.cache.enabled) context.cache.set(false);
|
|
1335
|
-
return
|
|
1336
|
+
return runNext();
|
|
1336
1337
|
}
|
|
1337
1338
|
const { user } = context.locals;
|
|
1338
1339
|
const isEditor = !!user && user.role >= 30;
|
|
@@ -1344,11 +1345,11 @@ const onRequest = defineMiddleware(async (context, next) => {
|
|
|
1344
1345
|
editMode: hasEditCookie,
|
|
1345
1346
|
db: requestDb,
|
|
1346
1347
|
dbIsIsolated: true
|
|
1347
|
-
},
|
|
1348
|
+
}, runNext);
|
|
1348
1349
|
}
|
|
1349
1350
|
const hasEditCookie = cookies.get("dineway-edit-mode")?.value === "true";
|
|
1350
1351
|
const hasPreviewToken = url.searchParams.has("_preview");
|
|
1351
|
-
if (!hasEditCookie && !hasPreviewToken && !isEditor) return
|
|
1352
|
+
if (!hasEditCookie && !hasPreviewToken && !isEditor) return runNext();
|
|
1352
1353
|
const editMode = hasEditCookie && isEditor;
|
|
1353
1354
|
const locale = context.currentLocale;
|
|
1354
1355
|
let preview;
|
|
@@ -1375,7 +1376,7 @@ const onRequest = defineMiddleware(async (context, next) => {
|
|
|
1375
1376
|
preview,
|
|
1376
1377
|
locale
|
|
1377
1378
|
}, async () => {
|
|
1378
|
-
let response = await
|
|
1379
|
+
let response = await runNext();
|
|
1379
1380
|
if (preview) {
|
|
1380
1381
|
response = new Response(response.body, response);
|
|
1381
1382
|
response.headers.set("Cache-Control", "private, no-store");
|
|
@@ -1389,11 +1390,11 @@ const onRequest = defineMiddleware(async (context, next) => {
|
|
|
1389
1390
|
}
|
|
1390
1391
|
return response;
|
|
1391
1392
|
});
|
|
1392
|
-
if (isEditor) return injectToolbar(await
|
|
1393
|
+
if (isEditor) return injectToolbar(await runNext(), renderToolbar({
|
|
1393
1394
|
editMode: false,
|
|
1394
1395
|
isPreview: false
|
|
1395
1396
|
}));
|
|
1396
|
-
return
|
|
1397
|
+
return runNext();
|
|
1397
1398
|
});
|
|
1398
1399
|
|
|
1399
1400
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as runMigrations, o as assertD1Migrations, t as MIGRATION_NAMES } from "../runner-CVeq0266.mjs";
|
|
2
2
|
import "../connection-DJ3GzHVH.mjs";
|
|
3
3
|
import { n as d1Database } from "../d1-binding-D6HZa3ks.mjs";
|
|
4
|
-
import { createRequestMetrics, getRequestContext, runWithContext } from "../request-context.mjs";
|
|
4
|
+
import { createRequestMetrics, getRequestContext, runWithContext, runWithPageCache } from "../request-context.mjs";
|
|
5
5
|
import { atomicBatch, isD1Database } from "../database/batch.mjs";
|
|
6
6
|
import { s as isSqlite } from "../dialect-helpers-C6xtO-Ui.mjs";
|
|
7
7
|
import { i as setI18nConfig } from "../config-XW5tMrH8.mjs";
|
|
8
|
-
import { _ as readBoundedPluginRouteBody, d as EmailPipeline, g as DEFAULT_PLUGIN_RAW_BODY_LIMIT_BYTES, h as definePlugin, m as resolveExclusiveHooks, p as createHookPipeline, u as PluginRouteRegistry } from "../plugins-
|
|
8
|
+
import { _ as readBoundedPluginRouteBody, d as EmailPipeline, g as DEFAULT_PLUGIN_RAW_BODY_LIMIT_BYTES, h as definePlugin, m as resolveExclusiveHooks, p as createHookPipeline, u as PluginRouteRegistry } from "../plugins-CE6y1ImU.mjs";
|
|
9
9
|
import { createRecorder, flushRecorder, formatServerTimingHeader, isInstrumentationEnabled, isServerTimingEnabled, kyselyLogOption } from "../database/instrumentation.mjs";
|
|
10
10
|
import "../base64-Cz-aU0X1.mjs";
|
|
11
11
|
import "../types-BqxIv8Il.mjs";
|
|
@@ -13,34 +13,34 @@ import { o as isMissingTableError, r as getDb } from "../loader-Cgsx23wU.mjs";
|
|
|
13
13
|
import "../actor-DxUAJgQX.mjs";
|
|
14
14
|
import "../atomic-authority-CnBQJ14T.mjs";
|
|
15
15
|
import { n as hasBackgroundTaskContext, t as after } from "../after-BVaUn7bK.mjs";
|
|
16
|
-
import "../object-cache-
|
|
16
|
+
import "../object-cache-DYGlsI-R.mjs";
|
|
17
17
|
import { t as RevisionRepository } from "../revision-090sZyGc.mjs";
|
|
18
|
-
import { t as ContentRepository } from "../content-
|
|
18
|
+
import { t as ContentRepository } from "../content-Bf6Z1KsW.mjs";
|
|
19
19
|
import { t as MediaRepository } from "../media-BZqwtRTZ.mjs";
|
|
20
20
|
import "../user-1-YV30lf.mjs";
|
|
21
|
-
import "../taxonomy-
|
|
22
|
-
import "../comment-
|
|
21
|
+
import "../taxonomy-CAd9SL-L.mjs";
|
|
22
|
+
import "../comment-DX7gSK1w.mjs";
|
|
23
23
|
import { t as OptionsRepository } from "../options-BcqHWpc-.mjs";
|
|
24
24
|
import "../audit-F5iWkbcJ.mjs";
|
|
25
25
|
import "../site-activity-BrN2NviL.mjs";
|
|
26
26
|
import { r as ReviewRequestRepository } from "../review-requests-BF2eEKr8.mjs";
|
|
27
|
-
import { n as PublicationAuthorizationService, r as publicationReceipt, s as ContentReleaseGrantRepository, t as PublicationAuthorizationError } from "../publication-authorization-
|
|
28
|
-
import "../site-context-
|
|
29
|
-
import { t as PluginContextFactory } from "../context-
|
|
30
|
-
import "../menus-
|
|
27
|
+
import { n as PublicationAuthorizationService, r as publicationReceipt, s as ContentReleaseGrantRepository, t as PublicationAuthorizationError } from "../publication-authorization-DEf-rGSM.mjs";
|
|
28
|
+
import "../site-context-BBmRiuZl.mjs";
|
|
29
|
+
import { t as PluginContextFactory } from "../context-4B6AEEJg.mjs";
|
|
30
|
+
import "../menus-BJvvB0n9.mjs";
|
|
31
31
|
import "../redirect-HLI3wT5Y.mjs";
|
|
32
32
|
import { r as requestCached } from "../request-cache-DPmV5nk4.mjs";
|
|
33
33
|
import "../byline-registry-CkuVVeJJ.mjs";
|
|
34
34
|
import { a as initWithLock, i as createInitLock, r as processCachedAsync, t as createProcessCache } from "../process-cache-MHM4Sqzs.mjs";
|
|
35
35
|
import "../field-defs-cache-BKKFFf_V.mjs";
|
|
36
|
-
import "../byline-
|
|
36
|
+
import "../byline-BCPYEtzy.mjs";
|
|
37
37
|
import { n as normalizeMediaValue } from "../normalize-5rct_U0I.mjs";
|
|
38
38
|
import "../enrich-BjF-J4sF.mjs";
|
|
39
|
-
import { A as validateRev, C as handleContentUpdate, O as decodeRev, S as handleContentUnschedule, _ as handleContentPublish, a as handleContentCompare, b as handleContentTranslations, c as handleContentCreate, d as handleContentDuplicate, f as handleContentGet, g as handleContentPermanentDelete, h as handleContentListTrashed, i as handleContentAuthors, k as encodeRev, l as handleContentDelete, m as handleContentList, o as handleContentCountScheduled, p as handleContentGetIncludingTrashed, s as handleContentCountTrashed, t as ReviewPayloadBuilder, u as handleContentDiscardDraft, v as handleContentRestore, x as handleContentUnpublish, y as handleContentSchedule } from "../review-payload-
|
|
40
|
-
import "../seo-
|
|
41
|
-
import "../submission-
|
|
39
|
+
import { A as validateRev, C as handleContentUpdate, O as decodeRev, S as handleContentUnschedule, _ as handleContentPublish, a as handleContentCompare, b as handleContentTranslations, c as handleContentCreate, d as handleContentDuplicate, f as handleContentGet, g as handleContentPermanentDelete, h as handleContentListTrashed, i as handleContentAuthors, k as encodeRev, l as handleContentDelete, m as handleContentList, o as handleContentCountScheduled, p as handleContentGetIncludingTrashed, s as handleContentCountTrashed, t as ReviewPayloadBuilder, u as handleContentDiscardDraft, v as handleContentRestore, x as handleContentUnpublish, y as handleContentSchedule } from "../review-payload-CzN5RQL4.mjs";
|
|
40
|
+
import "../seo-B3cQl1r2.mjs";
|
|
41
|
+
import "../submission-eaVl2STP.mjs";
|
|
42
42
|
import "../context-types-DLD_HnKT.mjs";
|
|
43
|
-
import { u as PluginStateRepository } from "../briefing-
|
|
43
|
+
import { u as PluginStateRepository } from "../briefing-BiBHuHqK.mjs";
|
|
44
44
|
import { a as SiteAiGateway, t as SiteIntegrationRuns } from "../runs-B8kCirJ6.mjs";
|
|
45
45
|
import { n as runWithRuntimeEnvironment } from "../runtime-env-v-1UXPAH.mjs";
|
|
46
46
|
import { o as validateEncryptionKeyAtStartup } from "../secrets-BP2YTPWn.mjs";
|
|
@@ -51,27 +51,27 @@ import { t as FTSManager } from "../fts-manager-DA74x_uP.mjs";
|
|
|
51
51
|
import "../public-discovery-CTql6jdZ.mjs";
|
|
52
52
|
import { n as SchemaRegistry } from "../registry-DcV93OL_.mjs";
|
|
53
53
|
import { r as createPublicMediaUrlResolver } from "../url-Ce0qtSdB.mjs";
|
|
54
|
-
import "../settings-
|
|
55
|
-
import "../evidence-
|
|
56
|
-
import "../dashboard-
|
|
57
|
-
import "../briefing-
|
|
58
|
-
import "../review-requests-
|
|
59
|
-
import { n as VERSION, t as COMMIT } from "../version-
|
|
60
|
-
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, O as handleMediaList, T as handleMediaCreate, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate } from "../api-
|
|
61
|
-
import "../query-
|
|
54
|
+
import "../settings-dNtUakSt.mjs";
|
|
55
|
+
import "../evidence-CoLCtvqq.mjs";
|
|
56
|
+
import "../dashboard-DHv8q_NK.mjs";
|
|
57
|
+
import "../briefing-DQYj9x6H.mjs";
|
|
58
|
+
import "../review-requests-CQX7T3MV.mjs";
|
|
59
|
+
import { n as VERSION, t as COMMIT } from "../version-9AyJ5JWH.mjs";
|
|
60
|
+
import { A as handleRevisionGet, D as handleMediaGet, E as handleMediaDelete, M as handleRevisionRestore, O as handleMediaList, T as handleMediaCreate, d as createPluginBundleStore, j as handleRevisionList, k as handleMediaUpdate } from "../api-qTefA3vh.mjs";
|
|
61
|
+
import "../query-DnK6LJdA.mjs";
|
|
62
62
|
import "../zod-generator-BzACAoR5.mjs";
|
|
63
63
|
import "../schema-DFeC5axi.mjs";
|
|
64
64
|
import "../discovery-CYcZJ1o3.mjs";
|
|
65
65
|
import "../seo-Bypxm1iD.mjs";
|
|
66
|
-
import "../bylines-
|
|
66
|
+
import "../bylines-BkRyEw1m.mjs";
|
|
67
67
|
import "../byline-fields-CY6V0ew1.mjs";
|
|
68
68
|
import "../sections-CkoQY7Z9.mjs";
|
|
69
|
-
import "../settings-
|
|
69
|
+
import "../settings-DiAKrrP4.mjs";
|
|
70
70
|
import { t as IntegrationCredentialStore } from "../store-CjmmGlVw.mjs";
|
|
71
71
|
import "../integration-credentials-Br16M1VE.mjs";
|
|
72
72
|
import "../resolve-CpOV2jt_.mjs";
|
|
73
|
-
import "../taxonomies-
|
|
74
|
-
import "../taxonomies-
|
|
73
|
+
import "../taxonomies-Cz2F2QAm.mjs";
|
|
74
|
+
import "../taxonomies-H63wRvul.mjs";
|
|
75
75
|
import { r as normalizeManifestRoute } from "../manifest-schema-DBXM_g8l.mjs";
|
|
76
76
|
import "../parse-BscLr3p2.mjs";
|
|
77
77
|
import "../redirects-DpRiuRWn.mjs";
|
|
@@ -79,7 +79,7 @@ import "../byline-fields-DGNKitg3.mjs";
|
|
|
79
79
|
import "../status-DBSB6tdS.mjs";
|
|
80
80
|
import { t as getTrustedProxyHeaders } from "../trusted-proxy-CvDP0g0F.mjs";
|
|
81
81
|
import "../rate-limit-RaBJEgyt.mjs";
|
|
82
|
-
import { a as invalidateUrlPatternCache } from "../query-
|
|
82
|
+
import { a as invalidateUrlPatternCache } from "../query-COquV-XH.mjs";
|
|
83
83
|
import "../preview-E1xKZGsX.mjs";
|
|
84
84
|
import "../parser-ehIlj32k.mjs";
|
|
85
85
|
import { n as runPluginMigrations } from "../migrations-C7YXse7V.mjs";
|
|
@@ -87,28 +87,28 @@ import { n as sanitizeHeadersForSandbox, t as extractRequestMeta } from "../requ
|
|
|
87
87
|
import { n as CronExecutor } from "../cron-BVYo08mi.mjs";
|
|
88
88
|
import { r as devConsoleEmailDeliver, t as DEV_CONSOLE_EMAIL_PLUGIN_ID } from "../email-console-CpvgEN1w.mjs";
|
|
89
89
|
import "../api-tokens-DA18zxza.mjs";
|
|
90
|
-
import { n as createActivePluginMcpRegistry } from "../mcp-reviewed-executor-
|
|
90
|
+
import { n as createActivePluginMcpRegistry } from "../mcp-reviewed-executor-B_65l7Hq.mjs";
|
|
91
91
|
import { n as redactActivityRecord } from "../activity-BbtYp_4V.mjs";
|
|
92
92
|
import "../activity-events-CiFN61xq.mjs";
|
|
93
93
|
import { i as experimentalSiteContextWorkflowsEnabled } from "../experimental-workflows-fzJHB3ZI.mjs";
|
|
94
94
|
import "../utils-BoWkoty8.mjs";
|
|
95
95
|
import "../search-C9qOBgvo.mjs";
|
|
96
|
-
import "../import-
|
|
96
|
+
import "../import-Bg-IiofM.mjs";
|
|
97
97
|
import "../tokens-I3tSjoFI.mjs";
|
|
98
98
|
import "../comment-reaction-Cun5eIXL.mjs";
|
|
99
|
-
import "../menus-
|
|
100
|
-
import "../bylines-
|
|
99
|
+
import "../menus-DNcY6Do7.mjs";
|
|
100
|
+
import "../bylines-Do1KuJkk.mjs";
|
|
101
101
|
import "../widgets-DbOctkXv.mjs";
|
|
102
102
|
import "../validate-CupwWNWL.mjs";
|
|
103
|
-
import "../apply-
|
|
103
|
+
import "../apply-CC0OQb8V.mjs";
|
|
104
104
|
import "../load-B2oitobd.mjs";
|
|
105
105
|
import "../index.mjs";
|
|
106
|
-
import { n as d1ReleaseRevision, t as assertD1Release } from "../state-
|
|
107
|
-
import { t as getAuthMode } from "../mode-
|
|
108
|
-
import { i as runPublicationTransaction, r as validateReviewMedia, t as ReviewAutomationWorker } from "../worker-
|
|
109
|
-
import "../policy-
|
|
110
|
-
import { t as cleanupExpiredChallenges } from "../challenge-store-
|
|
111
|
-
import { t as resolveSessionUser } from "../session-user-
|
|
106
|
+
import { n as d1ReleaseRevision, t as assertD1Release } from "../state-jyNZ6-7L.mjs";
|
|
107
|
+
import { t as getAuthMode } from "../mode-CPf_KZ37.mjs";
|
|
108
|
+
import { i as runPublicationTransaction, r as validateReviewMedia, t as ReviewAutomationWorker } from "../worker-hQbWAsIT.mjs";
|
|
109
|
+
import "../policy-Dej7NJFD.mjs";
|
|
110
|
+
import { t as cleanupExpiredChallenges } from "../challenge-store-D-_-VavY.mjs";
|
|
111
|
+
import { t as resolveSessionUser } from "../session-user-DeqTcAmR.mjs";
|
|
112
112
|
import { Kysely, sql } from "kysely";
|
|
113
113
|
import { getSecret } from "astro:env/server";
|
|
114
114
|
import { defineMiddleware } from "astro:middleware";
|
|
@@ -1336,7 +1336,7 @@ var DinewayRuntime = class DinewayRuntime {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
})();
|
|
1338
1338
|
if (collectionCount.count === 0 && !setupDone) {
|
|
1339
|
-
const { applySeed } = await import("../apply-
|
|
1339
|
+
const { applySeed } = await import("../apply-CC0OQb8V.mjs").then((n) => n.n);
|
|
1340
1340
|
const { loadSeed } = await import("../load-B2oitobd.mjs").then((n) => n.r);
|
|
1341
1341
|
const { validateSeed } = await import("../validate-CupwWNWL.mjs").then((n) => n.n);
|
|
1342
1342
|
const seed = await loadSeed();
|
|
@@ -2668,7 +2668,7 @@ const handleRequestWithRuntime = defineMiddleware(async (context, next) => {
|
|
|
2668
2668
|
}
|
|
2669
2669
|
return handleRequest();
|
|
2670
2670
|
});
|
|
2671
|
-
const onRequest = defineMiddleware((context, next) => runWithRuntimeEnvironment(getSecret, async () => {
|
|
2671
|
+
const onRequest = defineMiddleware((context, next) => runWithPageCache(context.cache?.enabled && !context.locals.__dinewayRequestDb ? context.cache : void 0, () => runWithRuntimeEnvironment(getSecret, async () => {
|
|
2672
2672
|
if (getConfig()?.database?.entrypoint !== "dineway/db/d1" || context.isPrerendered) return handleRequestWithRuntime(context, next);
|
|
2673
2673
|
try {
|
|
2674
2674
|
const { getDb } = await import("../loader-Cgsx23wU.mjs").then((n) => n.i);
|
|
@@ -2684,7 +2684,7 @@ const onRequest = defineMiddleware((context, next) => runWithRuntimeEnvironment(
|
|
|
2684
2684
|
});
|
|
2685
2685
|
}
|
|
2686
2686
|
return handleRequestWithRuntime(context, next);
|
|
2687
|
-
}));
|
|
2687
|
+
})));
|
|
2688
2688
|
|
|
2689
2689
|
//#endregion
|
|
2690
2690
|
export { RUNTIME_INIT_DEADLINE_MS, onRequest as default, onRequest };
|
|
@@ -4,20 +4,20 @@ import "../../../../base64-Cz-aU0X1.mjs";
|
|
|
4
4
|
import "../../../../types-BqxIv8Il.mjs";
|
|
5
5
|
import "../../../../loader-Cgsx23wU.mjs";
|
|
6
6
|
import "../../../../after-BVaUn7bK.mjs";
|
|
7
|
-
import "../../../../object-cache-
|
|
7
|
+
import "../../../../object-cache-DYGlsI-R.mjs";
|
|
8
8
|
import "../../../../media-BZqwtRTZ.mjs";
|
|
9
9
|
import "../../../../options-BcqHWpc-.mjs";
|
|
10
10
|
import "../../../../site-activity-BrN2NviL.mjs";
|
|
11
11
|
import "../../../../review-requests-BF2eEKr8.mjs";
|
|
12
12
|
import "../../../../request-cache-DPmV5nk4.mjs";
|
|
13
13
|
import "../../../../context-types-DLD_HnKT.mjs";
|
|
14
|
-
import "../../../../briefing-
|
|
14
|
+
import "../../../../briefing-BiBHuHqK.mjs";
|
|
15
15
|
import "../../../../content-refresh-9M9cc55-.mjs";
|
|
16
16
|
import "../../../../fts-manager-DA74x_uP.mjs";
|
|
17
17
|
import "../../../../public-discovery-CTql6jdZ.mjs";
|
|
18
18
|
import "../../../../registry-DcV93OL_.mjs";
|
|
19
|
-
import "../../../../settings-
|
|
20
|
-
import { t as handleSiteBriefingGet } from "../../../../briefing-
|
|
19
|
+
import "../../../../settings-dNtUakSt.mjs";
|
|
20
|
+
import { t as handleSiteBriefingGet } from "../../../../briefing-DQYj9x6H.mjs";
|
|
21
21
|
import { a as unwrapResult, i as requireDb, r as handleError, t as apiError } from "../../../../error-B-44r5TD.mjs";
|
|
22
22
|
import { i as parseQuery, t as isParseError } from "../../../../parse-BscLr3p2.mjs";
|
|
23
23
|
import "../../../../redirects-DpRiuRWn.mjs";
|
|
@@ -4,14 +4,14 @@ import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
|
4
4
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
5
5
|
import "../../../../../../loader-Cgsx23wU.mjs";
|
|
6
6
|
import "../../../../../../after-BVaUn7bK.mjs";
|
|
7
|
-
import "../../../../../../object-cache-
|
|
7
|
+
import "../../../../../../object-cache-DYGlsI-R.mjs";
|
|
8
8
|
import "../../../../../../request-cache-DPmV5nk4.mjs";
|
|
9
9
|
import "../../../../../../byline-registry-CkuVVeJJ.mjs";
|
|
10
10
|
import "../../../../../../field-defs-cache-BKKFFf_V.mjs";
|
|
11
|
-
import { t as BylineRepository } from "../../../../../../byline-
|
|
11
|
+
import { t as BylineRepository } from "../../../../../../byline-BCPYEtzy.mjs";
|
|
12
12
|
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
13
13
|
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
14
|
-
import { i as handleBylineUpdate } from "../../../../../../bylines-
|
|
14
|
+
import { i as handleBylineUpdate } from "../../../../../../bylines-BkRyEw1m.mjs";
|
|
15
15
|
import "../../../../../../resolve-CpOV2jt_.mjs";
|
|
16
16
|
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
17
17
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-BscLr3p2.mjs";
|
|
@@ -19,7 +19,7 @@ import { Tn as bylineUpdateBody } from "../../../../../../redirects-DpRiuRWn.mjs
|
|
|
19
19
|
import "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
20
20
|
import "../../../../../../status-DBSB6tdS.mjs";
|
|
21
21
|
import "../../../../../../api/schemas/index.mjs";
|
|
22
|
-
import { a as invalidateBylineCache } from "../../../../../../bylines-
|
|
22
|
+
import { a as invalidateBylineCache } from "../../../../../../bylines-Do1KuJkk.mjs";
|
|
23
23
|
import { n as requirePerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
24
24
|
import { Role } from "@dineway-ai/auth";
|
|
25
25
|
|
|
@@ -4,14 +4,14 @@ import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
|
4
4
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
5
5
|
import "../../../../../../loader-Cgsx23wU.mjs";
|
|
6
6
|
import "../../../../../../after-BVaUn7bK.mjs";
|
|
7
|
-
import "../../../../../../object-cache-
|
|
7
|
+
import "../../../../../../object-cache-DYGlsI-R.mjs";
|
|
8
8
|
import "../../../../../../request-cache-DPmV5nk4.mjs";
|
|
9
9
|
import "../../../../../../byline-registry-CkuVVeJJ.mjs";
|
|
10
10
|
import "../../../../../../field-defs-cache-BKKFFf_V.mjs";
|
|
11
|
-
import "../../../../../../byline-
|
|
11
|
+
import "../../../../../../byline-BCPYEtzy.mjs";
|
|
12
12
|
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
13
13
|
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
14
|
-
import { n as handleBylineCreate, r as handleBylineTranslations } from "../../../../../../bylines-
|
|
14
|
+
import { n as handleBylineCreate, r as handleBylineTranslations } from "../../../../../../bylines-BkRyEw1m.mjs";
|
|
15
15
|
import "../../../../../../resolve-CpOV2jt_.mjs";
|
|
16
16
|
import { a as unwrapResult, t as apiError } from "../../../../../../error-B-44r5TD.mjs";
|
|
17
17
|
import { n as parseBody, t as isParseError } from "../../../../../../parse-BscLr3p2.mjs";
|
|
@@ -19,7 +19,7 @@ import { xn as bylineCreateBody } from "../../../../../../redirects-DpRiuRWn.mjs
|
|
|
19
19
|
import "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
20
20
|
import "../../../../../../status-DBSB6tdS.mjs";
|
|
21
21
|
import "../../../../../../api/schemas/index.mjs";
|
|
22
|
-
import { a as invalidateBylineCache } from "../../../../../../bylines-
|
|
22
|
+
import { a as invalidateBylineCache } from "../../../../../../bylines-Do1KuJkk.mjs";
|
|
23
23
|
import { n as requirePerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
24
24
|
import { Role } from "@dineway-ai/auth";
|
|
25
25
|
|
|
@@ -4,14 +4,14 @@ import "../../../../../base64-Cz-aU0X1.mjs";
|
|
|
4
4
|
import "../../../../../types-BqxIv8Il.mjs";
|
|
5
5
|
import "../../../../../loader-Cgsx23wU.mjs";
|
|
6
6
|
import "../../../../../after-BVaUn7bK.mjs";
|
|
7
|
-
import "../../../../../object-cache-
|
|
7
|
+
import "../../../../../object-cache-DYGlsI-R.mjs";
|
|
8
8
|
import "../../../../../request-cache-DPmV5nk4.mjs";
|
|
9
9
|
import "../../../../../byline-registry-CkuVVeJJ.mjs";
|
|
10
10
|
import "../../../../../field-defs-cache-BKKFFf_V.mjs";
|
|
11
|
-
import { t as BylineRepository } from "../../../../../byline-
|
|
11
|
+
import { t as BylineRepository } from "../../../../../byline-BCPYEtzy.mjs";
|
|
12
12
|
import "../../../../../context-types-DLD_HnKT.mjs";
|
|
13
13
|
import "../../../../../public-discovery-CTql6jdZ.mjs";
|
|
14
|
-
import { n as handleBylineCreate } from "../../../../../bylines-
|
|
14
|
+
import { n as handleBylineCreate } from "../../../../../bylines-BkRyEw1m.mjs";
|
|
15
15
|
import "../../../../../resolve-CpOV2jt_.mjs";
|
|
16
16
|
import { a as unwrapResult, n as apiSuccess, r as handleError, t as apiError } from "../../../../../error-B-44r5TD.mjs";
|
|
17
17
|
import { i as parseQuery, n as parseBody, t as isParseError } from "../../../../../parse-BscLr3p2.mjs";
|
|
@@ -19,7 +19,7 @@ import { En as bylinesListQuery, xn as bylineCreateBody } from "../../../../../r
|
|
|
19
19
|
import "../../../../../byline-fields-DGNKitg3.mjs";
|
|
20
20
|
import "../../../../../status-DBSB6tdS.mjs";
|
|
21
21
|
import "../../../../../api/schemas/index.mjs";
|
|
22
|
-
import { a as invalidateBylineCache } from "../../../../../bylines-
|
|
22
|
+
import { a as invalidateBylineCache } from "../../../../../bylines-Do1KuJkk.mjs";
|
|
23
23
|
import { n as requirePerm } from "../../../../../authorize-CXIjxIfC.mjs";
|
|
24
24
|
import { Role } from "@dineway-ai/auth";
|
|
25
25
|
|
|
@@ -2,8 +2,8 @@ import "../../../../../../d1-binding-D6HZa3ks.mjs";
|
|
|
2
2
|
import "../../../../../../base64-Cz-aU0X1.mjs";
|
|
3
3
|
import "../../../../../../types-BqxIv8Il.mjs";
|
|
4
4
|
import "../../../../../../after-BVaUn7bK.mjs";
|
|
5
|
-
import "../../../../../../object-cache-
|
|
6
|
-
import "../../../../../../comment-
|
|
5
|
+
import "../../../../../../object-cache-DYGlsI-R.mjs";
|
|
6
|
+
import "../../../../../../comment-DX7gSK1w.mjs";
|
|
7
7
|
import "../../../../../../options-BcqHWpc-.mjs";
|
|
8
8
|
import "../../../../../../context-types-DLD_HnKT.mjs";
|
|
9
9
|
import "../../../../../../public-discovery-CTql6jdZ.mjs";
|
|
@@ -14,9 +14,9 @@ import "../../../../../../byline-fields-DGNKitg3.mjs";
|
|
|
14
14
|
import "../../../../../../status-DBSB6tdS.mjs";
|
|
15
15
|
import "../../../../../../api/schemas/index.mjs";
|
|
16
16
|
import { n as requirePerm } from "../../../../../../authorize-CXIjxIfC.mjs";
|
|
17
|
-
import { a as handleCommentGet } from "../../../../../../comments-
|
|
17
|
+
import { a as handleCommentGet } from "../../../../../../comments-CFswogn0.mjs";
|
|
18
18
|
import { t as getSiteBaseUrl } from "../../../../../../site-url-DoTPKRND.mjs";
|
|
19
|
-
import { i as sendCommentNotification, r as lookupContentAuthor, t as moderateComment } from "../../../../../../service-
|
|
19
|
+
import { i as sendCommentNotification, r as lookupContentAuthor, t as moderateComment } from "../../../../../../service-CMR5_eSN.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/astro/routes/api/admin/comments/[id]/status.ts
|
|
22
22
|
const prerender = false;
|