zormz 1.4.5 → 1.4.6
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/README.md +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -405,7 +405,7 @@ pruebaData().catch(console.error);
|
|
|
405
405
|
- Compatible con **MYSQL** y **PG**
|
|
406
406
|
- Preparado para extenderse
|
|
407
407
|
- Las versiones +1.3.0 son mas estables , las anteriores estaban en desarrollo y presentan multiples errores
|
|
408
|
-
- version estable 1.4.
|
|
408
|
+
- version estable 1.4.6
|
|
409
409
|
- Se corrigio la compatiblidad de PG al momento de realizar Insert :c losiento
|
|
410
410
|
|
|
411
411
|
## Licencia
|
package/dist/index.d.mts
CHANGED
|
@@ -118,8 +118,9 @@ declare class DeleteR {
|
|
|
118
118
|
execute(seeQuery?: boolean): Promise<number | null>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
type
|
|
122
|
-
type
|
|
121
|
+
type Primitive = string | number | boolean | null;
|
|
122
|
+
type arrayData = Primitive[];
|
|
123
|
+
type arrayDatas = Primitive[][];
|
|
123
124
|
declare class QueryBuilder {
|
|
124
125
|
private tabla;
|
|
125
126
|
private parametros;
|
|
@@ -148,7 +149,7 @@ declare class QueryBuilder {
|
|
|
148
149
|
*/
|
|
149
150
|
Values(values: arrayData | arrayDatas): this;
|
|
150
151
|
Returning(idRetorno: string): this;
|
|
151
|
-
execute(see?: boolean): Promise<
|
|
152
|
+
execute(see?: boolean): Promise<(number)[] | undefined>;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
type valor = "ASC" | "DESC";
|
package/dist/index.d.ts
CHANGED
|
@@ -118,8 +118,9 @@ declare class DeleteR {
|
|
|
118
118
|
execute(seeQuery?: boolean): Promise<number | null>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
type
|
|
122
|
-
type
|
|
121
|
+
type Primitive = string | number | boolean | null;
|
|
122
|
+
type arrayData = Primitive[];
|
|
123
|
+
type arrayDatas = Primitive[][];
|
|
123
124
|
declare class QueryBuilder {
|
|
124
125
|
private tabla;
|
|
125
126
|
private parametros;
|
|
@@ -148,7 +149,7 @@ declare class QueryBuilder {
|
|
|
148
149
|
*/
|
|
149
150
|
Values(values: arrayData | arrayDatas): this;
|
|
150
151
|
Returning(idRetorno: string): this;
|
|
151
|
-
execute(see?: boolean): Promise<
|
|
152
|
+
execute(see?: boolean): Promise<(number)[] | undefined>;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
type valor = "ASC" | "DESC";
|
package/dist/index.js
CHANGED
|
@@ -536,7 +536,7 @@ var QueryBuilder = class {
|
|
|
536
536
|
});
|
|
537
537
|
let response = [];
|
|
538
538
|
if (respuesta.rows !== void 0) {
|
|
539
|
-
response = respuesta.rows.map((obj) => Object.values(obj)[0]);
|
|
539
|
+
response = respuesta.rows.map((obj) => Number(Object.values(obj)[0]));
|
|
540
540
|
}
|
|
541
541
|
return response;
|
|
542
542
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -472,7 +472,7 @@ var QueryBuilder = class {
|
|
|
472
472
|
});
|
|
473
473
|
let response = [];
|
|
474
474
|
if (respuesta.rows !== void 0) {
|
|
475
|
-
response = respuesta.rows.map((obj) => Object.values(obj)[0]);
|
|
475
|
+
response = respuesta.rows.map((obj) => Number(Object.values(obj)[0]));
|
|
476
476
|
}
|
|
477
477
|
return response;
|
|
478
478
|
}
|