emdash 0.0.1 → 0.0.3
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/astro/index.mjs +41 -38
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +18 -1
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/index.mjs.map +1 -1
- package/dist/db/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{runner-B-u2F2b6.mjs → runner-C0hCbYnD.mjs} +15 -15
- package/dist/runner-C0hCbYnD.mjs.map +1 -0
- package/dist/storage/local.d.mts.map +1 -1
- package/dist/storage/local.mjs.map +1 -1
- package/dist/storage/s3.d.mts.map +1 -1
- package/dist/storage/s3.mjs.map +1 -1
- package/package.json +5 -5
- package/src/api/handlers/device-flow.ts +1 -4
- package/src/api/handlers/oauth-clients.ts +1 -5
- package/src/astro/integration/index.ts +1 -1
- package/src/astro/integration/vite-config.ts +8 -1
- package/src/astro/middleware.ts +35 -0
- package/src/astro/routes/api/admin/comments/[id]/status.ts +1 -5
- package/src/astro/routes/api/auth/passkey/register/verify.ts +1 -3
- package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +1 -5
- package/src/astro/routes/api/import/wordpress/analyze.ts +1 -1
- package/src/astro/routes/api/import/wordpress/media.ts +1 -1
- package/src/astro/routes/api/revisions/[revisionId]/restore.ts +1 -5
- package/src/astro/routes/api/widget-areas/[name]/reorder.ts +1 -5
- package/src/cli/commands/publish.ts +1 -3
- package/src/cli/commands/seed.ts +1 -3
- package/src/database/migrations/001_initial.ts +39 -5
- package/src/database/migrations/032_rate_limits.ts +1 -4
- package/src/mcp/server.ts +2 -2
- package/src/storage/local.ts +1 -5
- package/src/storage/s3.ts +2 -10
- package/dist/runner-B-u2F2b6.mjs.map +0 -1
package/dist/astro/index.mjs
CHANGED
|
@@ -1119,49 +1119,52 @@ function createViteConfig(options, command) {
|
|
|
1119
1119
|
plugins: [createVirtualModulesPlugin(options)],
|
|
1120
1120
|
ssr: cloudflare ? {
|
|
1121
1121
|
noExternal: ["emdash", "@emdash-cms/admin"],
|
|
1122
|
-
optimizeDeps: {
|
|
1123
|
-
"emdash
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1122
|
+
optimizeDeps: {
|
|
1123
|
+
exclude: ["virtual:emdash"],
|
|
1124
|
+
include: [
|
|
1125
|
+
"emdash > @portabletext/toolkit",
|
|
1126
|
+
"emdash > @unpic/placeholder",
|
|
1127
|
+
"emdash > blurhash",
|
|
1128
|
+
"emdash > croner",
|
|
1129
|
+
"emdash > image-size",
|
|
1130
|
+
"emdash > jose",
|
|
1131
|
+
"emdash > jpeg-js",
|
|
1132
|
+
"emdash > kysely",
|
|
1133
|
+
"emdash > mime/lite",
|
|
1134
|
+
"emdash > modern-tar",
|
|
1135
|
+
"emdash > sanitize-html",
|
|
1136
|
+
"emdash > ulidx",
|
|
1137
|
+
"emdash > upng-js",
|
|
1138
|
+
"emdash > astro-portabletext",
|
|
1139
|
+
"emdash > sax",
|
|
1140
|
+
"emdash > sanitize-html > parse5",
|
|
1141
|
+
"emdash > @emdash-cms/gutenberg-to-portable-text > @wordpress/block-serialization-default-parser",
|
|
1142
|
+
"emdash > @emdash-cms/auth > @oslojs/crypto/ecdsa",
|
|
1143
|
+
"emdash > @emdash-cms/auth > @oslojs/crypto/sha2",
|
|
1144
|
+
"emdash > @emdash-cms/auth > @oslojs/webauthn",
|
|
1145
|
+
"react",
|
|
1146
|
+
"react/jsx-dev-runtime",
|
|
1147
|
+
"react/jsx-runtime",
|
|
1148
|
+
"react-dom",
|
|
1149
|
+
"react-dom/server",
|
|
1150
|
+
"astro > zod/v4",
|
|
1151
|
+
"astro > zod/v4/core",
|
|
1152
|
+
"@emdash-cms/cloudflare > kysely-d1",
|
|
1153
|
+
"astro/virtual-modules/middleware.js",
|
|
1154
|
+
"astro/virtual-modules/live-config",
|
|
1155
|
+
"astro/content/runtime",
|
|
1156
|
+
"astro/assets/utils/inferRemoteSize.js",
|
|
1157
|
+
"astro/assets/fonts/runtime.js",
|
|
1158
|
+
"@astrojs/cloudflare/image-service"
|
|
1159
|
+
]
|
|
1160
|
+
}
|
|
1158
1161
|
} : {
|
|
1159
1162
|
external: NODE_NATIVE_EXTERNALS,
|
|
1160
1163
|
noExternal: ["emdash", "@emdash-cms/admin"]
|
|
1161
1164
|
},
|
|
1162
1165
|
optimizeDeps: {
|
|
1163
1166
|
include: useSource ? ["@astrojs/react/client.js"] : ["@emdash-cms/admin", "@astrojs/react/client.js"],
|
|
1164
|
-
exclude: cloudflare ? [] : NODE_NATIVE_EXTERNALS
|
|
1167
|
+
exclude: cloudflare ? ["virtual:emdash"] : [...NODE_NATIVE_EXTERNALS, "virtual:emdash"]
|
|
1165
1168
|
}
|
|
1166
1169
|
};
|
|
1167
1170
|
}
|
|
@@ -1190,7 +1193,7 @@ const cyan = (s) => `\x1b[36m${s}\x1b[39m`;
|
|
|
1190
1193
|
function printBanner(_logger) {
|
|
1191
1194
|
const banner = `
|
|
1192
1195
|
|
|
1193
|
-
${bold(cyan("E
|
|
1196
|
+
${bold(cyan("— E M D A S H —"))}
|
|
1194
1197
|
`;
|
|
1195
1198
|
console.log(banner);
|
|
1196
1199
|
}
|