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

@uppy/provider-views

Package Overview
Dependencies
Maintainers
5
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/provider-views - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

6

lib/index.js

@@ -74,3 +74,3 @@ var _class, _temp;

/**
* @param {Object} instance of the plugin
* @param {object} instance of the plugin
*/

@@ -188,3 +188,3 @@ function ProviderView(plugin, opts) {

*
* @param {Object} Folder
* @param {object} Folder
* @param {string} title Folder title

@@ -735,2 +735,2 @@ */

return ProviderView;
}(), _class.VERSION = "1.2.0", _temp);
}(), _class.VERSION = "1.3.0", _temp);
{
"name": "@uppy/provider-views",
"description": "View library for Uppy remote provider plugins.",
"version": "1.2.0",
"version": "1.3.0",
"license": "MIT",

@@ -22,13 +22,10 @@ "main": "lib/index.js",

"dependencies": {
"@uppy/utils": "1.2.0",
"@uppy/utils": "^1.3.0",
"classnames": "^2.2.6",
"preact": "8.2.9"
},
"devDependencies": {
"@uppy/core": "1.2.0"
},
"peerDependencies": {
"@uppy/core": "^1.0.0"
},
"gitHead": "bd2beedcffbaa840de7069860e341f02268ddbb1"
"gitHead": "056a7114a15fc7480a4014342d7f2c19305dc96c"
}

@@ -44,3 +44,3 @@ const { h, Component } = require('preact')

/**
* @param {Object} instance of the plugin
* @param {object} instance of the plugin
*/

@@ -125,4 +125,4 @@ constructor (plugin, opts) {

(res) => {
let folders = []
let files = []
const folders = []
const files = []
let updatedDirectories

@@ -149,3 +149,3 @@

*
* @param {Object} Folder
* @param {object} Folder
* @param {string} title Folder title

@@ -249,3 +249,3 @@ */

let sortedFiles = files.sort((fileA, fileB) => {
const sortedFiles = files.sort((fileA, fileB) => {
if (sorting === 'titleDescending') {

@@ -257,3 +257,3 @@ return fileB.name.localeCompare(fileA.name)

let sortedFolders = folders.sort((folderA, folderB) => {
const sortedFolders = folders.sort((folderA, folderB) => {
if (sorting === 'titleDescending') {

@@ -276,5 +276,5 @@ return folderB.name.localeCompare(folderA.name)

let sortedFiles = files.sort((fileA, fileB) => {
let a = new Date(fileA.modifiedDate)
let b = new Date(fileB.modifiedDate)
const sortedFiles = files.sort((fileA, fileB) => {
const a = new Date(fileA.modifiedDate)
const b = new Date(fileB.modifiedDate)

@@ -287,5 +287,5 @@ if (sorting === 'dateDescending') {

let sortedFolders = folders.sort((folderA, folderB) => {
let a = new Date(folderA.modifiedDate)
let b = new Date(folderB.modifiedDate)
const sortedFolders = folders.sort((folderA, folderB) => {
const a = new Date(folderA.modifiedDate)
const b = new Date(folderB.modifiedDate)

@@ -315,5 +315,5 @@ if (sorting === 'dateDescending') {

let sortedFiles = files.sort((fileA, fileB) => {
let a = fileA.size
let b = fileB.size
const sortedFiles = files.sort((fileA, fileB) => {
const a = fileA.size
const b = fileB.size

@@ -352,3 +352,3 @@ if (sorting === 'sizeDescending') {

let state = this.plugin.getPluginState()
let folders = state.selectedFolders || {}
const folders = state.selectedFolders || {}
if (folderId in folders && folders[folderId].loading) {

@@ -360,3 +360,3 @@ return

return this.provider.list(folder.requestPath).then((res) => {
let files = []
const files = []
res.items.forEach((item) => {

@@ -400,4 +400,4 @@ if (!item.isFolder) {

e.currentTarget.focus()
let { folders, files } = this.plugin.getPluginState()
let items = this.filterItems(folders.concat(files))
const { folders, files } = this.plugin.getPluginState()
const items = this.filterItems(folders.concat(files))

@@ -404,0 +404,0 @@ // Shift-clicking selects a single consecutive list of items

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