From ac6ed91c0198da7e6a36f8be799e34d434c42a71 Mon Sep 17 00:00:00 2001 From: Acidiney Dias Date: Wed, 17 Jul 2024 01:34:19 +0100 Subject: [PATCH] chore: publish version 2.0.2 --- package.json | 2 +- src/node_dto.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4e429e..bbbb391 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-dto", - "version": "2.0.1", + "version": "2.0.2", "description": "A small dto lib for nodejs", "exports": { "require": "./dist/index.js", diff --git a/src/node_dto.mjs b/src/node_dto.mjs index 5b33a83..a35de19 100644 --- a/src/node_dto.mjs +++ b/src/node_dto.mjs @@ -217,7 +217,7 @@ export class NodeDto { } } - const errors = withErrors.filter((f) => Object.keys(f).length) + const errors = withErrors.filter((f) => Object.keys(f).length); if (errors.length) { return { success: false, errors }; }