@uppy/onedrive
Advanced tools
Comparing version 3.1.1 to 3.1.2
# @uppy/onedrive | ||
## 3.1.2 | ||
Released: 2023-07-13 | ||
Included in: Uppy v3.12.0 | ||
- @uppy/box,@uppy/companion,@uppy/dropbox,@uppy/google-drive,@uppy/onedrive,@uppy/provider-views: Load Google Drive / OneDrive lists 5-10x faster & always load all files (Merlijn Vos / #4513) | ||
## 3.0.1 | ||
@@ -4,0 +11,0 @@ |
@@ -6,3 +6,3 @@ import { h } from 'preact'; | ||
const packageJson = { | ||
"version": "3.1.1" | ||
"version": "3.1.2" | ||
}; | ||
@@ -16,3 +16,2 @@ import locale from './locale.js'; | ||
this.title = this.opts.title || 'OneDrive'; | ||
this.icon = () => h("svg", { | ||
@@ -40,3 +39,2 @@ "aria-hidden": "true", | ||
}))); | ||
this.provider = new Provider(uppy, { | ||
@@ -55,6 +53,6 @@ companionUrl: this.opts.companionUrl, | ||
} | ||
install() { | ||
this.view = new ProviderViews(this, { | ||
provider: this.provider | ||
provider: this.provider, | ||
loadAllFiles: true | ||
}); | ||
@@ -64,3 +62,2 @@ const { | ||
} = this.opts; | ||
if (target) { | ||
@@ -70,3 +67,2 @@ this.mount(target, this); | ||
} | ||
uninstall() { | ||
@@ -76,12 +72,9 @@ this.view.tearDown(); | ||
} | ||
onFirstRender() { | ||
return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]); | ||
} | ||
render(state) { | ||
return this.view.render(state); | ||
} | ||
} | ||
OneDrive.VERSION = packageJson.version; |
{ | ||
"name": "@uppy/onedrive", | ||
"description": "Import files from OneDrive, into Uppy.", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -24,10 +24,10 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/companion-client": "^3.1.3", | ||
"@uppy/provider-views": "^3.3.0", | ||
"@uppy/utils": "^5.3.0", | ||
"@uppy/companion-client": "^3.2.1", | ||
"@uppy/provider-views": "^3.4.0", | ||
"@uppy/utils": "^5.4.1", | ||
"preact": "^10.5.13" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.2.0" | ||
"@uppy/core": "^3.3.1" | ||
} | ||
} |
@@ -49,2 +49,3 @@ import { h } from 'preact' | ||
provider: this.provider, | ||
loadAllFiles: true, | ||
}) | ||
@@ -51,0 +52,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
17586
167
Updated@uppy/provider-views@^3.4.0
Updated@uppy/utils@^5.4.1