@pagopa/io-wallet-oauth2 1.1.1 → 1.1.2
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -10229,8 +10229,7 @@ declare class CreateTokenResponseError extends Oauth2Error {
|
|
|
10229
10229
|
* Error thrown when an unexpected error occurs during client attestation (wallet attestation) creation.
|
|
10230
10230
|
*/
|
|
10231
10231
|
declare class ClientAttestationError extends Oauth2Error {
|
|
10232
|
-
|
|
10233
|
-
constructor(message: string, originalError?: unknown);
|
|
10232
|
+
constructor(message: string, cause?: unknown);
|
|
10234
10233
|
}
|
|
10235
10234
|
|
|
10236
10235
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10229,8 +10229,7 @@ declare class CreateTokenResponseError extends Oauth2Error {
|
|
|
10229
10229
|
* Error thrown when an unexpected error occurs during client attestation (wallet attestation) creation.
|
|
10230
10230
|
*/
|
|
10231
10231
|
declare class ClientAttestationError extends Oauth2Error {
|
|
10232
|
-
|
|
10233
|
-
constructor(message: string, originalError?: unknown);
|
|
10232
|
+
constructor(message: string, cause?: unknown);
|
|
10234
10233
|
}
|
|
10235
10234
|
|
|
10236
10235
|
/**
|
package/dist/index.js
CHANGED
|
@@ -180,10 +180,10 @@ var CreateTokenResponseError = class extends Oauth2Error {
|
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
var ClientAttestationError = class extends Oauth2Error {
|
|
183
|
-
constructor(message,
|
|
183
|
+
constructor(message, cause) {
|
|
184
184
|
super(message);
|
|
185
|
-
this.originalError = originalError;
|
|
186
185
|
this.name = "ClientAttestationError";
|
|
186
|
+
this.cause = cause;
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
|
|
@@ -1567,11 +1567,7 @@ async function fetchJarRequestObject(options) {
|
|
|
1567
1567
|
`Fetching request_object from request_uri '${requestUri}' failed`
|
|
1568
1568
|
);
|
|
1569
1569
|
});
|
|
1570
|
-
|
|
1571
|
-
throw new Oauth2Error(
|
|
1572
|
-
`Fetching request_object from request_uri '${requestUri}' failed with status code '${response.status}'.`
|
|
1573
|
-
);
|
|
1574
|
-
}
|
|
1570
|
+
await (0, import_io_wallet_utils17.hasStatusOrThrow)(200, import_io_wallet_utils17.UnexpectedStatusCodeError)(response);
|
|
1575
1571
|
return await response.text();
|
|
1576
1572
|
}
|
|
1577
1573
|
|