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

@uppy/url

Package Overview
Dependencies
Maintainers
8
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/url - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

7

CHANGELOG.md
# @uppy/url
## 3.0.0-beta.2
Released: 2022-08-03
Included in: Uppy v3.0.0-beta.4
- @uppy/url: remove private methods from public API (Antoine du Hamel / #3934)
## 2.2.0

@@ -4,0 +11,0 @@

16

lib/Url.js

@@ -8,3 +8,3 @@ import { h } from 'preact';

const packageJson = {
"version": "3.0.0-beta.1"
"version": "3.0.0-beta.2"
};

@@ -129,5 +129,5 @@ import locale from './locale.js';

const url = this.addProtocolToURL(protocollessUrl);
const url = addProtocolToURL(protocollessUrl);
if (!this.checkIfCorrectURL(url)) {
if (!checkIfCorrectURL(url)) {
this.uppy.log(`[URL] Incorrect URL entered: ${url}`);

@@ -143,3 +143,3 @@ this.uppy.info(this.i18n('enterCorrectUrl'), 'error', 4000);

source: this.id,
name: this.getFileNameFromUrl(url),
name: getFileNameFromUrl(url),
type: meta.type,

@@ -219,8 +219,6 @@ data: {

} // TODO: remove from prototype in the next major.
} // This is defined outside of the class body because it's not using `this`, but
// we still want it available on the prototype so the Dashboard can access it.
Url.VERSION = packageJson.version;
Url.prototype.addProtocolToURL = addProtocolToURL;
Url.prototype.canHandleRootDrop = canHandleRootDrop;
Url.prototype.checkIfCorrectURL = checkIfCorrectURL;
Url.prototype.getFileNameFromUrl = getFileNameFromUrl;
Url.prototype.canHandleRootDrop = canHandleRootDrop;
{
"name": "@uppy/url",
"description": "The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"license": "MIT",

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

"peerDependencies": {
"@uppy/core": "^3.0.0-beta.1"
"@uppy/core": "^3.0.0-beta.3"
},
"stableVersion": "2.1.1"
}

@@ -109,4 +109,4 @@ import { h } from 'preact'

async addFile (protocollessUrl, optionalMeta = undefined) {
const url = this.addProtocolToURL(protocollessUrl)
if (!this.checkIfCorrectURL(url)) {
const url = addProtocolToURL(protocollessUrl)
if (!checkIfCorrectURL(url)) {
this.uppy.log(`[URL] Incorrect URL entered: ${url}`)

@@ -123,3 +123,3 @@ this.uppy.info(this.i18n('enterCorrectUrl'), 'error', 4000)

source: this.id,
name: this.getFileNameFromUrl(url),
name: getFileNameFromUrl(url),
type: meta.type,

@@ -192,6 +192,4 @@ data: {

// TODO: remove from prototype in the next major.
Url.prototype.addProtocolToURL = addProtocolToURL
// This is defined outside of the class body because it's not using `this`, but
// we still want it available on the prototype so the Dashboard can access it.
Url.prototype.canHandleRootDrop = canHandleRootDrop
Url.prototype.checkIfCorrectURL = checkIfCorrectURL
Url.prototype.getFileNameFromUrl = getFileNameFromUrl

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