@freelog/freelog-cg-collection 1.0.17 → 1.0.18

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.
@@ -0,0 +1,4 @@
1
+ import { ContractDeclarationExecute } from "../interface/ContractDeclarationExecute";
2
+ export declare abstract class DefaultContractDeclarationExecutor implements ContractDeclarationExecute {
3
+ execute(keyword: string, dataObj: any): any;
4
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultContractDeclarationExecutor = void 0;
4
+ class DefaultContractDeclarationExecutor {
5
+ execute(keyword, dataObj) {
6
+ throw new Error("这是个空实现,不能被调用!");
7
+ }
8
+ }
9
+ exports.DefaultContractDeclarationExecutor = DefaultContractDeclarationExecutor;
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVmYXVsdENvbnRyYWN0RGVjbGFyYXRpb25FeGVjdXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250cmFjdC1kZWNsYXJhdGlvbi1leGVjdXRvci9EZWZhdWx0Q29udHJhY3REZWNsYXJhdGlvbkV4ZWN1dG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLE1BQXNCLGtDQUFrQztJQUNwRCxPQUFPLENBQUMsT0FBZSxFQUFFLE9BQVk7UUFDakMsTUFBTSxJQUFJLEtBQUssQ0FBQyxlQUFlLENBQUMsQ0FBQztJQUNyQyxDQUFDO0NBQ0o7QUFKRCxnRkFJQyJ9
package/index.js CHANGED
@@ -12,7 +12,7 @@ const {FunctionInvoke} = require("./dist/interface/FunctionInvoke");
12
12
  const {VarContextCapable} = require("./dist/interface/VarContextCapable");
13
13
  const {FunctionHelper} = require("./dist/helper/FunctionHelper");
14
14
  const {ExpHelper} = require("./dist/helper/ExpHelper");
15
- const {ContractDeclarationExecute} = require("./dist/interface/ContractDeclarationExecute");
15
+ const {DefaultContractDeclarationExecutor} = require("./dist/contract-declaration-executor/DefaultContractDeclarationExecutor");
16
16
  const {DefaultFunctionExecutor} = require("./dist/function-executor/DefaultFunctionExecutor");
17
17
 
18
18
  exports.PolicyHelper = PolicyHelper;
@@ -21,7 +21,7 @@ exports.ExpHelper = ExpHelper;
21
21
  exports.FunctionInvoke = FunctionInvoke;
22
22
  exports.VarContextCapable = VarContextCapable;
23
23
 
24
- exports.ContractDeclarationExecute = ContractDeclarationExecute;
24
+ exports.DefaultContractDeclarationExecutor = DefaultContractDeclarationExecutor;
25
25
  exports.DefaultFunctionExecutor = DefaultFunctionExecutor;
26
26
 
27
27
  exports.compile = async function (serviceName, policyText) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/freelog-cg-collection",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "antlr4": "4.8.0",
@@ -0,0 +1,7 @@
1
+ import {ContractDeclarationExecute} from "../interface/ContractDeclarationExecute";
2
+
3
+ export abstract class DefaultContractDeclarationExecutor implements ContractDeclarationExecute{
4
+ execute(keyword: string, dataObj: any): any {
5
+ throw new Error("这是个空实现,不能被调用!");
6
+ }
7
+ }