Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7cafd9c1c | |||
| 60725ecdcb | |||
| 8144432377 | |||
| 76a6a2fdb3 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@apiclient.xyz/hetznercloud",
|
"name": "@apiclient.xyz/hetznercloud",
|
||||||
"version": "1.0.4",
|
"version": "1.0.6",
|
||||||
"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",
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ A modern approach to talking to the hetzner API.
|
|||||||
```typescript
|
```typescript
|
||||||
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 = const myhetznerAccount.getServers();
|
const servers = await myhetznerAccount.getServers();
|
||||||
for (const server of servers) {
|
for (const server of servers) {
|
||||||
await server.delete();
|
await server.delete();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiclient.xyz/hetznercloud',
|
name: '@apiclient.xyz/hetznercloud',
|
||||||
version: '1.0.4',
|
version: '1.0.6',
|
||||||
description: 'an unofficial api client for the hetzner cloud api'
|
description: 'an unofficial api client for the hetzner cloud api'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user