@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 CHANGED
@@ -37064,10 +37064,10 @@ __export(index_exports, {
37064
37064
  verifyJws: () => verifyJws
37065
37065
  });
37066
37066
  module.exports = __toCommonJS(index_exports);
37067
- var import_ssi_types = require("@sphereon/ssi-types");
37067
+ var import_ssi_types2 = require("@sphereon/ssi-types");
37068
37068
 
37069
37069
  // src/agent/JwtService.ts
37070
- var import_debug = __toESM(require("debug"), 1);
37070
+ var import_ssi_types = require("@sphereon/ssi-types");
37071
37071
  var import_jose = require("jose");
37072
37072
  var u8a2 = __toESM(require("uint8arrays"), 1);
37073
37073
 
@@ -37276,6 +37276,7 @@ var CompactJwtEncrypter = class {
37276
37276
  };
37277
37277
 
37278
37278
  // src/agent/JwtService.ts
37279
+ var logger = import_ssi_types.Loggers.DEFAULT.get("sphereon:jwt-service");
37279
37280
  var { fromString: fromString2 } = u8a2;
37280
37281
  var JwtService = class {
37281
37282
  static {
@@ -37314,7 +37315,7 @@ var JwtService = class {
37314
37315
  enc: args.enc
37315
37316
  }, recipientKey, issuer, expirationTime, audience } = args;
37316
37317
  try {
37317
- (0, import_debug.default)(`JWE Encrypt: ${JSON.stringify(args, null, 2)}`);
37318
+ logger.debug(`JWE Encrypt: ${JSON.stringify(args, null, 2)}`);
37318
37319
  const alg = jweAlg(args.alg) ?? jweAlg(protectedHeader.alg) ?? "ECDH-ES";
37319
37320
  const enc = jweEnc(args.enc) ?? jweEnc(protectedHeader.enc) ?? "A256GCM";
37320
37321
  const encJwks = recipientKey.jwks.length === 1 ? [
@@ -37702,5 +37703,5 @@ var toJwsJsonGeneralWithIdentifiers = /* @__PURE__ */ __name(async (args, contex
37702
37703
 
37703
37704
  // src/index.ts
37704
37705
  var schema = require_plugin_schema();
37705
- var JwtLogger = import_ssi_types.Loggers.DEFAULT.get("sphereon:sdk:jwt");
37706
+ var JwtLogger = import_ssi_types2.Loggers.DEFAULT.get("sphereon:sdk:jwt");
37706
37707
  //# sourceMappingURL=index.cjs.map