@bee.js/node 0.0.54 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/beehive.js +5 -4
- package/package.json +2 -2
package/beehive.js
CHANGED
|
@@ -200,7 +200,8 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
200
200
|
|
|
201
201
|
await this.dbEngine()
|
|
202
202
|
|
|
203
|
-
data[mainContainer]
|
|
203
|
+
if(data[mainContainer]?.length)
|
|
204
|
+
data[mainContainer] = data[mainContainer][0]
|
|
204
205
|
|
|
205
206
|
return this
|
|
206
207
|
},
|
|
@@ -209,7 +210,7 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
209
210
|
|
|
210
211
|
await this.dbEngine()
|
|
211
212
|
|
|
212
|
-
if(
|
|
213
|
+
if(data[mainContainer]?.length)
|
|
213
214
|
data[mainContainer] = data[mainContainer][0]
|
|
214
215
|
|
|
215
216
|
|
|
@@ -219,7 +220,7 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
219
220
|
last: async function() {
|
|
220
221
|
|
|
221
222
|
await this.dbEngine()
|
|
222
|
-
|
|
223
|
+
|
|
223
224
|
data[mainContainer] = data[mainContainer][data[mainContainer].length-1]
|
|
224
225
|
|
|
225
226
|
return this
|
|
@@ -489,4 +490,4 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
489
490
|
},
|
|
490
491
|
}
|
|
491
492
|
)
|
|
492
|
-
}
|
|
493
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bee.js/node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"description": "A JavaScript framework for making Node.js API´s",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"glob": "^7.1.6",
|
|
33
33
|
"http": "^0.0.1-security",
|
|
34
34
|
"make-error": "^1.3.6",
|
|
35
|
-
"mysql2": "
|
|
35
|
+
"mysql2": "3.11.0",
|
|
36
36
|
"nodemon": "^2.0.6",
|
|
37
37
|
"util": "^0.12.2",
|
|
38
38
|
"uuid": "^9.0.0"
|