ソースを参照

Merge pull request #27 from ckeditor/t/ckeditor5/924

Other: Prepared package to add to ckeditor/ckeditor5 repository. See ckeditor/ckeditor5#924.
Piotrek Koszuliński 6 年 前
コミット
d76ae5e01a

+ 12 - 0
packages/ckeditor-cloud-services-core/.editorconfig

@@ -0,0 +1,12 @@
+# Configurations to normalize the IDE behavior.
+# http://editorconfig.org/
+
+root = true
+
+[*]
+indent_style = tab
+tab_width = 4
+charset = utf-8
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true

+ 1 - 1
packages/ckeditor-cloud-services-core/.eslintrc.js

@@ -1,6 +1,6 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* eslint-env node */

+ 18 - 0
packages/ckeditor-cloud-services-core/.gitattributes

@@ -0,0 +1,18 @@
+*			text=auto
+
+*.htaccess	eol=lf
+*.cgi		eol=lf
+*.sh		eol=lf
+
+*.css		text
+*.htm		text
+*.html		text
+*.js		text
+*.json		text
+*.php		text
+*.txt		text
+*.md		text
+
+*.png		-text
+*.gif		-text
+*.jpg		-text

+ 9 - 0
packages/ckeditor-cloud-services-core/.github/PULL_REQUEST_TEMPLATE.md

@@ -0,0 +1,9 @@
+### Suggested merge commit message ([convention](https://github.com/ckeditor/ckeditor5-design/wiki/Git-commit-message-convention))
+
+Type: Message. Closes #000.
+
+---
+
+### Additional information
+
+*For example – encountered issues, assumptions you had to make, other affected tickets, etc.*

+ 0 - 1
packages/ckeditor-cloud-services-core/.gitignore

@@ -1,5 +1,4 @@
 node_modules
 coverage
 .idea
-
 package-lock.json

ファイルの差分が大きいため隠しています
+ 23 - 10
packages/ckeditor-cloud-services-core/.travis.yml


+ 13 - 0
packages/ckeditor-cloud-services-core/CHANGELOG.md

