Socket
Socket
Sign inDemoInstall

@uppy/file-input

Package Overview
Dependencies
Maintainers
8
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/file-input - npm Package Compare versions

Comparing version 2.1.1 to 3.0.0-beta

31

lib/FileInput.js

@@ -1,16 +0,9 @@

"use strict";
var _core = require("@uppy/core");
var _preact = require("preact");
const toArray = require("@uppy/utils/lib/toArray");
import { UIPlugin } from '@uppy/core';
import toArray from '@uppy/utils/lib/toArray';
import { h } from 'preact';
const packageJson = {
"version": "2.1.1"
"version": "3.0.0-beta"
};
const locale = require("./locale.js");
class FileInput extends _core.UIPlugin {
import locale from './locale.js';
export default class FileInput extends UIPlugin {
constructor(uppy, opts) {

@@ -21,3 +14,3 @@ super(uppy, opts);

this.type = 'acquirer';
this.defaultLocale = locale; // Default options
this.defaultLocale = locale; // Default options, must be kept in sync with @uppy/react/src/FileInput.js.

@@ -85,5 +78,5 @@ const defaultOptions = {

const accept = restrictions.allowedFileTypes ? restrictions.allowedFileTypes.join(',') : null;
return (0, _preact.h)("div", {
return h("div", {
className: "uppy-FileInput-container"
}, (0, _preact.h)("input", {
}, h("input", {
className: "uppy-FileInput-input",

@@ -99,3 +92,3 @@ style: this.opts.pretty && hiddenInputStyle,

}
}), this.opts.pretty && (0, _preact.h)("button", {
}), this.opts.pretty && h("button", {
className: "uppy-FileInput-btn",

@@ -122,4 +115,2 @@ type: "button",

}
FileInput.VERSION = packageJson.version;
module.exports = FileInput;
FileInput.VERSION = packageJson.version;

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

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

@@ -1,4 +0,2 @@

"use strict";
module.exports = {
export default {
strings: {

@@ -5,0 +3,0 @@ // The same key is used for the same purpose by @uppy/robodog's `form()` API, but our

{
"name": "@uppy/file-input",
"description": "Simple UI of a file input button that works with Uppy right out of the box",
"version": "2.1.1",
"version": "3.0.0-beta",
"license": "MIT",

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

"dependencies": {
"@uppy/utils": "^4.1.0",
"@uppy/utils": "^5.0.0-beta",
"preact": "^10.5.13"
},
"peerDependencies": {
"@uppy/core": "^2.3.0"
}
"@uppy/core": "^3.0.0-beta"
},
"stableVersion": "2.1.1"
}

@@ -19,3 +19,3 @@ import { UIPlugin } from '@uppy/core'

// Default options
// Default options, must be kept in sync with @uppy/react/src/FileInput.js.
const defaultOptions = {

@@ -22,0 +22,0 @@ target: null,

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