mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Release 8.1.0 (#11143)
This commit is contained in:
committed by
GitHub
parent
2e20c3da45
commit
de537f0a0d
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@alfresco/js-api",
|
||||
"version": "10.0.0",
|
||||
"version": "9.1.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "JavaScript client library for the Alfresco REST API",
|
||||
"author": "Hyland Software, Inc. and its affiliates",
|
||||
|
@@ -662,7 +662,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
universalBtoa(stringToConvert: string) {
|
||||
try {
|
||||
return btoa(stringToConvert);
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return Buffer.from(stringToConvert).toString('base64');
|
||||
}
|
||||
}
|
||||
@@ -765,7 +765,7 @@ export class Oauth2Auth extends AlfrescoApiClient {
|
||||
const ticketEntry = await authContentApi.getTicket();
|
||||
this.config.ticketEcm = ticketEntry.entry.id;
|
||||
this.emit('ticket_exchanged');
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// continue regardless of error
|
||||
}
|
||||
});
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
export class Storage {
|
||||
|
||||
private static instance: Storage;
|
||||
|
||||
_storage: any;
|
||||
@@ -28,8 +27,8 @@ export class Storage {
|
||||
}
|
||||
}
|
||||
|
||||
public static getInstance(){
|
||||
if(!Storage.instance){
|
||||
public static getInstance() {
|
||||
if (!Storage.instance) {
|
||||
Storage.instance = new Storage();
|
||||
}
|
||||
return Storage.instance;
|
||||
@@ -38,7 +37,7 @@ export class Storage {
|
||||
supportsStorage() {
|
||||
try {
|
||||
return 'localStorage' in window && window.localStorage !== null;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@@ -229,7 +229,7 @@ export class SuperagentHttpClient implements HttpClient {
|
||||
|
||||
try {
|
||||
document.cookie = 'CSRF-TOKEN=' + token + ';path=/';
|
||||
} catch (err) {
|
||||
} catch {
|
||||
/* continue regardless of error */
|
||||
}
|
||||
}
|
||||
|
@@ -68,7 +68,7 @@ describe('WebScript', () => {
|
||||
webscriptApi.executeWebScript('GET', 'sample/folder/Company%20Home').then((data) => {
|
||||
try {
|
||||
JSON.parse(data);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
done();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user