javascript-solid-server 0.0.82 → 0.0.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-solid-server",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "description": "A minimal, fast Solid server",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -112,8 +112,8 @@ export async function handlePost(request, reply) {
112
112
  }
113
113
  }
114
114
 
115
- // Check storage quota before writing
116
- const podName = getPodName(request);
115
+ // Check storage quota before writing (skip in public mode - no pod structure)
116
+ const podName = request.config?.public ? null : getPodName(request);
117
117
  if (podName) {
118
118
  const { allowed, error } = await checkQuota(podName, content.length, request.defaultQuota || 0);
119
119
  if (!allowed) {
@@ -608,8 +608,8 @@ export async function handlePut(request, reply) {
608
608
  }
609
609
  }
610
610
 
611
- // Check storage quota before writing
612
- const podName = getPodName(request);
611
+ // Check storage quota before writing (skip in public mode - no pod structure)
612
+ const podName = request.config?.public ? null : getPodName(request);
613
613
  const oldSize = stats?.size || 0;
614
614
  const sizeDelta = content.length - oldSize;
615
615