From 9c51acf711e3e12ea3799331e8490acbee98f53b Mon Sep 17 00:00:00 2001 From: Oxtaly Date: Wed, 4 Jun 2025 00:57:06 +0200 Subject: [PATCH] Package.json engine fix + small types @default fix --- package.json | 4 ++-- types.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a454461..812a31e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "license": "GPLv3", "repository": { "type": "git", - "url": "https://github.com/Oxtaly/porkbun-wrapper.git" + "url": "git+https://github.com/Oxtaly/porkbun-wrapper.git" }, "description": "A simple node.js Porkbun API wrapper with no dependencies to interact with Porkbun's v3 api.", "devDependencies": { @@ -18,6 +18,6 @@ "dotenv": "^16.5.0" }, "engines": { - "node": "18" + "node": ">=18" } } diff --git a/types.d.ts b/types.d.ts index ce69a50..181c5f5 100644 --- a/types.d.ts +++ b/types.d.ts @@ -9,11 +9,11 @@ export interface PorkbunClientOptions { apiKey: string; /** Secret key used for authentication. */ secretKey: string; - /** Base api endpoint used by the wrapper. @default {"https://api.porkbun.com/api/json/v3"} */ + /** Base api endpoint used by the wrapper. @default "https://api.porkbun.com/api/json/v3" */ endpoint?: string; /** Logger that takes in the requests made by the client. Does not include api keys. */ queryLogger?: (query: { url: string, body: Object }) => void; - /** User-Agent header sent with the requests. Set to null to send the default (usually "node") Node.js User-Agent header. @default {"porkbun-wrapper"} */ + /** User-Agent header sent with the requests. Set to null to send the default (usually "node") Node.js User-Agent header. @default "porkbun-wrapper" */ userAgent?: string; }