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

@uppy/unsplash

Package Overview
Dependencies
Maintainers
8
Versions
46
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 2.1.0 to 3.0.0-beta

4

lib/index.js

@@ -1,3 +0,1 @@

"use strict";
module.exports = require("./Unsplash.js");
export { default } from "./Unsplash.js";

@@ -1,13 +0,7 @@

"use strict";
var _preact = require("preact");
var _core = require("@uppy/core");
var _companionClient = require("@uppy/companion-client");
var _providerViews = require("@uppy/provider-views");
import { h } from 'preact';
import { UIPlugin } from '@uppy/core';
import { SearchProvider, Provider } from '@uppy/companion-client';
import { SearchProviderViews } from '@uppy/provider-views';
const packageJson = {
"version": "2.1.0"
"version": "3.0.0-beta"
};

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

class Unsplash extends _core.UIPlugin {
export default class Unsplash extends UIPlugin {
constructor(uppy, opts) {

@@ -25,6 +19,5 @@ super(uppy, opts);

this.title = this.opts.title || 'Unsplash';
Provider.initPlugin(this, opts, {});
_companionClient.Provider.initPlugin(this, opts, {});
this.icon = () => (0, _preact.h)("svg", {
this.icon = () => h("svg", {
viewBox: "0 0 32 32",

@@ -34,6 +27,6 @@ height: "32",

"aria-hidden": "true"
}, (0, _preact.h)("path", {
}, h("path", {
d: "M46.575 10.883v-9h12v9zm12 5h10v18h-32v-18h10v9h12z",
fill: "#fff"
}), (0, _preact.h)("rect", {
}), h("rect", {
className: "uppy-ProviderIconBg",

@@ -43,3 +36,3 @@ width: "32",

rx: "16"
}), (0, _preact.h)("path", {
}), h("path", {
d: "M13 12.5V8h6v4.5zm6 2.5h5v9H8v-9h5v4.5h6z",

@@ -54,3 +47,3 @@ fill: "#fff"

this.hostname = this.opts.companionUrl;
this.provider = new _companionClient.SearchProvider(uppy, {
this.provider = new SearchProvider(uppy, {
companionUrl: this.opts.companionUrl,

@@ -65,3 +58,3 @@ companionHeaders: this.opts.companionHeaders,

install() {
this.view = new _providerViews.SearchProviderViews(this, {
this.view = new SearchProviderViews(this, {
provider: this.provider,

@@ -92,4 +85,2 @@ viewType: 'unsplash'

}
Unsplash.VERSION = packageJson.version;
module.exports = Unsplash;
Unsplash.VERSION = packageJson.version;
{
"name": "@uppy/unsplash",
"description": "Import files from Unsplash, the free stock photography resource, into Uppy",
"version": "2.1.0",
"version": "3.0.0-beta",
"license": "MIT",

@@ -24,13 +24,14 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/companion-client": "^2.2.0",
"@uppy/provider-views": "^2.1.1",
"@uppy/utils": "^4.1.0",
"@uppy/companion-client": "^3.0.0-beta",
"@uppy/provider-views": "^3.0.0-beta",
"@uppy/utils": "^5.0.0-beta",
"preact": "^10.5.13"
},
"peerDependencies": {
"@uppy/core": "^2.3.0"
"@uppy/core": "^3.0.0-beta"
},
"publishConfig": {
"access": "public"
}
},
"stableVersion": "2.1.0"
}

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