Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

build-logic-statement-ts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-logic-statement-ts - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

20

dist/builder.d.ts

@@ -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) {

4

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc