Socket
Socket
Sign inDemoInstall

@uppy/zoom

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/zoom - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

src/index.ts

7

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

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

20

lib/Zoom.js

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

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

@@ -26,2 +29,3 @@ "aria-hidden": "true",

}));
this.opts.companionAllowedHosts = getAllowedHosts(this.opts.companionAllowedHosts, this.opts.companionUrl);
this.provider = new Provider(uppy, {

@@ -57,4 +61,4 @@ companionUrl: this.opts.companionUrl,

}
onFirstRender() {
return Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]);
async onFirstRender() {
await Promise.all([this.provider.fetchPreAuthToken(), this.view.getFolder()]);
}

@@ -61,0 +65,0 @@ render(state) {

10

package.json
{
"name": "@uppy/zoom",
"description": "Import files from zoom, into Uppy.",
"version": "2.2.0",
"version": "2.3.0",
"license": "MIT",

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

"dependencies": {
"@uppy/companion-client": "^3.7.0",
"@uppy/provider-views": "^3.8.0",
"@uppy/utils": "^5.7.0",
"@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.8.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

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