Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
# @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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50306
690