@player-ui/markdown-plugin 0.4.1 → 0.4.2

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.
@@ -1971,6 +1971,7 @@ class ExpressionEvaluator {
1971
1971
  return this.hooks.resolve.call(void 0, node, options);
1972
1972
  }
1973
1973
  _execString(exp, options) {
1974
+ var _a;
1974
1975
  if (exp === "") {
1975
1976
  return exp;
1976
1977
  }
@@ -1979,17 +1980,21 @@ class ExpressionEvaluator {
1979
1980
  if (matches) {
1980
1981
  [, matchedExp] = Array.from(matches);
1981
1982
  }
1983
+ let storedAST;
1982
1984
  try {
1983
- const storedAST = this.expressionsCache.get(matchedExp);
1984
- if (storedAST) {
1985
- return this._execAST(storedAST, options);
1985
+ storedAST = (_a = this.expressionsCache.get(matchedExp)) != null ? _a : parseExpression(matchedExp);
1986
+ this.expressionsCache.set(matchedExp, storedAST);
1987
+ } catch (e) {
1988
+ if (options.throwErrors || !this.hooks.onError.call(e)) {
1989
+ throw new ts_nested_error__WEBPACK_IMPORTED_MODULE_2__["NestedError"](`Error parsing expression: ${exp}`, e);
1986
1990
  }
1987
- const expAST = parseExpression(matchedExp);
1988
- this.expressionsCache.set(matchedExp, expAST);
1989
- return this._execAST(expAST, options);
1991
+ return;
1992
+ }
1993
+ try {
1994
+ return this._execAST(storedAST, options);
1990
1995
  } catch (e) {
1991
1996
  if (options.throwErrors || !this.hooks.onError.call(e)) {
1992
- throw e;
1997
+ throw new ts_nested_error__WEBPACK_IMPORTED_MODULE_2__["NestedError"](`Error evaluating expression: ${exp}`, e);
1993
1998
  }
1994
1999
  }
1995
2000
  }
@@ -5089,8 +5094,8 @@ var __async = (__this, __arguments, generator) => {
5089
5094
  step((generator = generator.apply(__this, __arguments)).next());
5090
5095
  });
5091
5096
  };
5092
- const PLAYER_VERSION = "0.4.1";
5093
- const COMMIT = "e0fae84560ce37a93279597faa0d4612e88263ee";
5097
+ const PLAYER_VERSION = "0.4.2";
5098
+ const COMMIT = "56e31c1a3b2f282a6359d7abfc2fdc115e5742d2";
5094
5099
  const _Player = class {
5095
5100
  constructor(config) {
5096
5101
  this.logger = new TapableLogger();