Skip to content

Commit

Permalink
3.11.14 (#546)
Browse files Browse the repository at this point in the history
* update dependencies

* add attribute with_droplet_agent

* bump version to 3.11.14
  • Loading branch information
pjpimentel authored Jan 5, 2025
1 parent 2902a1f commit 758dad9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# changelog

## **2025-01-05** - new version 3.11.14

* update dependencies
* add attribute with_droplet_agent

## **2024-12-21** - new version 3.11.13

* update dependencies
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dots-wrapper",
"version": "3.11.13",
"version": "3.11.14",
"description": "Digital Ocean v2 api wrapper - javascript - typescript - nodejs",
"main": "dist/index.js",
"browser": "dist/index-browser.min.js",
Expand Down Expand Up @@ -35,7 +35,7 @@
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.2",
"@types/node": "^22.10.5",
"babel-jest": "^29.7.0",
"jest": "^29.7.0",
"license-webpack-plugin": "^4.0.2",
Expand Down
1 change: 1 addition & 0 deletions src/droplet/create-droplet/create-droplet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('create-droplet', () => {
user_data: require('crypto').randomBytes(2),
volumes: require('crypto').randomBytes(2),
vpc_uuid: require('crypto').randomBytes(2),
with_droplet_agent: require('crypto').randomBytes(2),
} as any;
const default_output = require('crypto').randomBytes(2);

Expand Down
3 changes: 3 additions & 0 deletions src/droplet/create-droplet/create-droplet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface ICreateDropletApiRequest {
user_data?: string;
volumes?: string[];
vpc_uuid?: string;
with_droplet_agent?: boolean;
}

export type CreateDropletResponse = IResponse<ICreateDropletApiResponse>;
Expand All @@ -39,6 +40,7 @@ export const createDroplet = ({
user_data,
volumes,
vpc_uuid,
with_droplet_agent,
}: ICreateDropletApiRequest): Promise<Readonly<CreateDropletResponse>> => {
const url = '/droplets';
const body = {
Expand All @@ -55,6 +57,7 @@ export const createDroplet = ({
user_data,
volumes,
vpc_uuid,
with_droplet_agent,
};

return httpClient.post<ICreateDropletApiResponse>(url, body);
Expand Down
1 change: 1 addition & 0 deletions src/droplet/create-droplets/create-droplets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('create-droplets', () => {
user_data: require('crypto').randomBytes(2),
volumes: require('crypto').randomBytes(2),
vpc_uuid: require('crypto').randomBytes(2),
with_droplet_agent: require('crypto').randomBytes(2),
} as any;
const default_output = require('crypto').randomBytes(2);

Expand Down
3 changes: 3 additions & 0 deletions src/droplet/create-droplets/create-droplets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface ICreateDropletsApiRequest {
user_data?: string;
volumes?: string[];
vpc_uuid?: string;
with_droplet_agent?: boolean;
}

export type CreateDropletsResponse = IResponse<ICreateDropletsApiResponse>;
Expand All @@ -39,6 +40,7 @@ export const createDroplets = ({
user_data,
volumes,
vpc_uuid,
with_droplet_agent,
}: ICreateDropletsApiRequest): Promise<Readonly<CreateDropletsResponse>> => {
const url = '/droplets';
const body = {
Expand All @@ -55,6 +57,7 @@ export const createDroplets = ({
user_data,
volumes,
vpc_uuid,
with_droplet_agent,
};

return httpClient.post<ICreateDropletsApiResponse>(url, body);
Expand Down

0 comments on commit 758dad9

Please sign in to comment.