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

@uppy/unsplash

Package Overview
Dependencies
Maintainers
5
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 3.2.3 to 3.3.0

src/index.ts

7

CHANGELOG.md
# @uppy/unsplash
## 3.3.0
Released: 2024-03-27
Included in: Uppy v3.24.0
- @uppy/unsplash: refactor to TypeScript (Murderlon / #4979)
## 3.0.1

@@ -4,0 +11,0 @@

19

lib/Unsplash.js

@@ -1,18 +0,18 @@

import { h } from 'preact';
import { getAllowedHosts, tokenStorage, SearchProvider } from '@uppy/companion-client';
import { UIPlugin } from '@uppy/core';
import { SearchProvider, Provider } from '@uppy/companion-client';
import { SearchProviderViews } from '@uppy/provider-views';
import { h } from 'preact';
// 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": "3.2.3"
"version": "3.3.0"
};
/**
* Unsplash
*
*/
export default class Unsplash extends UIPlugin {
constructor(uppy, opts) {
super(uppy, opts);
this.type = 'acquirer';
this.files = [];
this.storage = this.opts.storage || tokenStorage;
this.id = this.opts.id || 'Unsplash';
this.title = this.opts.title || 'Unsplash';
Provider.initPlugin(this, opts, {});
this.icon = () => h("svg", {

@@ -35,2 +35,3 @@ className: "uppy-DashboardTab-iconUnsplash",

this.hostname = this.opts.companionUrl;
this.opts.companionAllowedHosts = getAllowedHosts(this.opts.companionAllowedHosts, this.opts.companionUrl);
this.provider = new SearchProvider(uppy, {

@@ -59,3 +60,3 @@ companionUrl: this.opts.companionUrl,

// eslint-disable-next-line class-methods-use-this
onFirstRender() {
async onFirstRender() {
// do nothing

@@ -62,0 +63,0 @@ }

{
"name": "@uppy/unsplash",
"description": "Import files from Unsplash, the free stock photography resource, into Uppy",
"version": "3.2.3",
"version": "3.3.0",
"license": "MIT",

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

"dependencies": {
"@uppy/companion-client": "^3.5.0",
"@uppy/provider-views": "^3.6.0",
"@uppy/utils": "^5.5.2",
"@uppy/companion-client": "^3.8.0",
"@uppy/provider-views": "^3.11.0",
"@uppy/utils": "^5.7.5",
"preact": "^10.5.13"
},
"peerDependencies": {
"@uppy/core": "^3.6.0"
"@uppy/core": "^3.10.0"
},

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

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