diff --git a/README.md b/README.md index a761450..2148813 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # @techniker-me/pcast-api WIP... - diff --git a/package.json b/package.json index b8a4a6f..3738c7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@techniker-me/pcast-api", - "version": "2025.0.2", + "version": "2025.0.3", "module": "src/index.ts", "type": "module", "scripts": { @@ -13,18 +13,15 @@ "build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --minify --production", "build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --minify --production", "build:types": "tsc --outDir dist/types", - "prepublishOnly": "bun run build", "clean": "rm -rf dist" }, "devDependencies": { "@types/bun": "latest", - "chai": "5.2.1", + "chai": "5.3.1", "chai-as-promised": "8.0.1", "mocha": "11.7.1", - "prettier": "3.6.2" - }, - "peerDependencies": { - "typescript": "^5" + "prettier": "3.6.2", + "typescript": "5.9.2" }, "exports": { ".": { diff --git a/src/net/http/HttpRequests.ts b/src/net/http/HttpRequests.ts index 3eab2f0..f7623f0 100644 --- a/src/net/http/HttpRequests.ts +++ b/src/net/http/HttpRequests.ts @@ -31,7 +31,7 @@ export class HttpRequests { const abortSignal = abortController.signal; const requestOptions: RequestInit = { headers: this._baseHeaders, - method: HttpMethod[method], // Convert enum to string + method, signal: abortSignal, ...options }; diff --git a/src/pcast/Reporting.ts b/src/pcast/Reporting.ts index 3a3dff5..a9cf787 100644 --- a/src/pcast/Reporting.ts +++ b/src/pcast/Reporting.ts @@ -104,11 +104,7 @@ export class Reporting { const requestPublishingOptions = { body: JSON.stringify({publishingReport: publishingReportOptions}) }; - const response = await this._httpRequests.request( - HttpMethod.PUT, - '/pcast/reporting/publishing', - requestPublishingOptions - ); + const response = await this._httpRequests.request(HttpMethod.PUT, '/pcast/reporting/publishing', requestPublishingOptions); if (!response.publishingReport) { throw new Error('[Reporting] [requestPublishingReport] Invalid response format - missing publishingReport data'); diff --git a/tsconfig.json b/tsconfig.json index 728a03e..d4bdce4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,4 +28,4 @@ }, "include": ["src"], "exclude": ["test", "dist", "node_modules"] -} \ No newline at end of file +}