From 758dad9800450391be6ea44fdd8d103194f3f1a6 Mon Sep 17 00:00:00 2001 From: pedro jose pimentel Date: Sun, 5 Jan 2025 19:32:26 -0300 Subject: [PATCH] 3.11.14 (#546) * update dependencies * add attribute with_droplet_agent * bump version to 3.11.14 --- CHANGELOG.md | 5 +++++ package-lock.json | 18 +++++++++--------- package.json | 4 ++-- .../create-droplet/create-droplet.spec.ts | 1 + src/droplet/create-droplet/create-droplet.ts | 3 +++ .../create-droplets/create-droplets.spec.ts | 1 + src/droplet/create-droplets/create-droplets.ts | 3 +++ 7 files changed, 24 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af0463cd..747cd035 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index 4302cc50..18ebeffc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dots-wrapper", - "version": "3.11.13", + "version": "3.11.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dots-wrapper", - "version": "3.11.13", + "version": "3.11.14", "funding": [ "https://github.com/pjpimentel/dots?sponsor=1" ], @@ -19,7 +19,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", @@ -2622,9 +2622,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "22.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", - "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", + "version": "22.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz", + "integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==", "dev": true, "dependencies": { "undici-types": "~6.20.0" @@ -9409,9 +9409,9 @@ "dev": true }, "@types/node": { - "version": "22.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", - "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", + "version": "22.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.5.tgz", + "integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==", "dev": true, "requires": { "undici-types": "~6.20.0" diff --git a/package.json b/package.json index 1cb4aac9..c2559902 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/droplet/create-droplet/create-droplet.spec.ts b/src/droplet/create-droplet/create-droplet.spec.ts index 4ef42d20..a2b68a50 100644 --- a/src/droplet/create-droplet/create-droplet.spec.ts +++ b/src/droplet/create-droplet/create-droplet.spec.ts @@ -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); diff --git a/src/droplet/create-droplet/create-droplet.ts b/src/droplet/create-droplet/create-droplet.ts index bd3eb0db..a07b4244 100644 --- a/src/droplet/create-droplet/create-droplet.ts +++ b/src/droplet/create-droplet/create-droplet.ts @@ -19,6 +19,7 @@ export interface ICreateDropletApiRequest { user_data?: string; volumes?: string[]; vpc_uuid?: string; + with_droplet_agent?: boolean; } export type CreateDropletResponse = IResponse; @@ -39,6 +40,7 @@ export const createDroplet = ({ user_data, volumes, vpc_uuid, + with_droplet_agent, }: ICreateDropletApiRequest): Promise> => { const url = '/droplets'; const body = { @@ -55,6 +57,7 @@ export const createDroplet = ({ user_data, volumes, vpc_uuid, + with_droplet_agent, }; return httpClient.post(url, body); diff --git a/src/droplet/create-droplets/create-droplets.spec.ts b/src/droplet/create-droplets/create-droplets.spec.ts index fc3cb24c..f882426f 100644 --- a/src/droplet/create-droplets/create-droplets.spec.ts +++ b/src/droplet/create-droplets/create-droplets.spec.ts @@ -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); diff --git a/src/droplet/create-droplets/create-droplets.ts b/src/droplet/create-droplets/create-droplets.ts index be9a2248..bb06fdee 100644 --- a/src/droplet/create-droplets/create-droplets.ts +++ b/src/droplet/create-droplets/create-droplets.ts @@ -19,6 +19,7 @@ export interface ICreateDropletsApiRequest { user_data?: string; volumes?: string[]; vpc_uuid?: string; + with_droplet_agent?: boolean; } export type CreateDropletsResponse = IResponse; @@ -39,6 +40,7 @@ export const createDroplets = ({ user_data, volumes, vpc_uuid, + with_droplet_agent, }: ICreateDropletsApiRequest): Promise> => { const url = '/droplets'; const body = { @@ -55,6 +57,7 @@ export const createDroplets = ({ user_data, volumes, vpc_uuid, + with_droplet_agent, }; return httpClient.post(url, body);