New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/core

Package Overview
Dependencies
Maintainers
5
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/core - npm Package Compare versions

Comparing version 1.10.4 to 1.10.5

6

lib/index.js

@@ -29,3 +29,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var prettyBytes = require('@uppy/utils/lib/prettyBytes');
var prettierBytes = require('@transloadit/prettier-bytes');

@@ -536,3 +536,3 @@ var match = require('mime-match');

backwardsCompat: this.i18n('exceedsSize'),
size: prettyBytes(maxFileSize)
size: prettierBytes(maxFileSize)
}));

@@ -1778,3 +1778,3 @@ }

Uppy.VERSION = "1.10.4";
Uppy.VERSION = "1.10.5";

@@ -1781,0 +1781,0 @@ module.exports = function (opts) {

@@ -169,3 +169,11 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

this.uppy.log("Not installing " + callerPluginName);
throw new Error("Invalid target option given to " + callerPluginName + ". Please make sure that the element\n exists on the page, or that the plugin you are targeting has been installed. Check that the <script> tag initializing Uppy\n comes at the bottom of the page, before the closing </body> tag (see https://github.com/transloadit/uppy/issues/1042).");
var message = "Invalid target option given to " + callerPluginName + ".";
if (typeof target === 'function') {
message += ' The given target is not a Plugin class. ' + 'Please check that you\'re not specifying a React Component instead of a plugin. ' + 'If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: ' + 'run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.';
} else {
message += 'If you meant to target an HTML element, please make sure that the element exists. ' + 'Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. ' + '(see https://github.com/transloadit/uppy/issues/1042)\n\n' + 'If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.';
}
throw new Error(message);
};

@@ -172,0 +180,0 @@

{
"name": "@uppy/core",
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
"version": "1.10.4",
"version": "1.10.5",
"license": "MIT",

@@ -23,4 +23,5 @@ "main": "lib/index.js",

"dependencies": {
"@transloadit/prettier-bytes": "0.0.7",
"@uppy/store-default": "^1.2.1",
"@uppy/utils": "^2.4.4",
"@uppy/utils": "^3.0.0",
"cuid": "^2.1.1",

@@ -32,3 +33,3 @@ "lodash.throttle": "^4.1.1",

},
"gitHead": "5528c6f6eae8873a363be5a45862459f168a7c90"
"gitHead": "6a0152327386cb6dd1ae8aada13f13062d326b61"
}

@@ -5,3 +5,3 @@ const Translator = require('@uppy/utils/lib/Translator')

const throttle = require('lodash.throttle')
const prettyBytes = require('@uppy/utils/lib/prettyBytes')
const prettierBytes = require('@transloadit/prettier-bytes')
const match = require('mime-match')

@@ -480,3 +480,3 @@ const DefaultStore = require('@uppy/store-default')

backwardsCompat: this.i18n('exceedsSize'),
size: prettyBytes(maxFileSize)
size: prettierBytes(maxFileSize)
}))

@@ -483,0 +483,0 @@ }

const fs = require('fs')
const path = require('path')
const prettyBytes = require('@uppy/utils/lib/prettyBytes')
const prettierBytes = require('@transloadit/prettier-bytes')
const Core = require('./index')

@@ -1556,3 +1556,3 @@ const Plugin = require('./Plugin')

}
const errorMessage = `${core.i18n('exceedsSize')} ${prettyBytes(maxFileSize)}`
const errorMessage = `${core.i18n('exceedsSize')} ${prettierBytes(maxFileSize)}`
try {

@@ -1559,0 +1559,0 @@ core.on('restriction-failed', restrictionsViolatedEventMock)

@@ -161,5 +161,16 @@ const preact = require('preact')

this.uppy.log(`Not installing ${callerPluginName}`)
throw new Error(`Invalid target option given to ${callerPluginName}. Please make sure that the element
exists on the page, or that the plugin you are targeting has been installed. Check that the <script> tag initializing Uppy
comes at the bottom of the page, before the closing </body> tag (see https://github.com/transloadit/uppy/issues/1042).`)
let message = `Invalid target option given to ${callerPluginName}.`
if (typeof target === 'function') {
message += ' The given target is not a Plugin class. ' +
'Please check that you\'re not specifying a React Component instead of a plugin. ' +
'If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: ' +
'run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.'
} else {
message += 'If you meant to target an HTML element, please make sure that the element exists. ' +
'Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. ' +
'(see https://github.com/transloadit/uppy/issues/1042)\n\n' +
'If you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.'
}
throw new Error(message)
}

@@ -166,0 +177,0 @@

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

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