From 0e417fa29f60ebb7f4e87aa76c10cacd248cc596 Mon Sep 17 00:00:00 2001 From: s-traut Date: Sun, 27 Mar 2022 16:13:11 +0200 Subject: [PATCH] Fixing logging --- package.json | 2 +- src/event.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 117986a..3fab989 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dotosb", - "version": "1.6.3", + "version": "1.6.4", "description": "Simple, dependency free osb file parser", "main": "index.js", "keywords": ["parser", "text", "file", "osb", "motion-design", "no-deps"], diff --git a/src/event.js b/src/event.js index 46e6270..f715acf 100644 --- a/src/event.js +++ b/src/event.js @@ -17,7 +17,6 @@ function isValid(event) { if(!type) { - console.log(event); throw `This event type is not allowed '${event.type}'\nAllowed events: ${EVENT_TYPES.values()}\n`; } @@ -25,7 +24,6 @@ function isValid(event) { const eval_size = Array.isArray(event.end_values) ? event.start_values.length : 1; if(sval_size != type) { - console.log(event); throw `Start value(s) given for the event of type '${event.type}' are not valid\n given: ${sval_size} -> required: ${type}\n`; }