@lucaapp/service-utils 1.40.1 → 1.40.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.
@@ -53,7 +53,7 @@ declare class ServiceIdentity {
53
53
  error: import("../api/types/http").HTTPStatus.FORBIDDEN;
54
54
  }>;
55
55
  })[], undefined, undefined, undefined, z.ZodObject<{
56
- 'X-Identity': z.ZodEffects<z.ZodString, string, string>;
56
+ 'X-Identity': z.ZodString;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  "X-Identity": string;
59
59
  }, {
@@ -35,7 +35,6 @@ const moment_1 = __importDefault(require("moment"));
35
35
  const requestTracer_1 = require("../requestTracer");
36
36
  const axios_1 = __importDefault(require("axios"));
37
37
  const zod_1 = require("zod");
38
- const validator_1 = __importDefault(require("validator"));
39
38
  const JWT_ALGORITHM = 'ES256';
40
39
  const JWT_HEADER_NAME = 'X-Identity';
41
40
  const JWT_ALLOWED_ALGORITHMS = [JWT_ALGORITHM];
@@ -129,7 +128,7 @@ class ServiceIdentity {
129
128
  this.requireServiceIdentityV3 = (service) => (0, api_1.createMiddleware)({
130
129
  schemas: {
131
130
  headers: zod_1.z.object({
132
- 'X-Identity': zod_1.z.string().refine(value => validator_1.default.isJWT(value)),
131
+ 'X-Identity': zod_1.z.string(),
133
132
  }),
134
133
  context: zod_1.z.object({ payload: zod_1.z.any() }),
135
134
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.40.1",
3
+ "version": "1.40.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [