restafary 11.0.0 → 11.0.1

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 CHANGED
@@ -1,3 +1,9 @@
1
+ 2022.04.22, v11.0.1
2
+
3
+ fix:
4
+ - (restafary) head: crash on file not found
5
+
6
+
1
7
  2022.04.22, v11.0.0
2
8
 
3
9
  feature:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "restafary",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "type": "commonjs",
5
5
  "description": "REST for CRUD file operations",
6
6
  "main": "server/restafary.js",
@@ -188,13 +188,8 @@ async function onFS(params, callback) {
188
188
  root,
189
189
  });
190
190
 
191
- if (error) {
192
- if (method === 'GET')
193
- return ponse.sendError(error, params);
194
-
195
- p.response.status('404');
196
- p.response.end();
197
- }
191
+ if (error)
192
+ return ponse.sendError(error, params);
198
193
 
199
194
  const {type, contentLength} = stream;
200
195