@bee.js/node 0.0.85 → 0.0.87

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/lib/ORM/beeORM.js CHANGED
@@ -1,10 +1,6 @@
1
1
  const mysql = require("mysql2/promise"); //https://evertpot.com/executing-a-mysql-query-in-nodejs/
2
2
  const beeTools = require("../../tools/beeTools");
3
3
 
4
- const escape = function (string) {
5
- return typeof string === "string" ? string.replace(/'/g, "''") : string;
6
- };
7
-
8
4
  const parseArray = function (param) {
9
5
  switch (typeof param) {
10
6
  case "string":
@@ -233,7 +229,7 @@ module.exports = {
233
229
  if (!field.ai && onlyFields.length && !onlyFields.includes(field.name))
234
230
  continue;
235
231
 
236
- let value = escape(data[key][field.name]);
232
+ let value = data[key][field.name];
237
233
  let type = model.schema[field.name].type;
238
234
 
239
235
  if (statement == "INSERT" && field.ai)
@@ -256,13 +252,9 @@ module.exports = {
256
252
  break;
257
253
  case "date":
258
254
  case "datetime":
259
- case "time":
260
- case "timestamp":
261
255
  binds.push(normalizeDate(value));
262
256
  value = "?";
263
257
  break;
264
- case "binary":
265
- case "file":
266
258
  default:
267
259
  binds.push(value);
268
260
  value = "?";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bee.js/node",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "A JavaScript framework for making Node.js API´s",
5
5
  "main": "index.js",
6
6
  "scripts": {