@@ -0,0 +1,13 @@
+Changelog
+=========
+
+## [0.2.0](https://github.com/ckeditor/ckeditor-cloud-services-core/compare/v0.1.1...v0.2.0) (2017-10-27)
+
+### Features
+
+* Added mechanism to refresh the token. Closes [#4](https://github.com/ckeditor/ckeditor-cloud-services-core/issues/4). ([f573905](https://github.com/ckeditor/ckeditor-cloud-services-core/commit/f573905))
+
+
+## [0.1.1](https://github.com/ckeditor/ckeditor-cloud-services-core/compare/v0.1.0...v0.1.1) (2017-10-03)
+
+Internal changes only (updated dependencies, documentation, etc.).

+ 4 - 0
packages/ckeditor-cloud-services-core/CONTRIBUTING.md

@@ -0,0 +1,4 @@
+Contributing
+========================================
+
+See the [official contributors' guide to CKEditor 5](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html) to learn more.

+ 11 - 3
packages/ckeditor-cloud-services-core/README.md

@@ -1,10 +1,18 @@
 CKEditor Cloud Services Core
 ============================
 
-CKEditor Cloud Services Core API:
+[![Join the chat at https://gitter.im/ckeditor/ckeditor5](https://badges.gitter.im/ckeditor/ckeditor5.svg)](https://gitter.im/ckeditor/ckeditor5?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor-cloud-services-core.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core)
+[![Build Status](https://travis-ci.org/ckeditor/ckeditor-cloud-services-core.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor-cloud-services-core)
+[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor-cloud-services-core/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor-cloud-services-core?branch=master)
+<br>
+[![Dependency Status](https://david-dm.org/ckeditor/ckeditor-cloud-services-core/status.svg)](https://david-dm.org/ckeditor/ckeditor-cloud-services-core)
+[![devDependency Status](https://david-dm.org/ckeditor/ckeditor-cloud-services-core/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor-cloud-services-core?type=dev)
 
-* Upload Gateway - API for file uploads to CKEditor Cloud Services.
+## Documentation
+
+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/).
 
 ## License
 
-Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the LICENSE.md file.
+Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). For full details about the license, please check the `LICENSE.md` file or [https://ckeditor.com/legal/ckeditor-oss-license](https://ckeditor.com/legal/ckeditor-oss-license).

+ 28 - 0
packages/ckeditor-cloud-services-core/docs/api/cloud-services-core.md

@@ -0,0 +1,28 @@
+---
+category: api-reference
+---
+
+# CKEditor 5 Cloud Services Core
+
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor-cloud-services-core.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core)
+
+CKEditor Cloud Services Core API:
+
+* {@link module:cloud-services-core/uploadgateway~UploadGateway Upload Gateway} &mdash; API for file uploads to CKEditor Cloud Services.
+
+## Installation
+
+```bash
+npm install --save @ckeditor/ckeditor-cloud-services-core
+```
+
+## Contribute
+
+The source code of this package is available on GitHub in https://github.com/ckeditor/ckeditor-cloud-services-core.
+
+## External links
+
+* [`@ckeditor/ckeditor-cloud-services-core` on npm](https://www.npmjs.com/package/@ckeditor/ckeditor-cloud-services-core)
+* [`ckeditor/ckeditor-cloud-services-core` on GitHub](https://github.com/ckeditor/ckeditor-cloud-services-core)
+* [Issue tracker](https://github.com/ckeditor/ckeditor5/issues)
+* [Changelog](https://github.com/ckeditor/ckeditor-cloud-services-core/blob/master/CHANGELOG.md)

+ 0 - 120
packages/ckeditor-cloud-services-core/karma.conf.js

@@ -1,120 +0,0 @@
-/**
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* eslint-env node */
-
-'use strict';
-
-const path = require( 'path' );
-
-const webpack = require( 'webpack' );
-
-module.exports = function( config ) {
-	config.set( {
-		// base path that will be used to resolve all patterns (eg. files, exclude)
-		basePath: '',
-
-		// frameworks to use. Available frameworks: https://npmjs.org/browse/keyword/karma-adapter
-		frameworks: [ 'mocha', 'chai', 'sinon' ],
-
-		// list of files / patterns to load in the browser
-		files: [
-			'tests/**/*.js'
-		],
-
-		// list of files to exclude
-		exclude: [
-			'tests/**/@(_utils|_assets)/**'
-		],
-
-		// preprocess matching files before serving them to the browser
-		// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
-		preprocessors: {
-			'tests/**/*.js': [ 'webpack', 'sourcemap' ],
-			'src/**/*.js': [ 'webpack', 'sourcemap' ]
-		},
-
-		webpack: {
-			resolve: {
-				modules: [
-					path.join( __dirname, 'src' ),
-					'node_modules'
-				]
-			},
-
-			module: {
-				loaders: [
-					{
-						test: /\.js$/,
-						exclude: /(node_modules\/((?!ckeditor)[a-z-]+))/,
-						loader: 'babel-loader',
-						enforce: 'pre',
-						query: {
-							plugins: [
-								'transform-es2015-modules-commonjs',
-								[
-									'istanbul',
-									{ 'exclude': [ 'tests/**/*.js', 'node_modules/**' ] }
-								]
-							]
-						}
-					}
-				]
-			},
-
-			plugins: [
-				new webpack.DefinePlugin( {
-					VERSION: JSON.stringify( require( './package.json' ).version )
-				} )
-			],
-
-			devtool: 'inline-source-map'
-		},
-
-		webpackMiddleware: {
-			noInfo: true,
-			stats: 'errors-only'
-		},
-
-		// test results reporter to use
-		// possible values: 'dots', 'progress'
-		// available reporters: https://npmjs.org/browse/keyword/karma-reporter
-		reporters: [ 'mocha', 'coverage' ],
-
-		coverageReporter: {
-			dir: 'coverage/',
-			reporters: [
-				{ type: 'html', subdir: 'report-html' },
-				{ type: 'lcov', subdir: 'report-lcov' },
-				{ type: 'text', subdir: '.', file: 'text.txt' }
-			]
-		},
-
-		// web server port
-		port: 9876,
-
-		// enable / disable colors in the output (reporters and logs)
-		colors: true,
-
-		// level of logging
-		// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
-		logLevel: config.LOG_INFO,
-
-		// enable / disable watching file and executing tests whenever any file changes
-		autoWatch: true,
-
-		// start these browsers
-		// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
-		browsers: [ 'Chrome' ],
-
-		// Continuous Integration mode
-		// if true, Karma captures browsers, runs the tests and exits
-		singleRun: false,
-
-		// Concurrency level
-		// how many browser should be started simultaneous
-		concurrency: Infinity
-	} );
-};

+ 36 - 33
packages/ckeditor-cloud-services-core/package.json

@@ -1,45 +1,48 @@
 {
   "name": "@ckeditor/ckeditor-cloud-services-core",
-  "version": "5.0.0",
-  "description": "CKEditor Cloud Services Core API",
+  "version": "3.0.1",
+  "description": "CKEditor Cloud Services Core API.",
+  "keywords": [
+    "ckeditor5",
+    "ckeditor5-lib"
+  ],
+  "dependencies": {
+    "@ckeditor/ckeditor5-utils": "^12.0.0"
+  },
+  "devDependencies": {
+    "eslint": "^5.5.0",
+    "eslint-config-ckeditor5": "^1.0.9",
+    "husky": "^0.14.3",
+    "lint-staged": "^7.0.0"
+  },
+  "engines": {
+    "node": ">=6.9.0",
+    "npm": ">=3.0.0"
+  },
+  "author": "CKSource (http://cksource.com/)",
   "license": "GPL-2.0-or-later",
+  "homepage": "https://ckeditor.com",
+  "bugs": "https://github.com/ckeditor/ckeditor-cloud-services-core/issues",
   "repository": {
     "type": "git",
     "url": "https://github.com/ckeditor/ckeditor-cloud-services-core.git"
   },
-  "author": "CKSource (http://cksource.com/)",
-  "homepage": "http://ckeditor.com",
-  "bugs": "https://github.com/ckeditor/ckeditor-cloud-services-core/issues",
+  "files": [
+    "lang",
+    "src",
+    "theme"
+  ],
   "scripts": {
-    "test": "karma start --single-run",
-    "lint": "eslint src tests"
+    "lint": "eslint --quiet '**/*.js'",
+    "precommit": "lint-staged"
   },
-  "dependencies": {
-    "@ckeditor/ckeditor5-utils": "^14.0.0"
+  "lint-staged": {
+    "**/*.js": [
+      "eslint --quiet"
+    ]
   },
-  "devDependencies": {
-    "babel-core": "^6.26.0",
-    "babel-loader": "^7.1.2",
-    "babel-plugin-istanbul": "^4.1.5",
-    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
-    "chai": "^4.1.2",
-    "eslint": "^4.7.1",
-    "eslint-config-ckeditor5": "^1.0.6",
-    "karma": "^1.7.1",
-    "karma-chai": "^0.1.0",
-    "karma-chrome-launcher": "^2.2.0",
-    "karma-coverage": "^1.1.1",
-    "karma-firefox-launcher": "^1.0.1",
-    "karma-mocha": "^1.3.0",
-    "karma-mocha-reporter": "^2.2.4",
-    "karma-sinon": "^1.0.5",
-    "karma-sourcemap-loader": "^0.3.7",
-    "karma-webpack": "^2.0.4",
-    "mocha": "^3.5.3",
-    "sinon": "^3.3.0",
-    "webpack": "^3.6.0"
-  },
-  "files": [
-    "src"
+  "eslintIgnore": [
+    "src/lib/**",
+    "packages/**"
   ]
 }

+ 13 - 9
packages/ckeditor-cloud-services-core/src/token/token.js

@@ -1,11 +1,13 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-/* eslint-env browser */
+/**
+ * @module cloud-services-core/token
+ */
 
-'use strict';
+/* globals XMLHttpRequest, setInterval, clearInterval */
 
 import mix from '@ckeditor/ckeditor5-utils/src/mix';
 import ObservableMixin from '@ckeditor/ckeditor5-utils/src/observablemixin';
@@ -25,7 +27,7 @@ class Token {
 	 * Method `init` should be called after using the constructor or use `create` method instead.
 	 *
 	 * @param {String|Function} tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
-	 * value is a function it has to match the {@link ~refreshToken} interface.
+	 * value is a function it has to match the {@link module:cloud-services-core/token~refreshToken} interface.
 	 * @param {Object} options
 	 * @param {String} [options.initValue] Initial value of the token.
 	 * @param {Number} [options.refreshInterval=3600000] Delay between refreshes. Default 1 hour.
@@ -78,7 +80,7 @@ class Token {
 	/**
 	 * Initializes the token.
 	 *
-	 * @returns {Promise.<Token>}
+	 * @returns {Promise.<module:cloud-services-core/token~Token>}
 	 */
 	init() {
 		return new Promise( ( resolve, reject ) => {
@@ -135,15 +137,15 @@ class Token {
 	}
 
 	/**
-	 * Creates a initialized {@link Token} instance.
+	 * Creates a initialized {@link module:cloud-services-core/token~Token} instance.
 	 *
 	 * @param {String|Function} tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
-	 * value is a function it has to match the {@link ~refreshToken} interface.
+	 * value is a function it has to match the {@link module:cloud-services-core/token~refreshToken} interface.
 	 * @param {Object} options
 	 * @param {String} [options.initValue] Initial value of the token.
 	 * @param {Number} [options.refreshInterval=3600000] Delay between refreshes. Default 1 hour.
 	 * @param {Boolean} [options.autoRefresh=true] Specifies whether to start the refresh automatically.
-	 * @returns {Promise.<Token>}
+	 * @returns {Promise.<module:cloud-services-core/token~Token>}
 	 */
 	static create( tokenUrlOrRefreshToken, options = DEFAULT_OPTIONS ) {
 		const token = new Token( tokenUrlOrRefreshToken, options );
@@ -183,7 +185,9 @@ function defaultRefreshToken( tokenUrl ) {
 				 *
 				 * @error token-cannot-download-new-token
 				 */
-				return reject( new CKEditorError( 'token-cannot-download-new-token: Cannot download new token from the provided url.', null ) );
+				return reject(
+					new CKEditorError( 'token-cannot-download-new-token: Cannot download new token from the provided url.', null )
+				);
 			}
 
 			return resolve( xhrResponse );

+ 9 - 7
packages/ckeditor-cloud-services-core/src/uploadgateway/fileuploader.js

@@ -1,11 +1,13 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-/* eslint-env browser */
+/**
+ * @module cloud-services-core/uploadgateway
+ */
 
-'use strict';
+/* globals XMLHttpRequest, FormData, Blob, atob */
 
 import mix from '@ckeditor/ckeditor5-utils/src/mix';
 import EmitterMixin from '@ckeditor/ckeditor5-utils/src/emittermixin';
@@ -21,7 +23,7 @@ export default class FileUploader {
 	 * Creates `FileUploader` instance.
 	 *
 	 * @param {Blob|String} fileOrData A blob object or a data string encoded with Base64.
-	 * @param {Token} token Token used for authentication.
+	 * @param {module:cloud-services-core/token~Token} token Token used for authentication.
 	 * @param {String} apiAddress API address.
 	 */
 	constructor( fileOrData, token, apiAddress ) {
@@ -62,7 +64,7 @@ export default class FileUploader {
 		/**
 		 * CKEditor Cloud Services access token.
 		 *
-		 * @type {Token}
+		 * @type {module:cloud-services-core/token~Token}
 		 * @private
 		 */
 		this._token = token;
@@ -81,7 +83,7 @@ export default class FileUploader {
 	 *
 	 * @chainable
 	 * @param {Function} callback
-	 * @returns {FileUploader}
+	 * @returns {module:cloud-services-core/uploadgateway~FileUploader}
 	 */
 	onProgress( callback ) {
 		this.on( 'progress', ( event, data ) => callback( data ) );
@@ -94,7 +96,7 @@ export default class FileUploader {
 	 *
 	 * @chainable
 	 * @param {Function} callback
-	 * @returns {FileUploader}
+	 * @returns {module:cloud-services-core/uploadgateway~FileUploader}
 	 */
 	onError( callback ) {
 		this.once( 'error', ( event, data ) => callback( data ) );

+ 11 - 18
packages/ckeditor-cloud-services-core/src/uploadgateway/uploadgateway.js

@@ -1,9 +1,11 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-'use strict';
+/**
+ * @module cloud-services-core/uploadgateway
+ */
 
 import FileUploader from './fileuploader';
 import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
@@ -15,7 +17,7 @@ export default class UploadGateway {
 	/**
 	 * Creates `UploadGateway` instance.
 	 *
-	 * @param {Token} token Token used for authentication.
+	 * @param {module:cloud-services-core/token~Token} token Token used for authentication.
 	 * @param {String} apiAddress API address.
 	 */
 	constructor( token, apiAddress ) {
@@ -40,7 +42,7 @@ export default class UploadGateway {
 		/**
 		 * CKEditor Cloud Services access token.
 		 *
-		 * @type {Token}
+		 * @type {module:cloud-services-core/token~Token}
 		 * @private
 		 */
 		this._token = token;
@@ -55,9 +57,9 @@ export default class UploadGateway {
 	}
 
 	/**
-	 * Creates a {@link FileUploader} instance that wraps file upload process.
-	 * The file is being sent at a time when the method {@link FileUploader#then then} is called
-	 * or when {@link FileUploader#send send} method is called.
+	 * Creates a {@link module:cloud-services-core/uploadgateway~FileUploader} instance that wraps
+	 * file upload process. The file is being sent at a time when the
+	 * {@link module:cloud-services-core/uploadgateway~FileUploader#send} method is called.
 	 *
 	 *     const token = await Token.create( 'https://token-endpoint' );
 	 *     new UploadGateway( token, 'https://example.org' )
@@ -66,17 +68,8 @@ export default class UploadGateway {
 	 *        .send()
 	 *        .then( ( response ) => console.log( response ) );
 	 *
-	 *     // OR
-	 *
-	 *     const token = await Token.create( 'https://token-endpoint' );
-	 *     new UploadGateway( token, 'https://example.org' )
-	 *         .upload( 'FILE' )
-	 *         .onProgress( ( data ) => console.log( data ) )
-	 *         .send()
-	 *         .then( ( response ) => console.log( response ) );
-	 *
-	 * @param {Blob/String} fileOrData A blob object or a data string encoded with Base64.
-	 * @returns {FileUploader} Returns `FileUploader` instance.
+	 * @param {Blob|String} fileOrData A blob object or a data string encoded with Base64.
+	 * @returns {module:cloud-services-core/uploadgateway~FileUploader} Returns `FileUploader` instance.
 	 */
 	upload( fileOrData ) {
 		return new FileUploader( fileOrData, this._token, this._apiAddress );

+ 7 - 7
packages/ckeditor-cloud-services-core/tests/token/token.js

@@ -1,12 +1,10 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* eslint-env commonjs, browser */
 
-'use strict';
-
 import Token from '../../src/token/token';
 import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 
@@ -16,14 +14,16 @@ describe( 'Token', () => {
 	beforeEach( () => {
 		requests = [];
 
-		global.xhr = sinon.useFakeXMLHttpRequest();
+		const xhr = sinon.useFakeXMLHttpRequest();
 
-		global.xhr.onCreate = xhr => {
-			requests.push( xhr );
+		xhr.onCreate = request => {
+			requests.push( request );
 		};
 	} );
 
-	afterEach( () => global.xhr.restore() );
+	afterEach( () => {
+		sinon.restore();
+	} );
 
 	describe( 'constructor()', () => {
 		it( 'should throw error when no tokenUrl provided', () => {

+ 13 - 11
packages/ckeditor-cloud-services-core/tests/uploadgateway/fileuploader.js

@@ -1,12 +1,10 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
 /* eslint-env commonjs, browser */
 
-'use strict';
-
 import FileUploader from '../../src/uploadgateway/fileuploader';
 import Token from '../../src/token/token';
 import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
@@ -100,14 +98,16 @@ describe( 'FileUploader', () => {
 		let request;
 
 		beforeEach( () => {
-			global.xhr = sinon.useFakeXMLHttpRequest();
+			const xhr = sinon.useFakeXMLHttpRequest();
 
-			global.xhr.onCreate = xhr => {
-				request = xhr;
+			xhr.onCreate = r => {
+				request = r;
 			};
 		} );
 
-		afterEach( () => global.xhr.restore() );
+		afterEach( () => {
+			sinon.restore();
+		} );
 
 		it( 'should sent request with correct data (url, method, type, headers)', done => {
 			fileUploader
@@ -202,14 +202,16 @@ describe( 'FileUploader', () => {
 		let request;
 
 		beforeEach( () => {
-			global.xhr = sinon.useFakeXMLHttpRequest();
+			const xhr = sinon.useFakeXMLHttpRequest();
 
-			global.xhr.onCreate = xhr => {
-				request = xhr;
+			xhr.onCreate = r => {
+				request = r;
 			};
 		} );
 
-		afterEach( () => global.xhr.restore() );
+		afterEach( () => {
+			sinon.restore();
+		} );
 
 		it( 'should abort xhr request', () => {
 			fileUploader.send();

+ 1 - 3
packages/ckeditor-cloud-services-core/tests/uploadgateway/uploadgateway.js

@@ -1,10 +1,8 @@
 /**
  * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-'use strict';
-
 import FileUploader from '../../src/uploadgateway/fileuploader';
 import UploadGateway from '../../src/uploadgateway/uploadgateway';
 import Token from '../../src/token/token';