@uppy/google-drive
Advanced tools
Comparing version 1.5.20 to 1.5.21
@@ -54,2 +54,4 @@ var _class, _temp; | ||
companionHeaders: _this.opts.companionHeaders || _this.opts.serverHeaders, | ||
companionKeysParams: _this.opts.companionKeysParams, | ||
companionCookiesRule: _this.opts.companionCookiesRule, | ||
provider: 'drive', | ||
@@ -82,3 +84,3 @@ pluginId: _this.id | ||
_proto.onFirstRender = function onFirstRender() { | ||
return this.view.getFolder('root', '/'); | ||
return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder('root', '/')]); | ||
}; | ||
@@ -91,2 +93,2 @@ | ||
return GoogleDrive; | ||
}(Plugin), _class.VERSION = "1.5.20", _temp); | ||
}(Plugin), _class.VERSION = "1.5.21", _temp); |
{ | ||
"name": "@uppy/google-drive", | ||
"description": "The Google Drive plugin for Uppy lets users import files from their Google Drive account", | ||
"version": "1.5.20", | ||
"version": "1.5.21", | ||
"license": "MIT", | ||
@@ -24,5 +24,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^1.7.0", | ||
"@uppy/provider-views": "^1.9.2", | ||
"@uppy/utils": "^3.3.0", | ||
"@uppy/companion-client": "^1.8.0", | ||
"@uppy/provider-views": "^1.10.0", | ||
"@uppy/utils": "^3.3.1", | ||
"preact": "8.2.9" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "1493a807fe83f7b465a8f7562bfb5631b1945e5b" | ||
"gitHead": "e1efe07927e7c47b94bba5540d9c0f6fd1c4c514" | ||
} |
@@ -6,3 +6,3 @@ # @uppy/google-drive | ||
<a href="https://www.npmjs.com/package/@uppy/google-drive"><img src="https://img.shields.io/npm/v/@uppy/google-drive.svg?style=flat-square"></a> | ||
<a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a> | ||
<img src="https://github.com/transloadit/uppy/workflows/Tests/badge.svg" alt="CI status for Uppy tests"> <img src="https://github.com/transloadit/uppy/workflows/Companion/badge.svg" alt="CI status for Companion tests"> <img src="https://github.com/transloadit/uppy/workflows/End-to-end%20tests/badge.svg" alt="CI status for browser tests"> | ||
@@ -9,0 +9,0 @@ The Google Drive plugin for Uppy lets users import files from their Google Drive account. |
@@ -27,2 +27,4 @@ const { Plugin } = require('@uppy/core') | ||
companionHeaders: this.opts.companionHeaders || this.opts.serverHeaders, | ||
companionKeysParams: this.opts.companionKeysParams, | ||
companionCookiesRule: this.opts.companionCookiesRule, | ||
provider: 'drive', | ||
@@ -53,3 +55,6 @@ pluginId: this.id | ||
onFirstRender () { | ||
return this.view.getFolder('root', '/') | ||
return Promise.all([ | ||
this.provider.fetchPreAuthToken(), | ||
this.view.getFolder('root', '/') | ||
]) | ||
} | ||
@@ -56,0 +61,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16544
179
Updated@uppy/provider-views@^1.10.0
Updated@uppy/utils@^3.3.1