cloudrive
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "cloudrive", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -21,5 +21,6 @@ const { createClient } = require('webdav') | ||
try { | ||
await this.list('/') | ||
await this.createDir('hello') | ||
return true | ||
} catch (e) { | ||
console.warn(e.response.status) | ||
return false | ||
@@ -37,2 +38,3 @@ } | ||
content, | ||
onUploadProgress, | ||
} = options | ||
@@ -46,5 +48,5 @@ if (!dest || !content) { | ||
if (type === 'text/plain') { | ||
return this.client.putFileContents(dest, content) | ||
return this.client.putFileContents(dest, content, { onUploadProgress }) | ||
} | ||
return this.client.putFileContents(dest, body, { overwrite: false }) | ||
return this.client.putFileContents(dest, body, { overwrite: false, onUploadProgress }) | ||
} | ||
@@ -51,0 +53,0 @@ |
607489
314