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

@uppy/dropbox

Package Overview
Dependencies
Maintainers
5
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/dropbox - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

58

lib/index.js

@@ -1,6 +0,6 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _class, _temp;
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }

@@ -18,19 +18,26 @@ var _require = require('@uppy/core'),

module.exports = function (_Plugin) {
_inherits(Dropbox, _Plugin);
module.exports = (_temp = _class =
/*#__PURE__*/
function (_Plugin) {
_inheritsLoose(Dropbox, _Plugin);
function Dropbox(uppy, opts) {
_classCallCheck(this, Dropbox);
var _this;
var _this = _possibleConstructorReturn(this, _Plugin.call(this, uppy, opts));
_this = _Plugin.call(this, uppy, opts) || this;
_this.id = _this.opts.id || 'Dropbox';
Provider.initPlugin(_this, opts);
Provider.initPlugin(_assertThisInitialized(_this), opts);
_this.title = _this.opts.title || 'Dropbox';
_this.icon = function () {
return h(
'svg',
{ 'aria-hidden': 'true', width: '128', height: '128', viewBox: '0 0 128 128' },
h('path', { d: 'M31.997 11L64 31.825 31.997 52.651 0 31.825 31.997 11zM96 11l32 20.825-32 20.826-32-20.826L96 11zM0 73.476l31.997-20.825L64 73.476 31.997 94.302 0 73.476zm96-20.825l32 20.825-32 20.826-32-20.826 32-20.825zm-64.508 48.254l32.003-20.826 31.997 20.826-31.997 20.825-32.003-20.825z', fill: '#0260FF', 'fill-rule': 'nonzero' })
);
return h("svg", {
"aria-hidden": "true",
width: "128",
height: "128",
viewBox: "0 0 128 128"
}, h("path", {
d: "M31.997 11L64 31.825 31.997 52.651 0 31.825 31.997 11zM96 11l32 20.825-32 20.826-32-20.826L96 11zM0 73.476l31.997-20.825L64 73.476 31.997 94.302 0 73.476zm96-20.825l32 20.825-32 20.826-32-20.826 32-20.825zm-64.508 48.254l32.003-20.826 31.997 20.826-31.997 20.825-32.003-20.825z",
fill: "#0260FF",
"fill-rule": "nonzero"
}));
};

@@ -45,13 +52,14 @@

});
_this.onFirstRender = _this.onFirstRender.bind(_this);
_this.render = _this.render.bind(_this);
_this.onFirstRender = _this.onFirstRender.bind(_assertThisInitialized(_this));
_this.render = _this.render.bind(_assertThisInitialized(_this));
return _this;
}
Dropbox.prototype.install = function install() {
var _proto = Dropbox.prototype;
_proto.install = function install() {
this.view = new ProviderViews(this, {
provider: this.provider
});
// Set default state for Dropbox
}); // Set default state for Dropbox
this.setPluginState({

@@ -66,4 +74,4 @@ authenticated: false,

});
var target = this.opts.target;
var target = this.opts.target;
if (target) {

@@ -74,3 +82,3 @@ this.mount(target, this);

Dropbox.prototype.uninstall = function uninstall() {
_proto.uninstall = function uninstall() {
this.view.tearDown();

@@ -80,7 +88,7 @@ this.unmount();

Dropbox.prototype.onFirstRender = function onFirstRender() {
_proto.onFirstRender = function onFirstRender() {
return this.view.getFolder();
};
Dropbox.prototype.render = function render(state) {
_proto.render = function render(state) {
return this.view.render(state);

@@ -90,2 +98,2 @@ };

return Dropbox;
}(Plugin);
}(Plugin), _class.VERSION = "1.1.0", _temp);
{
"name": "@uppy/dropbox",
"description": "Import files from Dropbox, into Uppy.",
"version": "1.0.2",
"version": "1.1.0",
"license": "MIT",

@@ -23,9 +23,9 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/companion-client": "1.0.1",
"@uppy/provider-views": "1.0.2",
"@uppy/utils": "1.0.2",
"@uppy/companion-client": "1.1.0",
"@uppy/provider-views": "1.1.0",
"@uppy/utils": "1.1.0",
"preact": "8.2.9"
},
"devDependencies": {
"@uppy/core": "1.0.2"
"@uppy/core": "1.1.0"
},

@@ -35,3 +35,3 @@ "peerDependencies": {

},
"gitHead": "5c9e1a836df858254657a59ab8bd4b90035cf8b4"
"gitHead": "28d235fe2fb57d87a399c20883fd6590aa49f4f4"
}

@@ -7,2 +7,4 @@ const { Plugin } = require('@uppy/core')

module.exports = class Dropbox extends Plugin {
static VERSION = require('../package.json').version
constructor (uppy, opts) {

@@ -9,0 +11,0 @@ super(uppy, opts)

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