1.0.1 • Published 7 months ago
appmesh v1.0.1
AppMesh JavaScript SDK
Build
npm run build
Install
npm i appmesh
Usage
Node.js
import { AppMeshClient } from 'appmesh'
const client = new AppMeshClient()
const token = await client.login(username, password)
VUE
import { AppMeshClient } from 'appmesh'
import { Message } from 'element-ui'
export class VueAppMeshClient extends AppMeshClient {
constructor(options = {}) {
super(options.baseURL, options.sslConfig, options.jwtToken);
}
/**
* Override error handler
* @protected
* @param {Error} error - The caught error
* @returns {AppMeshError} Standardized AppMeshError
*/
onError(error) {
let message = error.message;
if (message) {
Message({ message, type: 'error', duration: 5 * 1000 });
}
return error;
}
}
1.0.1
7 months ago
0.6.6
7 months ago
0.5.8
7 months ago
0.5.7
7 months ago
0.5.9
7 months ago
0.6.3
7 months ago
0.6.2
7 months ago
0.6.5
7 months ago
0.6.4
7 months ago
0.6.1
7 months ago
0.6.0
7 months ago
0.5.4
7 months ago
0.5.6
7 months ago
0.5.5
7 months ago
0.4.9
7 months ago
0.4.8
7 months ago
0.3.9
7 months ago
0.3.0
7 months ago
0.4.5
7 months ago
0.3.6
7 months ago
0.2.7
7 months ago
0.4.4
7 months ago
0.3.5
7 months ago
0.2.6
7 months ago
0.4.7
7 months ago
0.2.9
7 months ago
0.4.6
7 months ago
0.2.8
7 months ago
0.5.0
7 months ago
0.4.1
7 months ago
0.3.2
7 months ago
0.4.0
7 months ago
0.3.1
7 months ago
0.5.2
7 months ago
0.4.3
7 months ago
0.3.4
7 months ago
0.2.5
7 months ago
0.5.1
7 months ago
0.4.2
7 months ago
0.3.3
7 months ago
0.2.4
8 months ago
0.2.3
8 months ago
0.2.1
10 months ago
0.2.2
10 months ago
0.2.0
11 months ago
0.1.9
11 months ago
0.1.8
12 months ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.2
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.1
1 year ago