@lucaapp/service-utils 1.55.8 → 1.55.10

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.
@@ -6,6 +6,7 @@ import { z } from 'zod';
6
6
  type JWKS = {
7
7
  keys: jose.JWK[];
8
8
  };
9
+ type RemoteJWKS = ReturnType<typeof jose.createRemoteJWKSet>;
9
10
  export declare enum ServiceIdentityErrorType {
10
11
  NO_JWT_PROVIDED = "SERVICE_IDENTITY_NO_JWT_PROVIDED",
11
12
  URL_MISMATCH = "SERVICE_IDENTITY_URL_MISMATCH",
@@ -25,7 +26,7 @@ declare class ServiceIdentity {
25
26
  private readonly keyCache;
26
27
  private readonly axiosClient;
27
28
  constructor(identityName: string, identityKid: string, identityPrivateKey: string, identityPublicKey: string, debug?: boolean);
28
- getRemoteJWKS: (service: string) => import("jose/dist/types/types").GetKeyFunction<jose.JWSHeaderParameters, jose.FlattenedJWSInput>;
29
+ getRemoteJWKS: (service: string) => RemoteJWKS;
29
30
  private getJwtVerifyOptions;
30
31
  getIdentityPublicKey: () => Promise<jose.KeyLike>;
31
32
  getIdentityPrivateKey: () => Promise<jose.KeyLike>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.55.8",
3
+ "version": "1.55.10",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -29,7 +29,7 @@
29
29
  "cls-rtracer": "^2.6.2",
30
30
  "express": "4.18.1",
31
31
  "express-async-errors": "3.1.1",
32
- "jose": "4.9.2",
32
+ "jose": "4.15.5",
33
33
  "kafkajs": "2.1.0",
34
34
  "libphonenumber-js": "1.9.44",
35
35
  "lodash": "^4.17.21",