Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dropbox-with-offline-refresh-token

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropbox-with-offline-refresh-token - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

2

package.json
{
"name": "dropbox-with-offline-refresh-token",
"version": "1.0.20",
"version": "1.0.21",
"type": "module",

@@ -5,0 +5,0 @@ "description": "use can easily use the dropbox api without have to handle all the authentication stuff. all you need is a single offline refresh token.",

@@ -73,4 +73,2 @@ import { Dropbox, DropboxResponseError } from "dropbox";

async execAsync<R>(lambda: (x: Dropbox) => Promise<R>): Promise<R> {
return new Promise<R>((res, rej) => {

@@ -81,2 +79,4 @@ this.jobQueue.push(async () => {

const start = new Date()
return lambda(this.client as Dropbox)

@@ -86,2 +86,5 @@ .catch(async (e): Promise<R> => this.handleDropboxError(e, () => lambda(this.client as Dropbox)))

.catch(rej)
.finally(() => {
console.log(`uploaded file to dropbox in ${new Date().getTime() - start.getTime()}`)
})
})

@@ -88,0 +91,0 @@ })

@@ -57,6 +57,10 @@ import { Dropbox, DropboxResponseError } from "dropbox";

throw new Error('dropbox client was not set');
const start = new Date();
return lambda(this.client)
.catch(async (e) => this.handleDropboxError(e, () => lambda(this.client)))
.then(res)
.catch(rej);
.catch(rej)
.finally(() => {
console.log(`uploaded file to dropbox in ${new Date().getTime() - start.getTime()}`);
});
});

@@ -63,0 +67,0 @@ });

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