build-logic-statement-ts
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -35,7 +35,27 @@ /** | ||
private statement; | ||
/** | ||
* @deprecated Use addAnd() instead | ||
*/ | ||
setAnd(): AndBuilder<T>; | ||
/** | ||
* @deprecated Use addOr() instead | ||
*/ | ||
setOr(): OrBuilder<T>; | ||
/** | ||
* @deprecated Use addXone() instead | ||
*/ | ||
setXone(): XoneBuilder<T>; | ||
/** | ||
* @deprecated Use addNot() instead | ||
*/ | ||
setNot(): NotBuilder<T>; | ||
/** | ||
* @deprecated Use addStatement() instead | ||
*/ | ||
setStatement(statement: T): StatementBuilder<T>; | ||
addAnd(): AndBuilder<T>; | ||
addOr(): OrBuilder<T>; | ||
addXone(): XoneBuilder<T>; | ||
addNot(): NotBuilder<T>; | ||
addStatement(statement: T): StatementBuilder<T>; | ||
build(): NotStatement<T>; | ||
@@ -42,0 +62,0 @@ } |
@@ -69,2 +69,5 @@ "use strict"; | ||
class NotBuilder { | ||
/** | ||
* @deprecated Use addAnd() instead | ||
*/ | ||
setAnd() { | ||
@@ -74,2 +77,5 @@ this.statement = new AndBuilder(); | ||
} | ||
/** | ||
* @deprecated Use addOr() instead | ||
*/ | ||
setOr() { | ||
@@ -79,2 +85,5 @@ this.statement = new OrBuilder(); | ||
} | ||
/** | ||
* @deprecated Use addXone() instead | ||
*/ | ||
setXone() { | ||
@@ -84,2 +93,5 @@ this.statement = new XoneBuilder(); | ||
} | ||
/** | ||
* @deprecated Use addNot() instead | ||
*/ | ||
setNot() { | ||
@@ -89,2 +101,5 @@ this.statement = new NotBuilder(); | ||
} | ||
/** | ||
* @deprecated Use addStatement() instead | ||
*/ | ||
setStatement(statement) { | ||
@@ -94,2 +109,22 @@ this.statement = new StatementBuilder(statement); | ||
} | ||
addAnd() { | ||
this.statement = new AndBuilder(); | ||
return this.statement; | ||
} | ||
addOr() { | ||
this.statement = new OrBuilder(); | ||
return this.statement; | ||
} | ||
addXone() { | ||
this.statement = new XoneBuilder(); | ||
return this.statement; | ||
} | ||
addNot() { | ||
this.statement = new NotBuilder(); | ||
return this.statement; | ||
} | ||
addStatement(statement) { | ||
this.statement = new StatementBuilder(statement); | ||
return this.statement; | ||
} | ||
build() { | ||
@@ -96,0 +131,0 @@ if (this.statement === undefined) { |
{ | ||
"name": "build-logic-statement-ts", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Build logical statements", | ||
@@ -16,3 +16,3 @@ "main": "dist/index.js", | ||
"lint": "eslint lib/* --ext .ts", | ||
"lint-fix": "eslint lib/* --ext .ts --fix", | ||
"lint:fix": "eslint lib/* --ext .ts --fix", | ||
"build": "tsc", | ||
@@ -19,0 +19,0 @@ "prepare": "tsc", |
# build-logic-statement-ts | ||
Build logical statements | ||
## License | ||
This package is released under the MIT License |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11549
256
7
0