Socket
Socket
Sign inDemoInstall

cloudrive

Package Overview
Dependencies
139
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc