@ckeditor/ckeditor5-upload
Advanced tools
Comparing version 19.0.1 to 20.0.0
{ | ||
"name": "@ckeditor/ckeditor5-upload", | ||
"version": "19.0.1", | ||
"version": "20.0.0", | ||
"description": "Upload Feature for CKEditor 5.", | ||
@@ -12,8 +12,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^19.0.1", | ||
"@ckeditor/ckeditor5-ui": "^19.0.1", | ||
"@ckeditor/ckeditor5-utils": "^19.0.1" | ||
"@ckeditor/ckeditor5-core": "^20.0.0", | ||
"@ckeditor/ckeditor5-ui": "^20.0.0", | ||
"@ckeditor/ckeditor5-utils": "^20.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0", | ||
"node": ">=12.0.0", | ||
"npm": ">=5.7.1" | ||
@@ -20,0 +20,0 @@ }, |
@@ -204,2 +204,5 @@ /** | ||
// Use the withCredentials flag if specified. | ||
const withCredentials = this.options.withCredentials || false; | ||
for ( const headerName of Object.keys( headers ) ) { | ||
@@ -209,2 +212,4 @@ this.xhr.setRequestHeader( headerName, headers[ headerName ] ); | ||
this.xhr.withCredentials = withCredentials; | ||
// Prepare the form data. | ||
@@ -287,1 +292,23 @@ const data = new FormData(); | ||
*/ | ||
/** | ||
* This flag enables the | ||
* [`withCredentials`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials) | ||
* property of the request sent to the server during the upload. It affects cross-site requests only and, for instance, | ||
* allows credentials such as cookies to be sent along with the request. | ||
* | ||
* ClassicEditor | ||
* .create( editorElement, { | ||
* simpleUpload: { | ||
* withCredentials: true | ||
* } | ||
* } ); | ||
* .then( ... ) | ||
* .catch( ... ); | ||
* | ||
* Learn more about the server application requirements in the | ||
* {@glink features/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section | ||
* of the feature guide. | ||
* | ||
* @member {Boolean} [module:upload/adapters/simpleuploadadapter~SimpleUploadConfig#withCredentials=false] | ||
*/ |
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
92865
1196
+ Added@ckeditor/ckeditor5-core@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@20.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-engine@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-ui@19.0.1(transitive)
- Removed@ckeditor/ckeditor5-utils@19.0.2(transitive)