@tussle/core
Advanced tools
Comparing version 0.6.5 to 0.6.11
@@ -70,3 +70,3 @@ "use strict"; | ||
var _a; | ||
if (createdFile.location) { | ||
if (createdFile.location && !('error' in createdFile)) { | ||
ctx.response = { | ||
@@ -79,3 +79,4 @@ status: 201, | ||
ctx.response = { | ||
status: 400, // TODO - check this | ||
status: 400, | ||
body: `${createdFile.error}`, | ||
}; | ||
@@ -82,0 +83,0 @@ } |
@@ -53,3 +53,3 @@ "use strict"; | ||
var _a; | ||
if (patchedFile.success && patchedFile.offset !== undefined) { | ||
if (patchedFile.success && patchedFile.offset !== undefined && !('error' in patchedFile)) { | ||
ctx.response = { | ||
@@ -63,2 +63,3 @@ status: 204, | ||
status: 403, | ||
body: `${patchedFile.error}`, | ||
}; | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "@tussle/core", | ||
"version": "0.6.5", | ||
"version": "0.6.11", | ||
"description": "Tussle tus daemon core module", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@tussle/spec": "^0.6.5", | ||
"@tussle/spec": "^0.6.11", | ||
"jest": "^29.2.2", | ||
@@ -37,3 +37,3 @@ "npm-run-all": "^4.1.5", | ||
}, | ||
"gitHead": "9d94e032dd58c48823914bfb00ad62fbe0af4f4c" | ||
"gitHead": "ee211c40026e379246dff8da10ed687a2aedc88c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
43495
591