javascript-solid-server 0.0.34 → 0.0.35

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-solid-server",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "A minimal, fast Solid server",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/server.js CHANGED
@@ -131,9 +131,10 @@ export function createServer(options = {}) {
131
131
  // Authorization hook - check WAC permissions
132
132
  // Skip for pod creation endpoint (needs special handling)
133
133
  fastify.addHook('preHandler', async (request, reply) => {
134
- // Skip auth for pod creation, OPTIONS, IdP routes, mashlib, and well-known endpoints
134
+ // Skip auth for pod creation, OPTIONS, IdP routes, mashlib, well-known, and notifications
135
135
  const mashlibPaths = ['/mashlib.min.js', '/mash.css', '/841.mashlib.min.js'];
136
136
  if (request.url === '/.pods' ||
137
+ request.url === '/.notifications' ||
137
138
  request.method === 'OPTIONS' ||
138
139
  request.url.startsWith('/idp/') ||
139
140
  request.url.startsWith('/.well-known/') ||