@uppy/remote-sources
Advanced tools
Comparing version 1.1.2 to 1.2.0
# @uppy/remote-sources | ||
## 1.2.0 | ||
Released: 2024-03-27 | ||
Included in: Uppy v3.24.0 | ||
- @uppy/remote-sources: migrate to TS (Merlijn Vos / #5020) | ||
## 1.0.2 | ||
@@ -4,0 +11,0 @@ |
@@ -14,4 +14,6 @@ function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
import Zoom from '@uppy/zoom'; | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore We don't want TS to generate types for the package.json | ||
const packageJson = { | ||
"version": "1.1.2" | ||
"version": "1.2.0" | ||
}; | ||
@@ -31,6 +33,12 @@ const availablePlugins = { | ||
}; | ||
const defaultOptions = { | ||
sources: Object.keys(availablePlugins) | ||
}; | ||
var _installedPlugins = /*#__PURE__*/_classPrivateFieldLooseKey("installedPlugins"); | ||
export default class RemoteSources extends BasePlugin { | ||
constructor(uppy, opts) { | ||
super(uppy, opts); | ||
super(uppy, { | ||
...defaultOptions, | ||
...opts | ||
}); | ||
Object.defineProperty(this, _installedPlugins, { | ||
@@ -42,9 +50,2 @@ writable: true, | ||
this.type = 'preset'; | ||
const defaultOptions = { | ||
sources: Object.keys(availablePlugins) | ||
}; | ||
this.opts = { | ||
...defaultOptions, | ||
...opts | ||
}; | ||
if (this.opts.companionUrl == null) { | ||
@@ -51,0 +52,0 @@ throw new Error('Please specify companionUrl for RemoteSources to work, see https://uppy.io/docs/remote-sources#companionUrl'); |
{ | ||
"name": "@uppy/remote-sources", | ||
"description": "Uppy plugin that includes all remote sources that Uppy+Companion offer, like Instagram, Google Drive, Dropox, Box, Unsplash, Url etc", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -30,15 +30,15 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/box": "^2.2.0", | ||
"@uppy/dashboard": "^3.7.3", | ||
"@uppy/dropbox": "^3.2.0", | ||
"@uppy/facebook": "^3.2.0", | ||
"@uppy/google-drive": "^3.4.0", | ||
"@uppy/instagram": "^3.2.0", | ||
"@uppy/onedrive": "^3.2.0", | ||
"@uppy/unsplash": "^3.2.3", | ||
"@uppy/url": "^3.5.0", | ||
"@uppy/zoom": "^2.2.0" | ||
"@uppy/box": "^2.3.0", | ||
"@uppy/dashboard": "^3.8.0", | ||
"@uppy/dropbox": "^3.3.0", | ||
"@uppy/facebook": "^3.3.0", | ||
"@uppy/google-drive": "^3.5.0", | ||
"@uppy/instagram": "^3.3.0", | ||
"@uppy/onedrive": "^3.3.0", | ||
"@uppy/unsplash": "^3.3.0", | ||
"@uppy/url": "^3.6.0", | ||
"@uppy/zoom": "^2.3.0" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.9.1" | ||
"@uppy/core": "^3.10.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "publishConfig": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
19626
245
2
+ Addedpreact@10.25.2(transitive)
- Removedpreact@10.25.1(transitive)
Updated@uppy/box@^2.3.0
Updated@uppy/dashboard@^3.8.0
Updated@uppy/dropbox@^3.3.0
Updated@uppy/facebook@^3.3.0
Updated@uppy/google-drive@^3.5.0
Updated@uppy/instagram@^3.3.0
Updated@uppy/onedrive@^3.3.0
Updated@uppy/unsplash@^3.3.0
Updated@uppy/url@^3.6.0
Updated@uppy/zoom@^2.3.0