Release 8.1.0 (#11143)

This commit is contained in:
dominikiwanekhyland
2025-08-25 14:25:56 +02:00
committed by GitHub
parent 2e20c3da45
commit de537f0a0d
22 changed files with 159 additions and 36 deletions

View File

@@ -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",

View File

@@ -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
}
});

View File

@@ -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;
}
}

View File

@@ -229,7 +229,7 @@ export class SuperagentHttpClient implements HttpClient {
try {
document.cookie = 'CSRF-TOKEN=' + token + ';path=/';
} catch (err) {
} catch {
/* continue regardless of error */
}
}

View File

@@ -68,7 +68,7 @@ describe('WebScript', () => {
webscriptApi.executeWebScript('GET', 'sample/folder/Company%20Home').then((data) => {
try {
JSON.parse(data);
} catch (e) {
} catch {
done();
}
});