From a184a238fb364d4c185956b67f4278ba81e6d232 Mon Sep 17 00:00:00 2001 From: Ambati Mohan Kumar <96166124+MohanKumarAmbati@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:04:24 +0530 Subject: [PATCH] Update services/npm/npm-last-update.service.js Co-authored-by: chris48s --- services/npm/npm-last-update.service.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/npm/npm-last-update.service.js b/services/npm/npm-last-update.service.js index f284ddb65ee03..af46492edc6fd 100644 --- a/services/npm/npm-last-update.service.js +++ b/services/npm/npm-last-update.service.js @@ -10,9 +10,11 @@ const updateResponseSchema = Joi.object({ created: Joi.string().required(), modified: Joi.string().required(), }) - .pattern(Joi.string(), Joi.any()) + .pattern(Joi.string().required(), Joi.string().required()) + .required(), + 'dist-tags': Joi.object() + .pattern(Joi.string().required(), Joi.string().required()) .required(), - 'dist-tags': Joi.object().pattern(Joi.string(), Joi.string()).required(), }).required() export class NpmLastUpdate extends NpmBase {