Socket
Socket
Sign inDemoInstall

@uppy/provider-views

Package Overview
Dependencies
Maintainers
5
Versions
108
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.11.1 to 1.11.2

18

lib/ProviderView/ProviderView.js

@@ -20,2 +20,4 @@ var _class, _temp;

var findIndex = require('@uppy/utils/lib/findIndex');
var isPreviewSupported = require('@uppy/utils/lib/isPreviewSupported');

@@ -25,17 +27,5 @@

var CloseWrapper = require('../CloseWrapper');
/**
* Array.prototype.findIndex ponyfill for old browsers.
*/
var CloseWrapper = require('../CloseWrapper'); // location.origin does not exist in IE
function findIndex(array, predicate) {
for (var i = 0; i < array.length; i++) {
if (predicate(array[i])) return i;
}
return -1;
} // location.origin does not exist in IE
function getOrigin() {

@@ -666,2 +656,2 @@ if ('origin' in location) {

return ProviderView;
}(), _class.VERSION = "1.11.1", _temp);
}(), _class.VERSION = "1.11.2", _temp);

@@ -290,2 +290,2 @@ var _class, _temp;

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

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

"dependencies": {
"@uppy/utils": "^3.4.1",
"@uppy/utils": "^3.4.2",
"classnames": "^2.2.6",

@@ -30,3 +30,3 @@ "preact": "8.2.9"

},
"gitHead": "2eabc3309983165b3f275c7b6f21fc0e899d11ba"
"gitHead": "4bf107236340dc98f8584f15a06e13ffa9fc31f4"
}

@@ -8,2 +8,3 @@ const { h } = require('preact')

const getFileType = require('@uppy/utils/lib/getFileType')
const findIndex = require('@uppy/utils/lib/findIndex')
const isPreviewSupported = require('@uppy/utils/lib/isPreviewSupported')

@@ -13,12 +14,2 @@ const SharedHandler = require('../SharedHandler')

/**
* Array.prototype.findIndex ponyfill for old browsers.
*/
function findIndex (array, predicate) {
for (let i = 0; i < array.length; i++) {
if (predicate(array[i])) return i
}
return -1
}
// location.origin does not exist in IE

@@ -25,0 +16,0 @@ function getOrigin () {

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