Comparing version 0.0.3 to 0.1.0
@@ -12,2 +12,10 @@ import { PredicateBaseBuilder } from './basebuilders'; | ||
/** | ||
* Sets a field if the conditional check is true. | ||
* | ||
* @param field The field name | ||
* @param arg The value to set | ||
* @param check The conditional check | ||
*/ | ||
setIf(field: string, arg: unknown, check: boolean): Update; | ||
/** | ||
* Builds the final select statement. | ||
@@ -14,0 +22,0 @@ */ |
@@ -23,2 +23,15 @@ "use strict"; | ||
/** | ||
* Sets a field if the conditional check is true. | ||
* | ||
* @param field The field name | ||
* @param arg The value to set | ||
* @param check The conditional check | ||
*/ | ||
setIf(field, arg, check) { | ||
if (check) { | ||
return this.set(field, arg); | ||
} | ||
return this; | ||
} | ||
/** | ||
* Builds the final select statement. | ||
@@ -25,0 +38,0 @@ */ |
{ | ||
"name": "sqrolls", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "sql builder library", | ||
@@ -23,4 +23,4 @@ "keywords": [ | ||
"test": "jest", | ||
"prepublishOnly": "npm test", | ||
"prepare": "npm run build" | ||
"prepublishOnly": "yarn test", | ||
"prepare": "yarn build" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18552
533