Socket
Socket
Sign inDemoInstall

eywa-dropbox

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eywa-dropbox - npm Package Compare versions

Comparing version 1.11.1 to 1.11.2

16

dist/dropbox/dropbox-api.js

@@ -118,4 +118,10 @@ "use strict";

key: "longPoll",
value: function longPoll(method, path, params, body) {
return (0, _rpcRequest2.default)(this.accessToken, method, this.longPollRoot + path, params, body);
value: function longPoll(path, body) {
return fetch(this.longPollRoot + path, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body)
}).then(function (res) {
return res.json();
});
}

@@ -197,5 +203,5 @@ }, {

if (!cursor) throw Error('need cursor in list feed long-polling');
var params = { cursor: cursor };
if (timeout) params.timeout = timeout;
return this.longPoll('post', "files/list_folder/longpoll", params);
var body = { cursor: cursor };
if (timeout) body.timeout = timeout;
return this.longPoll("files/list_folder/longpoll", body);
}

@@ -202,0 +208,0 @@ }, {

{
"name": "eywa-dropbox",
"version": "1.11.1",
"version": "1.11.2",
"description": "a dropbox file sync driver for the browser",

@@ -5,0 +5,0 @@ "main": "dist/dropbox/dropbox-api.js",

@@ -77,4 +77,9 @@ /** Created by ge on 5/12/16.

longPoll(method, path, params, body) {
return rpcRequest(this.accessToken, method, this.longPollRoot + path, params, body);
longPoll(path, body) {
return fetch(this.longPollRoot + path, {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify(body)
})
.then(res => res.json());
}

@@ -137,5 +142,5 @@

if (!cursor) throw Error('need cursor in list feed long-polling');
let params = {cursor};
if (timeout) params.timeout = timeout;
return this.longPoll('post', "files/list_folder/longpoll", params);
let body = {cursor};
if (timeout) body.timeout = timeout;
return this.longPoll("files/list_folder/longpoll", body);
}

@@ -142,0 +147,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