@momentumcms/server-express 0.0.1 → 0.1.2
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/CHANGELOG.md +12 -0
- package/index.cjs +4 -4
- package/index.js +7023 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.1.2 (2026-02-16)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **release:** centralize manifestRootsToUpdate to update both source and dist ([2b8f832](https://github.com/DonaldMurillo/momentum-cms/commit/2b8f832))
|
|
6
|
+
- **create-app:** fix Angular SSR, Analog builds, and CJS/ESM compatibility ([28d4d0a](https://github.com/DonaldMurillo/momentum-cms/commit/28d4d0a))
|
|
7
|
+
|
|
8
|
+
### ❤️ Thank You
|
|
9
|
+
|
|
10
|
+
- Claude Opus 4.6
|
|
11
|
+
- Donald Murillo @DonaldMurillo
|
|
12
|
+
|
|
1
13
|
## 0.1.1 (2026-02-16)
|
|
2
14
|
|
|
3
15
|
### 🩹 Fixes
|
package/index.cjs
CHANGED
|
@@ -48,6 +48,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
48
48
|
|
|
49
49
|
// libs/server-express/src/lib/server-express.ts
|
|
50
50
|
var import_express = require("express");
|
|
51
|
+
var import_multer = __toESM(require("multer"));
|
|
51
52
|
|
|
52
53
|
// libs/logger/src/lib/log-level.ts
|
|
53
54
|
var LOG_LEVEL_VALUES = {
|
|
@@ -3520,7 +3521,7 @@ function checkDepth(node, currentDepth, maxDepth, context) {
|
|
|
3520
3521
|
if (node.kind === "Field") {
|
|
3521
3522
|
if (currentDepth > maxDepth) {
|
|
3522
3523
|
context.reportError(
|
|
3523
|
-
new
|
|
3524
|
+
new import_graphql3.GraphQLError(
|
|
3524
3525
|
`Query depth of ${currentDepth} exceeds maximum allowed depth of ${maxDepth}`,
|
|
3525
3526
|
{ nodes: [node] }
|
|
3526
3527
|
)
|
|
@@ -5063,7 +5064,6 @@ function getPluginProviders() {
|
|
|
5063
5064
|
}
|
|
5064
5065
|
|
|
5065
5066
|
// libs/server-express/src/lib/server-express.ts
|
|
5066
|
-
var multer = require("multer");
|
|
5067
5067
|
function extractUserFromRequest(req) {
|
|
5068
5068
|
const authReq = req;
|
|
5069
5069
|
if (authReq.user?.id) {
|
|
@@ -5509,8 +5509,8 @@ function momentumApiMiddleware(config) {
|
|
|
5509
5509
|
res.status(500).json({ error: "Preview failed", message });
|
|
5510
5510
|
}
|
|
5511
5511
|
});
|
|
5512
|
-
const upload2 =
|
|
5513
|
-
storage:
|
|
5512
|
+
const upload2 = (0, import_multer.default)({
|
|
5513
|
+
storage: import_multer.default.memoryStorage(),
|
|
5514
5514
|
limits: {
|
|
5515
5515
|
fileSize: config.storage?.maxFileSize ?? 10 * 1024 * 1024
|
|
5516
5516
|
// Default 10MB
|