@ckeditor/ckeditor-cloud-services-core
Advanced tools
Comparing version 18.0.0 to 19.0.0
Changelog | ||
========= | ||
## [19.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/compare/v18.0.0...v19.0.0) (2020-04-29) | ||
### Features | ||
* Exposed the `refreshToken` method. ([013b89e](https://github.com/ckeditor/ckeditor-cloud-services-core/commit/013b89e)) | ||
## [18.0.0](https://github.com/ckeditor/ckeditor-cloud-services-core/compare/v17.0.0...v18.0.0) (2020-03-19) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor-cloud-services-core", | ||
"version": "18.0.0", | ||
"version": "19.0.0", | ||
"description": "CKEditor Cloud Services Core API.", | ||
@@ -10,3 +10,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-utils": "^18.0.0" | ||
"@ckeditor/ckeditor5-utils": "^19.0.0" | ||
}, | ||
@@ -13,0 +13,0 @@ "devDependencies": { |
@@ -13,3 +13,3 @@ CKEditor Cloud Services Core | ||
See the [`@ckeditor/ckeditor-cloud-services-core` package](https://ckeditor.com/docs/ckeditor5/latest/api/alignment.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). | ||
See the [`@ckeditor/ckeditor-cloud-services-core` package](https://ckeditor.com/docs/ckeditor5/latest/api/cloud-services-core.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). | ||
@@ -16,0 +16,0 @@ ## License |
@@ -92,3 +92,3 @@ /** | ||
if ( !this.value ) { | ||
this._refreshToken() | ||
this.refreshToken() | ||
.then( resolve ) | ||
@@ -106,6 +106,5 @@ .catch( reject ); | ||
* Refresh token method. Useful in a method form as it can be override in tests. | ||
* | ||
* @protected | ||
* @returns {Promise.<String>} | ||
*/ | ||
_refreshToken() { | ||
refreshToken() { | ||
return this._refresh() | ||
@@ -129,3 +128,3 @@ .then( value => this.set( 'value', value ) ) | ||
_startRefreshing() { | ||
this._refreshInterval = setInterval( () => this._refreshToken(), this._options.refreshInterval ); | ||
this._refreshInterval = setInterval( () => this.refreshToken(), this._options.refreshInterval ); | ||
} | ||
@@ -163,3 +162,3 @@ | ||
/** | ||
* This function is called in a defined interval by the {@link ~Token} class. | ||
* This function is called in a defined interval by the {@link ~Token} class. It also can be invoked manually. | ||
* It should return a promise, which resolves with the new token value. | ||
@@ -166,0 +165,0 @@ * If any error occurs it should return a rejected promise with an error message. |
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
19581
490
+ Added@ckeditor/ckeditor5-utils@19.0.2(transitive)
- Removed@ckeditor/ckeditor5-utils@18.0.0(transitive)