Compare commits

...

4 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
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@apiclient.xyz/hetznercloud", "name": "@apiclient.xyz/hetznercloud",
"version": "1.0.5", "version": "1.0.7",
"private": false, "private": false,
"description": "an unofficial api client for the hetzner cloud api", "description": "an unofficial api client for the hetzner cloud api",
"main": "dist_ts/index.js", "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. A modern approach to talking to the hetzner API.
```typescript ```typescript
// assuming top level await here
import hetznerCloud from '@apiclient.xyz/hetznercloud' import hetznerCloud from '@apiclient.xyz/hetznercloud'
const myhetznerAccount = new hetznerCloud.HetznerAccount('myToken'); const myhetznerAccount = new hetznerCloud.HetznerAccount('myToken');
const servers = myhetznerAccount.getServers(); const servers = await myhetznerAccount.getServers();
for (const server of servers) { for (const server of servers) {
await server.delete(); await server.delete();
} }
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@apiclient.xyz/hetznercloud', name: '@apiclient.xyz/hetznercloud',
version: '1.0.5', version: '1.0.7',
description: 'an unofficial api client for the hetzner cloud api' 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';