Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor-cloud-services-core

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor-cloud-services-core - npm Package Compare versions

Comparing version 18.0.0 to 19.0.0

7

CHANGELOG.md
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 @@

4

package.json
{
"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.

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