Comparing version 1.15.12 to 1.15.13
import { ExpressionConverter } from '../../..'; | ||
import { OperandBuilder } from '../../../operand/domain'; | ||
import { ExprH3lp } from '../../../shared/infrastructure'; | ||
export declare class ExpressionConvertFunction implements ExpressionConverter { | ||
private readonly operandBuilder; | ||
constructor(operandBuilder: OperandBuilder); | ||
private readonly helper; | ||
constructor(operandBuilder: OperandBuilder, helper: ExprH3lp); | ||
/** | ||
@@ -7,0 +9,0 @@ * Convert a lambda expression to a query expression |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ExpressionConvertFunction = void 0; | ||
const __1 = require("../../.."); | ||
const domain_1 = require("../../../shared/domain"); | ||
class ExpressionConvertFunction { | ||
// eslint-disable-next-line no-useless-constructor | ||
constructor(operandBuilder) { | ||
constructor(operandBuilder, helper) { | ||
this.operandBuilder = operandBuilder; | ||
this.helper = helper; | ||
} | ||
@@ -21,3 +21,3 @@ /** | ||
} | ||
const expression = __1.helper.expression.clearLambda(func); | ||
const expression = this.helper.expression.clearLambda(func); | ||
const operand = this.operandBuilder.build(expression); | ||
@@ -24,0 +24,0 @@ let aux = operand; |
import { Expressions } from '../domain'; | ||
import { Helper } from '../../shared/application'; | ||
import { ExprH3lp } from '../../shared/infrastructure'; | ||
export declare class ExpressionsBuilder { | ||
private readonly helper; | ||
constructor(helper: Helper); | ||
constructor(helper: ExprH3lp); | ||
build(): Expressions; | ||
} |
@@ -20,5 +20,5 @@ "use strict"; | ||
const expressionConvert = new convert_1.ExpressionConvertImp() | ||
.addConvert('function', new convertFromFunction_1.ExpressionConvertFunction(operandFacade.getBuilder('expression'))) | ||
.addConvert('function', new convertFromFunction_1.ExpressionConvertFunction(operandFacade.getBuilder('expression'), this.helper)) | ||
.addConvert('graphql', new convertFromGraphql_1.ExpressionConvertGraphql()); | ||
new library_1.CoreLibrary(operandFacade.getBuilder('expression'), operandFacade).load(model); | ||
new library_1.CoreLibrary(operandFacade.getBuilder('expression'), operandFacade, this.helper).load(model); | ||
const expressionEvaluator = new application_1.ExecutorObserveDecorator(new application_1.ExecutorImpl(operandFacade)); | ||
@@ -25,0 +25,0 @@ return new application_1.ExpressionsImpl(model, expressionConvert, operandFacade, expressionEvaluator, expressionEvaluator); |
import { IStringHelper } from 'h3lp'; | ||
import { IExpressionHelper } from '../../shared/application'; | ||
export declare class ExpressionHelper implements IExpressionHelper { | ||
export declare class ExpressionHelper { | ||
private readonly str; | ||
@@ -5,0 +4,0 @@ constructor(str: IStringHelper); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HelperBuilder = void 0; | ||
const h3lp_1 = require("h3lp"); | ||
const application_1 = require("../../shared/application"); | ||
const infrastructure_1 = require("../../operand/infrastructure"); | ||
const helper_1 = require("./helper"); | ||
class HelperBuilder { | ||
build() { | ||
const constBuilder = new infrastructure_1.ConstBuilderImpl(); | ||
const operandHelper = new infrastructure_1.OperandHelper(constBuilder); | ||
const expressionHelper = new helper_1.ExpressionHelper(h3lp_1.h3lp.str); | ||
return new application_1.Helper(expressionHelper, operandHelper, h3lp_1.h3lp); | ||
} | ||
} | ||
exports.HelperBuilder = HelperBuilder; | ||
// import { h3lp } from 'h3lp' | ||
// import { Helper } from '../../shared/application' | ||
// import { ConstBuilderImpl, OperandHelper } from '../../operand/infrastructure' | ||
// import { ExpressionHelper } from './helper' | ||
// export class HelperBuilder { | ||
// public build ():Helper { | ||
// const constBuilder = new ConstBuilderImpl() | ||
// const operandHelper = new OperandHelper(constBuilder) | ||
// const expressionHelper = new ExpressionHelper(h3lp.str) | ||
// return new Helper(expressionHelper, operandHelper, h3lp) | ||
// } | ||
// } | ||
//# sourceMappingURL=helperBuilder.js.map |
@@ -1,2 +0,1 @@ | ||
export * from './expressionsBuilder'; | ||
export * from './helperBuilder'; | ||
export * from './helper'; |
@@ -17,4 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./expressionsBuilder"), exports); | ||
__exportStar(require("./helperBuilder"), exports); | ||
__exportStar(require("./helper"), exports); | ||
//# sourceMappingURL=index.js.map |
import { ModelService, Library } from '../../model/domain'; | ||
import { OperandBuilder, OperandCloner } from '../../operand/domain'; | ||
import { ExprH3lp } from '../../shared/infrastructure'; | ||
export declare class CoreLibrary implements Library { | ||
private readonly builder; | ||
private readonly cloner; | ||
constructor(builder: OperandBuilder, cloner: OperandCloner); | ||
private readonly helper; | ||
constructor(builder: OperandBuilder, cloner: OperandCloner, helper: ExprH3lp); | ||
load(model: ModelService): void; | ||
@@ -8,0 +10,0 @@ private constants; |
import { Parameter, ActionObserver } from './shared/domain'; | ||
import { ExprH3lp } from './shared/infrastructure'; | ||
export * from './shared/domain'; | ||
export * from './shared/application'; | ||
export * from './shared/infrastructure'; | ||
export * from './model/domain'; | ||
@@ -12,3 +13,3 @@ export * from './model/application'; | ||
export * from './expression/infrastructure'; | ||
export declare const helper: import("./shared/application").Helper; | ||
export declare const exprHelper: ExprH3lp; | ||
export declare const expressions: import("./expression/domain").Expressions; | ||
@@ -15,0 +16,0 @@ /** |
11
index.js
@@ -17,7 +17,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.unsubscribe = exports.subscribe = exports.evalAsync = exports.evaluate = exports.parameters = exports.expressions = exports.helper = void 0; | ||
exports.unsubscribe = exports.subscribe = exports.evalAsync = exports.evaluate = exports.parameters = exports.expressions = exports.exprHelper = void 0; | ||
const h3lp_1 = require("h3lp"); | ||
const infrastructure_1 = require("./expression/infrastructure"); | ||
const infrastructure_1 = require("./shared/infrastructure"); | ||
const expressionsBuilder_1 = require("./expression/infrastructure/expressionsBuilder"); | ||
__exportStar(require("./shared/domain"), exports); | ||
__exportStar(require("./shared/application"), exports); | ||
__exportStar(require("./shared/infrastructure"), exports); | ||
__exportStar(require("./model/domain"), exports); | ||
@@ -31,4 +32,4 @@ __exportStar(require("./model/application"), exports); | ||
__exportStar(require("./expression/infrastructure"), exports); | ||
exports.helper = new infrastructure_1.HelperBuilder().build(); | ||
exports.expressions = new infrastructure_1.ExpressionsBuilder(exports.helper).build(); | ||
exports.exprHelper = new infrastructure_1.ExprH3lp(h3lp_1.h3lp); | ||
exports.expressions = new expressionsBuilder_1.ExpressionsBuilder(exports.exprHelper).build(); | ||
h3lp_1.Factory.add('expressions', exports.expressions); | ||
@@ -35,0 +36,0 @@ /** |
import { Context, Operand } from '../../shared/domain'; | ||
import { IOperandHelper } from '../../shared/application'; | ||
import { ConstBuilder } from '../domain/constBuilder'; | ||
export declare class OperandHelper implements IOperandHelper { | ||
export declare class OperandHelper { | ||
private readonly constBuilder; | ||
@@ -6,0 +5,0 @@ constructor(constBuilder: ConstBuilder); |
{ | ||
"name": "3xpr", | ||
"version": "1.15.12", | ||
"version": "1.15.13", | ||
"description": "expressions", | ||
@@ -24,3 +24,3 @@ "author": "Flavio Lionel Rita <flaviolrita@hotmail.com>", | ||
"h3lp": "^1.9.1", | ||
"typ3s": "^0.1.17" | ||
"typ3s": "^0.1.18" | ||
}, | ||
@@ -27,0 +27,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
649566
7839
241
Updatedtyp3s@^0.1.18