directus-transport-safe-run-middleware
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -17,3 +17,9 @@ "use strict"; | ||
method, | ||
body: data | ||
body: data, | ||
headers: { | ||
remoteAddress: '127.0.0.1', | ||
origin: '127.0.0.1', | ||
'content-type': 'application/json', | ||
'transfer-encoding': 'identity' | ||
} | ||
}; | ||
@@ -23,3 +29,3 @@ if (options.params) | ||
if (options.headers) | ||
params.headers = options.headers; | ||
Object.assign(params.headers, options.headers); | ||
return new Promise(resolve => this.app.runMiddleware(this.url + path, params, (status, data, headers) => { | ||
@@ -26,0 +32,0 @@ console.log(status, data, headers); |
{ | ||
"name": "directus-transport-safe-run-middleware", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A transport for the Directus JavaScript SDK which uses safe-run-middleware", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
4843
47