@restura/core 1.0.14 → 1.0.16

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/index.js CHANGED
@@ -1938,7 +1938,7 @@ var SqlEngine = class {
1938
1938
  value.match(/#[a-zA-Z][a-zA-Z0-9_]+/g)?.forEach((param) => {
1939
1939
  param = param.replace("#", "");
1940
1940
  const globalParamValue = req.requesterDetails[param];
1941
- if (!globalParamValue)
1941
+ if (globalParamValue === void 0)
1942
1942
  throw new RsError(
1943
1943
  "SCHEMA_ERROR",
1944
1944
  `Invalid global keyword clause in route (${routeData.path}) when looking for (#${param})`
@@ -2056,9 +2056,9 @@ text = text:[a-z0-9 \\t\\r\\n\\-_:@']i+ { return text.join(""); }
2056
2056
 
2057
2057
 
2058
2058
  type = "type" _ ":" _ type:typeString { return type; }
2059
- typeString = text:"startsWith" { return function(column, value) { return \`\${column} ILIKE '\${format.literal(value).slice(1,-1)}%'\`; } } /
2060
- text:"endsWith" { return function(column, value) { return \`\${column} ILIKE '%\${format.literal(value).slice(1,-1)}'\`; } } /
2061
- text:"contains" { return function(column, value) { return \`\${column} ILIKE '%\${format.literal(value).slice(1,-1)}%'\`; } } /
2059
+ typeString = text:"startsWith" { return function(column, value) { return \`\${column}::text ILIKE '\${format.literal(value).slice(1,-1)}%'\`; } } /
2060
+ text:"endsWith" { return function(column, value) { return \`\${column}::text ILIKE '%\${format.literal(value).slice(1,-1)}'\`; } } /
2061
+ text:"contains" { return function(column, value) { return \`\${column}::text ILIKE '%\${format.literal(value).slice(1,-1)}%'\`; } } /
2062
2062
  text:"exact" { return function(column, value) { return \`\${column} = '\${format.literal(value).slice(1,-1)}'\`; } } /
2063
2063
  text:"greaterThanEqual" { return function(column, value) { return \`\${column} >= '\${format.literal(value).slice(1,-1)}'\`; } } /
2064
2064
  text:"greaterThan" { return function(column, value) { return \`\${column} > '\${format.literal(value).slice(1,-1)}'\`; } } /