Compare commits

...

6 Commits

Author SHA1 Message Date
philkunz 332a4a4195 1.0.7 2024-02-17 20:41:22 +01:00
philkunz 07d625fa1f fix(core): update 2024-02-17 20:41:21 +01:00
philkunz e7cafd9c1c 1.0.6 2024-01-29 21:17:14 +01:00
philkunz 60725ecdcb fix(core): update 2024-01-29 21:17:14 +01:00
philkunz 8144432377 1.0.5 2024-01-29 21:16:11 +01:00
philkunz 76a6a2fdb3 fix(core): update 2024-01-29 21:16:10 +01:00
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/hetznercloud",
"version": "1.0.4",
"version": "1.0.7",
"private": false,
"description": "an unofficial api client for the hetzner cloud api",
"main": "dist_ts/index.js",
+2 -1
View File
@@ -26,9 +26,10 @@ BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bun
A modern approach to talking to the hetzner API.
```typescript
// assuming top level await here
import hetznerCloud from '@apiclient.xyz/hetznercloud'
const myhetznerAccount = new hetznerCloud.HetznerAccount('myToken');
const servers = const myhetznerAccount.getServers();
const servers = await myhetznerAccount.getServers();
for (const server of servers) {
await server.delete();
}
+1 -1
View File
@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/hetznercloud',
version: '1.0.4',
version: '1.0.7',
description: 'an unofficial api client for the hetzner cloud api'
}
+2
View File
@@ -0,0 +1,2 @@
export * from './classes.account.js';
export * from './classes.server.js';