@fileverse-dev/formula-parser 0.2.38 → 0.2.39

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/es/parser.js CHANGED
@@ -37,6 +37,8 @@ var Parser = /*#__PURE__*/function (_Emitter) {
37
37
  _classCallCheck(this, Parser);
38
38
  _this = _callSuper(this, Parser);
39
39
  _this.parser = new GrammarParser();
40
+ _this.cryptoDenomination = "";
41
+ _this.cryptoDecimals = 0;
40
42
  _this.parser.yy = {
41
43
  toNumber: toNumber,
42
44
  trimEdges: trimEdges,
@@ -77,6 +79,7 @@ var Parser = /*#__PURE__*/function (_Emitter) {
77
79
  return _createClass(Parser, [{
78
80
  key: "parse",
79
81
  value: function parse(expression, options) {
82
+ //return
80
83
  expression = normalizeQuotes(expression);
81
84
  var result = null;
82
85
  var error = null;
@@ -250,6 +253,7 @@ var Parser = /*#__PURE__*/function (_Emitter) {
250
253
  }, {
251
254
  key: "_callRangeValue",
252
255
  value: function _callRangeValue(startLabel, endLabel) {
256
+ var _this2 = this;
253
257
  var _extractLabel3 = extractLabel(startLabel),
254
258
  _extractLabel4 = _slicedToArray(_extractLabel3, 3),
255
259
  startRow = _extractLabel4[0],
@@ -285,7 +289,11 @@ var Parser = /*#__PURE__*/function (_Emitter) {
285
289
  var value = [];
286
290
  this.emit("callRangeValue", startCell, endCell, this.options, function () {
287
291
  var _value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
292
+ var _cryptoDenomination = arguments.length > 1 ? arguments[1] : undefined;
293
+ var _cryptoDecimals = arguments.length > 2 ? arguments[2] : undefined;
288
294
  value = _value;
295
+ _this2.cryptoDenomination = _cryptoDenomination;
296
+ _this2.cryptoDecimals = _cryptoDecimals;
289
297
  });
290
298
  return value;
291
299
  }
package/lib/parser.js CHANGED
@@ -45,6 +45,8 @@ var Parser = /*#__PURE__*/function (_Emitter) {
45
45
  _classCallCheck(this, Parser);
46
46
  _this = _callSuper(this, Parser);
47
47
  _this.parser = new _grammarParser.Parser();
48
+ _this.cryptoDenomination = "";
49
+ _this.cryptoDecimals = 0;
48
50
  _this.parser.yy = {
49
51
  toNumber: _number.toNumber,
50
52
  trimEdges: _string.trimEdges,
@@ -85,6 +87,7 @@ var Parser = /*#__PURE__*/function (_Emitter) {
85
87
  return _createClass(Parser, [{
86
88
  key: "parse",
87
89
  value: function parse(expression, options) {
90
+ //return
88
91
  expression = normalizeQuotes(expression);
89
92
  var result = null;
90
93
  var error = null;
@@ -258,6 +261,7 @@ var Parser = /*#__PURE__*/function (_Emitter) {
258
261
  }, {
259
262
  key: "_callRangeValue",
260
263
  value: function _callRangeValue(startLabel, endLabel) {
264
+ var _this2 = this;
261
265
  var _extractLabel3 = (0, _cell.extractLabel)(startLabel),
262
266
  _extractLabel4 = _slicedToArray(_extractLabel3, 3),
263
267
  startRow = _extractLabel4[0],
@@ -293,7 +297,11 @@ var Parser = /*#__PURE__*/function (_Emitter) {
293
297
  var value = [];
294
298
  this.emit("callRangeValue", startCell, endCell, this.options, function () {
295
299
  var _value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
300
+ var _cryptoDenomination = arguments.length > 1 ? arguments[1] : undefined;
301
+ var _cryptoDecimals = arguments.length > 2 ? arguments[2] : undefined;
296
302
  value = _value;
303
+ _this2.cryptoDenomination = _cryptoDenomination;
304
+ _this2.cryptoDecimals = _cryptoDecimals;
297
305
  });
298
306
  return value;
299
307
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formula-parser",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "description": "Formula parser",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",