@digitalocean/dots 1.0.4 → 1.0.6
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 +2 -5
- package/{digitalocean-dots-1.0.4.tgz → digitalocean-dots-1.0.6.tgz} +0 -0
- package/index.js +4 -0
- package/index.ts +4 -0
- package/package.json +2 -2
- package/tsconfig.json +4 -2
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) {
|
|
@@ -95,6 +92,7 @@ We use `jest` to define and run the tests.
|
|
|
95
92
|
- [TypeScript 5 or above](https://www.typescriptlang.org/)
|
|
96
93
|
- [Jest 30 or above](https://www.npmjs.com/package/jest)
|
|
97
94
|
- A DigitalOcean account with an active subscription. Along with a DigitalOcean token with proper permissions to manage DigitalOcean resources (for integration testing).
|
|
95
|
+
- `"type": "module"` in your `package.json` (for ES module support)
|
|
98
96
|
|
|
99
97
|
There are two types of test suites in the `tests/` directory.
|
|
100
98
|
|
|
@@ -148,4 +146,3 @@ To run integration tests, run:
|
|
|
148
146
|
# **License**
|
|
149
147
|
|
|
150
148
|
This project is licensed under the Apache License 2.0. See the [LICENSE](./LICENSE) file for details.
|
|
151
|
-
|
|
Binary file
|
package/index.js
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/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.6",
|
|
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",
|
package/tsconfig.json
CHANGED
|
@@ -110,6 +110,8 @@
|
|
|
110
110
|
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
111
111
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
112
112
|
},
|
|
113
|
-
"include": [
|
|
114
|
-
"
|
|
113
|
+
"include": [
|
|
114
|
+
"src",
|
|
115
|
+
"index.ts"
|
|
116
|
+
]
|
|
115
117
|
}
|