New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

adonis-dropbox

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-dropbox - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "adonis-dropbox",
"version": "0.2.0",
"version": "0.3.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,12 +18,20 @@ /**

getRootPath() {
const rootPath = this.Config.get('dropbox.rootPath') || '/';
return rootPath[rootPath.length - 1] === '/' ? rootPath : `${rootPath}/`;
}
async upload(buffer) {
const rootPath = this.Config.get('dropbox.rootPath') || '/';
const { ext } = this.fileType(buffer);
return this.client.filesUpload({
path: `${rootPath[rootPath.length - 1] === '/' ? rootPath : `${rootPath}/`}${new Date().getTime()}.${ext}`,
path: `${this.getRootPath()}${new Date().getTime()}.${ext}`,
contents: buffer,
});
}
async download(name, customPath = null) {
return this.client.filesDownload({ path: `${customPath || this.getRootPath()}${name}` });
}
}
module.exports = AdonisDropbox;
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc