pg-manipulator 1.0.22 → 1.0.24

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.
@@ -48,6 +48,7 @@ class select_factory {
48
48
  this.query = '';
49
49
  this.index = 1;
50
50
  this.params = [];
51
+ console.log(JSON.parse(JSON.stringify(fields)));
51
52
  this.fields = fields;
52
53
  this.database = database;
53
54
  this.table = table;
@@ -120,7 +121,6 @@ class select_factory {
120
121
  prepare() {
121
122
  return __awaiter(this, void 0, void 0, function* () {
122
123
  var _a;
123
- console.log(this.fields);
124
124
  this.schema = (yield Promise.resolve(`${`../../mapping/${this.database}/${this.table}.js`}`).then(s => __importStar(require(s)))).default;
125
125
  this.params = [];
126
126
  this.query += 'SELECT ';
@@ -52,7 +52,6 @@ function where(database_1, table_1, fields_1, index_1, addQuery_1, addParam_1) {
52
52
  position = index;
53
53
  const schema = (yield Promise.resolve(`${`../../mapping/${database}/index.js`}`).then(s => __importStar(require(s)))).default[table];
54
54
  addQuery(initialized_clausule);
55
- console.log(fields);
56
55
  for (let colum of schema.columns) {
57
56
  if (!fields || ['undefined', 'function'].indexOf(typeof fields[colum.name]) > -1) {
58
57
  continue;
@@ -181,7 +180,6 @@ function where(database_1, table_1, fields_1, index_1, addQuery_1, addParam_1) {
181
180
  }
182
181
  else if (fields[colum.name] !== null) {
183
182
  if (utils_1.texts.indexOf(colum.value.type) > -1) {
184
- console.log(fields[colum.name]);
185
183
  addQuery(` ${initialized ? 'AND' : ''} ${table}.${colum.name} = $${position}`);
186
184
  addParam(fields[colum.name]);
187
185
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",