@sphereon/oid4vci-common 0.19.1-feature.DIIPv4.161 → 0.19.1-feature.DIIPv4.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -219,7 +219,7 @@ init_cjs_shims();
|
|
|
219
219
|
// lib/functions/HttpUtils.ts
|
|
220
220
|
init_cjs_shims();
|
|
221
221
|
var import_ssi_types = require("@sphereon/ssi-types");
|
|
222
|
-
var import_cross_fetch = require("cross-fetch");
|
|
222
|
+
var import_cross_fetch = __toESM(require("cross-fetch"), 1);
|
|
223
223
|
|
|
224
224
|
// lib/types/index.ts
|
|
225
225
|
init_cjs_shims();
|
|
@@ -533,7 +533,7 @@ ${typeof body == "string" ? body : JSON.stringify(body)}`);
|
|
|
533
533
|
}
|
|
534
534
|
logger.debug(`Headers:\r
|
|
535
535
|
${JSON.stringify(payload.headers)}`);
|
|
536
|
-
const origResponse = await (0, import_cross_fetch.
|
|
536
|
+
const origResponse = await (0, import_cross_fetch.default)(url, payload);
|
|
537
537
|
const isJSONResponse = accept === "application/json" || origResponse.headers.get("Content-Type") === "application/json";
|
|
538
538
|
const success = origResponse && origResponse.status >= 200 && origResponse.status < 400;
|
|
539
539
|
const responseText = await origResponse.text();
|