Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

@uppy/core

Package Overview
Dependencies
Maintainers
5
Versions
163
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
+14
-3
dist/style.css

@@ -105,3 +105,4 @@ /**

[data-uppy-theme="dark"] .uppy-c-textInput:focus {
border-color: #cfcfcf; }
border-color: #525252;
box-shadow: none; }

@@ -145,4 +146,8 @@ .uppy-c-btn {

color: #eaeaea; }
[data-uppy-theme="dark"] .uppy-c-btn-primary:focus {
box-shadow: 0 0 0 3px rgba(34, 117, 215, 0.6); }
[data-uppy-theme="dark"] .uppy-c-btn-primary:focus {
outline: none; }
[data-uppy-theme="dark"] .uppy-c-btn-primary::-moz-focus-inner {
border: 0; }
[data-uppy-theme="dark"] .uppy-c-btn-primary:focus {
box-shadow: 0 0 0 2px rgba(170, 225, 255, 0.85); }

@@ -165,2 +170,8 @@ .uppy-c-btn-link {

color: #eaeaea; }
[data-uppy-theme="dark"] .uppy-c-btn-link:focus {
outline: none; }
[data-uppy-theme="dark"] .uppy-c-btn-link::-moz-focus-inner {
border: 0; }
[data-uppy-theme="dark"] .uppy-c-btn-link:focus {
box-shadow: 0 0 0 2px rgba(170, 225, 255, 0.85); }
[data-uppy-theme="dark"] .uppy-c-btn-link:hover {

@@ -167,0 +178,0 @@ color: #939393; }

+1
-1

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

.uppy-Root{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;position:relative;color:#333}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.UppyIcon{max-width:100%;max-height:100%;fill:currentColor;display:inline-block;overflow:hidden}.uppy-u-reset{-webkit-appearance:none;line-height:1;padding:0;color:inherit;-webkit-backface-visibility:visible;backface-visibility:visible;background:none;border:none;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;box-shadow:none;clear:none;cursor:auto;display:inline;empty-cells:show;float:none;font-family:inherit;font-size:inherit;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;z-index:auto}.uppy-c-textInput{border:1px solid #ddd;border-radius:4px;font-size:14px;line-height:1.5;padding:6px 8px;background-color:#fff}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:rgba(34,117,215,.6);outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.15)}[data-uppy-theme=dark] .uppy-c-textInput{background-color:#333;border-color:#333;color:#eaeaea}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#cfcfcf}.uppy-c-btn{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;font-family:inherit;font-size:16px;line-height:1;font-weight:500;transition-property:background-color,color;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{font-size:14px;padding:10px 18px;border-radius:4px;background-color:#2275d7;color:#fff}.uppy-c-btn-primary:hover{background-color:#1b5dab}.uppy-c-btn-primary:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.4)}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 3px rgba(34,117,215,.6)}.uppy-c-btn-link{font-size:14px;line-height:1;padding:10px 15px;border-radius:4px;background-color:transparent;color:#525252}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.25)}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}.uppy-c-btn--small{font-size:.9em;padding:7px 16px;border-radius:2px}.uppy-size--md .uppy-c-btn--small{padding:8px 10px;border-radius:2px}
.uppy-Root{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;position:relative;color:#333}.uppy-Root *,.uppy-Root :after,.uppy-Root :before{box-sizing:inherit}.uppy-Root [hidden]{display:none}.UppyIcon{max-width:100%;max-height:100%;fill:currentColor;display:inline-block;overflow:hidden}.uppy-u-reset{-webkit-appearance:none;line-height:1;padding:0;color:inherit;-webkit-backface-visibility:visible;backface-visibility:visible;background:none;border:none;border-collapse:separate;border-image:none;border-radius:0;border-spacing:0;box-shadow:none;clear:none;cursor:auto;display:inline;empty-cells:show;float:none;font-family:inherit;font-size:inherit;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;z-index:auto}.uppy-c-textInput{border:1px solid #ddd;border-radius:4px;font-size:14px;line-height:1.5;padding:6px 8px;background-color:#fff}.uppy-size--md .uppy-c-textInput{padding:8px 10px}.uppy-c-textInput:focus{border-color:rgba(34,117,215,.6);outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.15)}[data-uppy-theme=dark] .uppy-c-textInput{background-color:#333;border-color:#333;color:#eaeaea}[data-uppy-theme=dark] .uppy-c-textInput:focus{border-color:#525252;box-shadow:none}.uppy-c-btn{display:inline-block;text-align:center;white-space:nowrap;vertical-align:middle;font-family:inherit;font-size:16px;line-height:1;font-weight:500;transition-property:background-color,color;transition-duration:.3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.uppy-c-btn:not(:disabled):not(.disabled){cursor:pointer}.uppy-c-btn::-moz-focus-inner{border:0}.uppy-c-btn-primary{font-size:14px;padding:10px 18px;border-radius:4px;background-color:#2275d7;color:#fff}.uppy-c-btn-primary:hover{background-color:#1b5dab}.uppy-c-btn-primary:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.4)}.uppy-size--md .uppy-c-btn-primary{padding:13px 22px}[data-uppy-theme=dark] .uppy-c-btn-primary{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-primary::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-primary:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}.uppy-c-btn-link{font-size:14px;line-height:1;padding:10px 15px;border-radius:4px;background-color:transparent;color:#525252}.uppy-c-btn-link:hover{color:#333}.uppy-c-btn-link:focus{outline:none;box-shadow:0 0 0 3px rgba(34,117,215,.25)}.uppy-size--md .uppy-c-btn-link{padding:13px 18px}[data-uppy-theme=dark] .uppy-c-btn-link{color:#eaeaea}[data-uppy-theme=dark] .uppy-c-btn-link:focus{outline:none}[data-uppy-theme=dark] .uppy-c-btn-link::-moz-focus-inner{border:0}[data-uppy-theme=dark] .uppy-c-btn-link:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}[data-uppy-theme=dark] .uppy-c-btn-link:hover{color:#939393}.uppy-c-btn--small{font-size:.9em;padding:7px 16px;border-radius:2px}.uppy-size--md .uppy-c-btn--small{padding:8px 10px;border-radius:2px}

@@ -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"
}

@@ -120,3 +120,4 @@ /**

[data-uppy-theme="dark"] &:focus {
border-color: $gray-300;
border-color: $gray-700;
box-shadow: none;
}

@@ -171,7 +172,4 @@ }

color: $gray-200;
@include blue-border-focus--dark;
}
[data-uppy-theme="dark"] &:focus {
box-shadow: 0 0 0 3px rgba($blue, 0.6);
}
}

@@ -202,2 +200,3 @@

color: $gray-200;
@include blue-border-focus--dark;
}

@@ -204,0 +203,0 @@

@@ -51,2 +51,10 @@ // Utility Mixins

@mixin blue-border-focus--dark() {
@include clear-focus();
&:focus {
box-shadow: 0 0 0 2px rgba($lightblue, 0.85);
}
}
@mixin clear-focus() {

@@ -53,0 +61,0 @@ &:focus {

@@ -13,3 +13,5 @@ // Fonts

$green: #1bb240 !default;
$darkgreen: #1c8b37 !default;
$blue: #2275d7 !default;
$lightblue: #aae1ff !default;

@@ -30,3 +32,3 @@ $gray-50: #fafafa !default;

$highlight: #eceef2;
$highlight--dark: #0DB4CE;
$highlight--dark: #02baf2;

@@ -33,0 +35,0 @@ $uppy-pink: #eb2177;

@@ -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 @@