directus-transport-safe-run-middleware
Advanced tools
Comparing version 1.0.25 to 1.0.26
@@ -82,3 +82,2 @@ "use strict"; | ||
res.end = res.send = res.write = (raw => { | ||
var _a; | ||
let response = { | ||
@@ -90,3 +89,3 @@ status, | ||
try { | ||
response.data = (_a = JSON.parse(raw)) === null || _a === void 0 ? void 0 : _a.data; | ||
Object.assign(response, JSON.parse(raw)); | ||
} | ||
@@ -93,0 +92,0 @@ catch (error) { } |
{ | ||
"name": "directus-transport-safe-run-middleware", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "A transport for the Directus JavaScript SDK which calls the express endpoints on the same server.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
6742
104