Skip to content

Commit

Permalink
Update services/npm/npm-last-update.service.js
Browse files Browse the repository at this point in the history
Co-authored-by: chris48s <chris48s@users.noreply.github.com>
  • Loading branch information
MohanKumarAmbati and chris48s authored Nov 2, 2024
1 parent c629321 commit a184a23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/npm/npm-last-update.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a184a23

Please sign in to comment.