@axium/storage 0.1.2 → 0.1.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/common.d.ts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +3 -1
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
package/dist/server.d.ts
CHANGED
package/dist/server.js
CHANGED
|
@@ -169,7 +169,9 @@ addRoute({
|
|
|
169
169
|
const { userId } = await getSessionAndUser(token).catch(withError('Invalid session token', 401));
|
|
170
170
|
const [usage, limits] = await Promise.all([currentUsage(userId), getLimits(userId)]).catch(withError('Could not fetch usage and/or limits'));
|
|
171
171
|
const name = event.request.headers.get('x-name');
|
|
172
|
-
if (
|
|
172
|
+
if (!name)
|
|
173
|
+
error(400, 'Missing name header');
|
|
174
|
+
if (name.length > 255)
|
|
173
175
|
error(400, 'Name is too long');
|
|
174
176
|
const maybeParentId = event.request.headers.get('x-parent');
|
|
175
177
|
const parentId = maybeParentId
|