feat: add version to nodejs sdk

This commit is contained in:
miaosiyu 2024-05-08 17:09:12 +08:00
parent c7ece40bf7
commit 3593796993
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,9 @@ import {
import { SDKConfig } from "./base";
export class IDMeshAPI {
public static version() {
return '1.4.6'
}
protected app: AppApi;

View File

@ -8,6 +8,7 @@ const test = async () => {
sk: 'ev1g39d3oiu41uE8taPg1zL0CcpifX15',
});
const resp = await api.user.get({ id: '100124' });
console.assert(IDMeshAPI.version() === '1.4.6');
console.assert(resp.data.id === '100124');
console.assert(resp.data.username === 'wanghaifeng1');
};