@platformatic/client
Advanced tools
Comparing version 2.19.0-alpha.3 to 2.19.0-alpha.4
12
index.js
'use strict' | ||
const { request } = require('undici') | ||
const { Agent, request, interceptors } = require('undici') | ||
const { join } = require('path') | ||
@@ -222,2 +222,9 @@ const fs = require('fs/promises') | ||
if (throwOnError) { | ||
if (!dispatcher) { | ||
dispatcher = new Agent() | ||
} | ||
dispatcher = dispatcher.compose(interceptors.responseError()) | ||
} | ||
let res | ||
@@ -231,3 +238,2 @@ try { | ||
}, | ||
throwOnError, | ||
bodyTimeout, | ||
@@ -299,3 +305,3 @@ headersTimeout, | ||
if (err instanceof UndiciError) { | ||
requestError.status = err.status | ||
requestError.status = err.statusCode | ||
requestError.statusCode = err.statusCode | ||
@@ -302,0 +308,0 @@ requestError.headers = err.headers |
{ | ||
"name": "@platformatic/client", | ||
"version": "2.19.0-alpha.3", | ||
"version": "2.19.0-alpha.4", | ||
"description": "A client for all platformatic backends", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"typescript": "^5.4.2", | ||
"@platformatic/utils": "2.19.0-alpha.3", | ||
"@platformatic/telemetry": "2.19.0-alpha.3" | ||
"@platformatic/utils": "2.19.0-alpha.4", | ||
"@platformatic/telemetry": "2.19.0-alpha.4" | ||
}, | ||
@@ -39,3 +39,3 @@ "dependencies": { | ||
"jsonpointer": "^5.0.1", | ||
"undici": "^6.9.0" | ||
"undici": "7.0.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "scripts": { |
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
38552
694
+ Addedundici@7.0.0(transitive)
- Removedundici@6.21.0(transitive)
Updatedundici@7.0.0