@bee.js/node 0.0.85 → 0.0.86

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)
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.86",
4
4
  "description": "A JavaScript framework for making Node.js API´s",
5
5
  "main": "index.js",
6
6
  "scripts": {