Socket
Socket
Sign inDemoInstall

@uppy/unsplash

Package Overview
Dependencies
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/unsplash - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

18

lib/Unsplash.js

@@ -6,3 +6,3 @@ import { h } from 'preact';

const packageJson = {
"version": "3.2.1"
"version": "3.2.2"
};

@@ -13,3 +13,2 @@ /**

*/
export default class Unsplash extends UIPlugin {

@@ -21,3 +20,2 @@ constructor(uppy, opts) {

Provider.initPlugin(this, opts, {});
this.icon = () => h("svg", {

@@ -36,7 +34,5 @@ className: "uppy-DashboardTab-iconUnsplash",

})));
if (!this.opts.companionUrl) {
throw new Error('Companion hostname is required, please consult https://uppy.io/docs/companion');
}
this.hostname = this.opts.companionUrl;

@@ -51,3 +47,2 @@ this.provider = new SearchProvider(uppy, {

}
install() {

@@ -62,21 +57,18 @@ this.view = new SearchProviderViews(this, {

} = this.opts;
if (target) {
this.mount(target, this);
}
} // eslint-disable-next-line class-methods-use-this
}
onFirstRender() {// do nothing
// eslint-disable-next-line class-methods-use-this
onFirstRender() {
// do nothing
}
render(state) {
return this.view.render(state);
}
uninstall() {
this.unmount();
}
}
Unsplash.VERSION = packageJson.version;
{
"name": "@uppy/unsplash",
"description": "Import files from Unsplash, the free stock photography resource, into Uppy",
"version": "3.2.1",
"version": "3.2.2",
"license": "MIT",

@@ -24,9 +24,9 @@ "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.3.0",
"@uppy/provider-views": "^3.5.0",
"@uppy/utils": "^5.4.3",
"preact": "^10.5.13"
},
"peerDependencies": {
"@uppy/core": "^3.2.0"
"@uppy/core": "^3.4.0"
},

@@ -33,0 +33,0 @@ "publishConfig": {

@@ -1,5 +0,5 @@

import type { PluginOptions, UIPlugin, PluginTarget } from '@uppy/core'
import type { RequestClientOptions } from '@uppy/companion-client'
import type { PluginTarget, UIPlugin, UIPluginOptions } from '@uppy/core'
interface UnsplashOptions extends PluginOptions, RequestClientOptions {
interface UnsplashOptions extends UIPluginOptions, RequestClientOptions {
target?: PluginTarget

@@ -6,0 +6,0 @@ title?: string

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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