@digitalocean/dots 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -33,10 +33,7 @@ const client = createDigitalOceanClient(adapter);
|
|
|
33
33
|
### Managing DigitalOcean Resources via dots
|
|
34
34
|
Find below a working example of creating a DigitalOcean volume via `dots`:
|
|
35
35
|
```typescript
|
|
36
|
-
import { FetchRequestAdapter } from "@
|
|
37
|
-
import { createDigitalOceanClient } from "../src/dots/digitalOceanClient.js";
|
|
38
|
-
import { DigitalOceanApiKeyAuthenticationProvider } from '../src/dots/DigitalOceanApiKeyAuthenticationProvider.js';
|
|
39
|
-
import {Volumes_ext4} from "../src/dots/models/index.js";
|
|
36
|
+
import { createDigitalOceanClient, DigitalOceanApiKeyAuthenticationProvider, FetchRequestAdapter, Volumes_ext4 } from "@digitalocean/dots";
|
|
40
37
|
|
|
41
38
|
const token = process.env.DIGITALOCEAN_TOKEN;
|
|
42
39
|
if (!token) {
|
|
Binary file
|
package/index.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { createDigitalOceanClient } from "./src/dots/digitalOceanClient.js";
|
|
2
|
+
export { DigitalOceanApiKeyAuthenticationProvider } from "./src/dots/DigitalOceanApiKeyAuthenticationProvider.js";
|
|
3
|
+
export { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
|
|
4
|
+
export * from "./src/dots/models/index.js";
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitalocean/dots",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"description": "TypeScript client generator based on DigitalOcean's OpenAPI specification.",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
|
9
9
|
"test:mock": "node --experimental-vm-modules node_modules/.bin/jest --testPathPatterns=mock",
|