bun-query-builder 0.2.32 → 0.2.34
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/dist/bin/cli.js +5 -4
- package/dist/src/index.js +4 -3
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -28974,11 +28974,12 @@ function detectTypeFromValidationRule(rule) {
|
|
|
28974
28974
|
if (ruleObj.name) {
|
|
28975
28975
|
const name = String(ruleObj.name).toLowerCase();
|
|
28976
28976
|
switch (name) {
|
|
28977
|
-
case "string":
|
|
28978
|
-
case "text": {
|
|
28977
|
+
case "string": {
|
|
28979
28978
|
const maxValue = extractMaxFromRules(ruleObj);
|
|
28980
28979
|
return maxValue && maxValue > MAX_BOUNDED_VARCHAR_LENGTH ? "text" : "string";
|
|
28981
28980
|
}
|
|
28981
|
+
case "text":
|
|
28982
|
+
return "text";
|
|
28982
28983
|
case "integer":
|
|
28983
28984
|
case "int":
|
|
28984
28985
|
return "integer";
|
|
@@ -28987,7 +28988,7 @@ function detectTypeFromValidationRule(rule) {
|
|
|
28987
28988
|
case "float":
|
|
28988
28989
|
return "float";
|
|
28989
28990
|
case "number":
|
|
28990
|
-
return "
|
|
28991
|
+
return "decimal";
|
|
28991
28992
|
case "double":
|
|
28992
28993
|
return "double";
|
|
28993
28994
|
case "decimal":
|
|
@@ -32188,7 +32189,7 @@ function getPrefix() {
|
|
|
32188
32189
|
}
|
|
32189
32190
|
var prefix = getPrefix();
|
|
32190
32191
|
// package.json
|
|
32191
|
-
var version2 = "0.2.
|
|
32192
|
+
var version2 = "0.2.34";
|
|
32192
32193
|
|
|
32193
32194
|
// bin/cli.ts
|
|
32194
32195
|
init_actions();
|
package/dist/src/index.js
CHANGED
|
@@ -28973,11 +28973,12 @@ function detectTypeFromValidationRule(rule) {
|
|
|
28973
28973
|
if (ruleObj.name) {
|
|
28974
28974
|
const name = String(ruleObj.name).toLowerCase();
|
|
28975
28975
|
switch (name) {
|
|
28976
|
-
case "string":
|
|
28977
|
-
case "text": {
|
|
28976
|
+
case "string": {
|
|
28978
28977
|
const maxValue = extractMaxFromRules(ruleObj);
|
|
28979
28978
|
return maxValue && maxValue > MAX_BOUNDED_VARCHAR_LENGTH ? "text" : "string";
|
|
28980
28979
|
}
|
|
28980
|
+
case "text":
|
|
28981
|
+
return "text";
|
|
28981
28982
|
case "integer":
|
|
28982
28983
|
case "int":
|
|
28983
28984
|
return "integer";
|
|
@@ -28986,7 +28987,7 @@ function detectTypeFromValidationRule(rule) {
|
|
|
28986
28987
|
case "float":
|
|
28987
28988
|
return "float";
|
|
28988
28989
|
case "number":
|
|
28989
|
-
return "
|
|
28990
|
+
return "decimal";
|
|
28990
28991
|
case "double":
|
|
28991
28992
|
return "double";
|
|
28992
28993
|
case "decimal":
|
package/package.json
CHANGED