mevento 1.9.4 → 1.9.6
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/esm2020/lib/mevento.mjs +38 -14
- package/fesm2015/mevento.mjs +39 -13
- package/fesm2015/mevento.mjs.map +1 -1
- package/fesm2020/mevento.mjs +37 -13
- package/fesm2020/mevento.mjs.map +1 -1
- package/lib/mevento.d.ts +5 -2
- package/package.json +1 -1
package/lib/mevento.d.ts
CHANGED
|
@@ -252,9 +252,10 @@ export declare class MEvento extends NodeVisitor {
|
|
|
252
252
|
debug: boolean;
|
|
253
253
|
private static _globalFunctionsRegistry;
|
|
254
254
|
private static _cache;
|
|
255
|
-
_functionsRegistry: {
|
|
255
|
+
protected _functionsRegistry: {
|
|
256
256
|
[k: string]: MEventoFBinding;
|
|
257
257
|
};
|
|
258
|
+
protected _functionResolver?: (name: string) => MEventoFBinding | undefined;
|
|
258
259
|
constructor();
|
|
259
260
|
protected resolve(name: string): any;
|
|
260
261
|
protected changeVariable(name: string, value: any): any;
|
|
@@ -283,6 +284,8 @@ export declare class MEvento extends NodeVisitor {
|
|
|
283
284
|
protected visitContinueAST(node: ContinueAST): ContinueBranch;
|
|
284
285
|
protected _declareForIdentifier(node: AST, value: any): any;
|
|
285
286
|
resolveArguments(args: AST[]): any;
|
|
287
|
+
setFunctionResolver(resolver: (name: string) => MEventoFBinding | undefined): void;
|
|
288
|
+
resolveFunction(name: string): MEventoFBinding | undefined;
|
|
286
289
|
registerFunction(id: string, fn: MEventoFBinding): void;
|
|
287
290
|
unregisterFunction(id: string): void;
|
|
288
291
|
execute(source: string, cache?: boolean): any;
|
|
@@ -306,7 +309,7 @@ export declare class MEventoAsync extends MEvento {
|
|
|
306
309
|
protected visitBinaryExpressionAST(node: BinaryExpressionAST): Promise<any>;
|
|
307
310
|
protected visitUnaryExpressionAST(node: UnaryExpressionAST): Promise<any>;
|
|
308
311
|
protected visitIfStatementAST(node: IfStatementAST): Promise<any>;
|
|
309
|
-
protected visitLogicalExpressionAST(node: LogicalExpressionAST): Promise<
|
|
312
|
+
protected visitLogicalExpressionAST(node: LogicalExpressionAST): Promise<any>;
|
|
310
313
|
protected visitIndexAccessorAST(node: IndexAccessorAST): Promise<any>;
|
|
311
314
|
protected visitObjectProperty(node: AST): Promise<void>;
|
|
312
315
|
protected visitObjectExpression(ast: AST): Promise<any>;
|