Package.json engine fix + small types @default fix

This commit is contained in:
Oxtaly 2025-06-04 00:57:06 +02:00
parent 88874d1ef8
commit 9c51acf711
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
"license": "GPLv3", "license": "GPLv3",
"repository": { "repository": {
"type": "git", "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.", "description": "A simple node.js Porkbun API wrapper with no dependencies to interact with Porkbun's v3 api.",
"devDependencies": { "devDependencies": {
@ -18,6 +18,6 @@
"dotenv": "^16.5.0" "dotenv": "^16.5.0"
}, },
"engines": { "engines": {
"node": "18" "node": ">=18"
} }
} }

4
types.d.ts vendored
View File

@ -9,11 +9,11 @@ export interface PorkbunClientOptions {
apiKey: string; apiKey: string;
/** Secret key used for authentication. */ /** Secret key used for authentication. */
secretKey: string; 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; endpoint?: string;
/** Logger that takes in the requests made by the client. Does not include api keys. */ /** Logger that takes in the requests made by the client. Does not include api keys. */
queryLogger?: (query: { url: string, body: Object }) => void; 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; userAgent?: string;
} }