@next-core/brick-utils 2.28.4 → 2.28.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.28.5](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.28.4...@next-core/brick-utils@2.28.5) (2021-09-30)
7
+
8
+ **Note:** Version bump only for package @next-core/brick-utils
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.28.4](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.28.3...@next-core/brick-utils@2.28.4) (2021-09-30)
7
15
 
8
16
  **Note:** Version bump only for package @next-core/brick-utils
@@ -1294,6 +1294,8 @@
1294
1294
  globalVariables = {},
1295
1295
  hooks = {}
1296
1296
  } = {}) {
1297
+ var _hooks$beforeEvaluate3;
1298
+
1297
1299
  var expressionOnly = rootAst.type !== "FunctionDeclaration";
1298
1300
  var rootEnv = new DeclarativeEnvironment(null);
1299
1301
  var rootContext = new ExecutionContext();
@@ -2440,9 +2442,9 @@
2440
2442
 
2441
2443
 
2442
2444
  function CallFunction(closure, args) {
2443
- var _hooks$beforeEvaluate3;
2445
+ var _hooks$beforeCall;
2444
2446
 
2445
- (_hooks$beforeEvaluate3 = hooks.beforeEvaluate) === null || _hooks$beforeEvaluate3 === void 0 ? void 0 : _hooks$beforeEvaluate3.call(hooks, closure[SourceNode]);
2447
+ (_hooks$beforeCall = hooks.beforeCall) === null || _hooks$beforeCall === void 0 ? void 0 : _hooks$beforeCall.call(hooks, closure[SourceNode]);
2446
2448
  PrepareForOrdinaryCall(closure);
2447
2449
  var result = OrdinaryCallEvaluateBody(closure, args);
2448
2450
  executionContextStack.pop();
@@ -2890,6 +2892,7 @@
2890
2892
  return GetValue(Evaluate(rootAst));
2891
2893
  }
2892
2894
 
2895
+ (_hooks$beforeEvaluate3 = hooks.beforeEvaluate) === null || _hooks$beforeEvaluate3 === void 0 ? void 0 : _hooks$beforeEvaluate3.call(hooks, rootAst);
2893
2896
  ThrowIfFunctionIsInvalid(rootAst);
2894
2897
  var [fn] = collectBoundNames(rootAst); // Create an immutable binding for the root function.
2895
2898