smee-client
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -10,2 +10,7 @@ "use strict"; | ||
class Client { | ||
source; | ||
target; | ||
fetch; | ||
logger; | ||
events; | ||
constructor({ source, target, logger = console, fetch = global.fetch, }) { | ||
@@ -44,2 +49,3 @@ this.source = source; | ||
headers["content-length"] = Buffer.byteLength(body); | ||
headers["content-type"] = "application/json"; | ||
try { | ||
@@ -46,0 +52,0 @@ const response = await this.fetch(url_1.default.format(target), { |
{ | ||
"name": "smee-client", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Client to proxy webhooks to localhost", | ||
@@ -31,12 +31,12 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@types/eventsource": "^1.1.15", | ||
"@types/node": "^18.19.14", | ||
"@types/node": "^20.0.0", | ||
"@types/validator": "^13.11.6", | ||
"@vitest/coverage-v8": "^1.0.0", | ||
"@vitest/coverage-v8": "^2.0.0", | ||
"fastify": "^4.24.3", | ||
"prettier": "^3.1.0", | ||
"typescript": "^5.0.0", | ||
"vitest": "^1.0.0" | ||
"vitest": "^2.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7659
130