@sphereon/ssi-sdk-ext.jwt-service 0.28.1-feature.esm.cjs.14 → 0.28.1-feature.esm.cjs.16
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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +13 -13
- package/src/agent/JwtService.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -37008,10 +37008,10 @@ var require_plugin_schema = __commonJS({
|
|
|
37008
37008
|
});
|
|
37009
37009
|
|
|
37010
37010
|
// src/index.ts
|
|
37011
|
-
import { Loggers } from "@sphereon/ssi-types";
|
|
37011
|
+
import { Loggers as Loggers2 } from "@sphereon/ssi-types";
|
|
37012
37012
|
|
|
37013
37013
|
// src/agent/JwtService.ts
|
|
37014
|
-
import
|
|
37014
|
+
import { Loggers } from "@sphereon/ssi-types";
|
|
37015
37015
|
import { importJWK } from "jose";
|
|
37016
37016
|
import * as u8a2 from "uint8arrays";
|
|
37017
37017
|
|
|
@@ -37220,6 +37220,7 @@ var CompactJwtEncrypter = class {
|
|
|
37220
37220
|
};
|
|
37221
37221
|
|
|
37222
37222
|
// src/agent/JwtService.ts
|
|
37223
|
+
var logger = Loggers.DEFAULT.get("sphereon:jwt-service");
|
|
37223
37224
|
var { fromString: fromString2 } = u8a2;
|
|
37224
37225
|
var JwtService = class {
|
|
37225
37226
|
static {
|
|
@@ -37258,7 +37259,7 @@ var JwtService = class {
|
|
|
37258
37259
|
enc: args.enc
|
|
37259
37260
|
}, recipientKey, issuer, expirationTime, audience } = args;
|
|
37260
37261
|
try {
|
|
37261
|
-
debug(`JWE Encrypt: ${JSON.stringify(args, null, 2)}`);
|
|
37262
|
+
logger.debug(`JWE Encrypt: ${JSON.stringify(args, null, 2)}`);
|
|
37262
37263
|
const alg = jweAlg(args.alg) ?? jweAlg(protectedHeader.alg) ?? "ECDH-ES";
|
|
37263
37264
|
const enc = jweEnc(args.enc) ?? jweEnc(protectedHeader.enc) ?? "A256GCM";
|
|
37264
37265
|
const encJwks = recipientKey.jwks.length === 1 ? [
|
|
@@ -37646,7 +37647,7 @@ var toJwsJsonGeneralWithIdentifiers = /* @__PURE__ */ __name(async (args, contex
|
|
|
37646
37647
|
|
|
37647
37648
|
// src/index.ts
|
|
37648
37649
|
var schema = require_plugin_schema();
|
|
37649
|
-
var JwtLogger =
|
|
37650
|
+
var JwtLogger = Loggers2.DEFAULT.get("sphereon:sdk:jwt");
|
|
37650
37651
|
export {
|
|
37651
37652
|
COMPACT_JWE_REGEX,
|
|
37652
37653
|
COMPACT_JWS_REGEX,
|