@leankylin-sheet/formula-parser 4.0.65 → 4.1.1

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/dist/index.esm.js CHANGED
@@ -2225,6 +2225,12 @@ var Parser$1 = /*#__PURE__*/function (_Emitter) {
2225
2225
  }, {
2226
2226
  key: "getVariable",
2227
2227
  value: function getVariable(name) {
2228
+ var _this$variables, _this$variables$sheet;
2229
+ var sheetId = this.options.sheetId;
2230
+ if (((_this$variables = this.variables) === null || _this$variables === void 0 ? void 0 : (_this$variables$sheet = _this$variables[sheetId]) === null || _this$variables$sheet === void 0 ? void 0 : _this$variables$sheet[name]) !== undefined) {
2231
+ var _this$variables2;
2232
+ return (_this$variables2 = this.variables) === null || _this$variables2 === void 0 ? void 0 : _this$variables2[sheetId][name];
2233
+ }
2228
2234
  return this.variables[name];
2229
2235
  }
2230
2236
 
package/dist/index.js CHANGED
@@ -2253,6 +2253,12 @@ var Parser$1 = /*#__PURE__*/function (_Emitter) {
2253
2253
  }, {
2254
2254
  key: "getVariable",
2255
2255
  value: function getVariable(name) {
2256
+ var _this$variables, _this$variables$sheet;
2257
+ var sheetId = this.options.sheetId;
2258
+ if (((_this$variables = this.variables) === null || _this$variables === void 0 ? void 0 : (_this$variables$sheet = _this$variables[sheetId]) === null || _this$variables$sheet === void 0 ? void 0 : _this$variables$sheet[name]) !== undefined) {
2259
+ var _this$variables2;
2260
+ return (_this$variables2 = this.variables) === null || _this$variables2 === void 0 ? void 0 : _this$variables2[sheetId][name];
2261
+ }
2256
2262
  return this.variables[name];
2257
2263
  }
2258
2264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/formula-parser",
3
- "version": "4.0.65",
3
+ "version": "4.1.1",
4
4
  "description": "Formula parser",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",