@platformatic/client
Advanced tools
Comparing version 2.17.0 to 2.18.0
@@ -16,3 +16,3 @@ 'use strict' | ||
const camelCase = require('camelcase') | ||
const { FormData } = require('undici') | ||
const { FormData, errors: { UndiciError } } = require('undici') | ||
function generateOperationId (path, method, methodMeta, all) { | ||
@@ -297,4 +297,9 @@ let operationId = null | ||
const requestError = new errors.UnexpectedCallFailureError(err.toString()) | ||
if (err.statusCode) { | ||
if (err instanceof UndiciError) { | ||
requestError.status = err.status | ||
requestError.statusCode = err.statusCode | ||
requestError.headers = err.headers | ||
requestError.body = err.body | ||
requestError.data = err.data | ||
requestError.socket = err.socket | ||
} | ||
@@ -301,0 +306,0 @@ throw requestError |
{ | ||
"name": "@platformatic/client", | ||
"version": "2.17.0", | ||
"version": "2.18.0", | ||
"description": "A client for all platformatic backends", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"typescript": "^5.4.2", | ||
"@platformatic/telemetry": "2.17.0", | ||
"@platformatic/utils": "2.17.0" | ||
"@platformatic/telemetry": "2.18.0", | ||
"@platformatic/utils": "2.18.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "dependencies": { |
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
38361
689