mosaic-rest-js
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -346,3 +346,3 @@ /*global define, module, require, JXON, getRequestBody, stringToJs*/ | ||
reqP.formData = {}; | ||
reqP.formData[(uri[1] === 'package') ? 'file' : 'package'] = fs.createReadStream(o.targetFile); | ||
reqP.formData[(uri.indexOf('import/package') === -1) ? 'file' : 'package'] = fs.createReadStream(o.targetFile); | ||
} | ||
@@ -349,0 +349,0 @@ } |
{ | ||
"name": "mosaic-rest-js", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "nodejs library for Backbase REST API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,3 +32,3 @@ /*global jxon, p1, p2, require, BBRest, BBReq, module, unescape*/ | ||
reqP.formData = {}; | ||
reqP.formData[(uri[1] === 'package') ? 'file' : 'package'] = fs.createReadStream(o.targetFile); | ||
reqP.formData[(uri.indexOf('import/package') === -1) ? 'file' : 'package'] = fs.createReadStream(o.targetFile); | ||
} | ||
@@ -35,0 +35,0 @@ } |
354339