From 989a692573d69e9cf7a0e1b86526bbdda6c31e42 Mon Sep 17 00:00:00 2001 From: "ismailcankaratasss@gmail.com" Date: Wed, 8 Jun 2022 12:37:14 +0300 Subject: [PATCH] version 0.4.0 --- operations/add.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/operations/add.js b/operations/add.js index 1418668..6c2f3ec 100644 --- a/operations/add.js +++ b/operations/add.js @@ -10,7 +10,7 @@ function add(arrayName, data) { newData[arrayName].push(data) } else { log(`${arrayName} is not an array.`, "Error", "error"); - } + } } else { newData[arrayName] = [] newData[arrayName].push(data); diff --git a/package.json b/package.json index 7cd829b..94761b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dbcopycat", - "version": "0.3.2", + "version": "0.4.0", "description": "A JSON Database that saves your Json data in a file and makes it easy for you to perform CRUD operations.", "main": "local.js", "license": "ISC",