@fileverse-dev/formulajs 4.4.20-mod-5 → 4.4.20-mod-7

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/lib/cjs/index.cjs CHANGED
@@ -1441,7 +1441,7 @@ function VLOOKUP(lookup_value, table_array, col_index_num, range_lookup) {
1441
1441
  return result
1442
1442
  }
1443
1443
 
1444
- function XLOOKUP(search_key, lookup_range, result_range, missing_value, isColV,match_mode, search_mode) {
1444
+ function XLOOKUP(search_key, lookup_range, result_range, isColV, missing_value,match_mode, search_mode) {
1445
1445
  let isCol = isColV === "true" ? true : false;
1446
1446
 
1447
1447
  console.log('XLOOKUP parameters:', { search_key, lookup_range, result_range, missing_value, match_mode, search_mode, isCol });
@@ -1507,7 +1507,7 @@ result_array.map((row) => {
1507
1507
  console.log('Normalized arrays:', { lookup_array, result_array });
1508
1508
 
1509
1509
  let res = performLookup(search_key, lookup_array, result_array, missing_value, match_mode, search_mode, isCol);
1510
- res = isCol ? Array.isArray(res)?res.map((item) => [item.toString()]):res : res;
1510
+ res = isCol ? Array.isArray(res)?res.map((item) => [item.toString()]):res : [res];
1511
1511
  return res
1512
1512
  }
1513
1513
 
package/lib/esm/index.mjs CHANGED
@@ -1439,7 +1439,7 @@ function VLOOKUP(lookup_value, table_array, col_index_num, range_lookup) {
1439
1439
  return result
1440
1440
  }
1441
1441
 
1442
- function XLOOKUP(search_key, lookup_range, result_range, missing_value, isColV,match_mode, search_mode) {
1442
+ function XLOOKUP(search_key, lookup_range, result_range, isColV, missing_value,match_mode, search_mode) {
1443
1443
  let isCol = isColV === "true" ? true : false;
1444
1444
 
1445
1445
  console.log('XLOOKUP parameters:', { search_key, lookup_range, result_range, missing_value, match_mode, search_mode, isCol });
@@ -1505,7 +1505,7 @@ result_array.map((row) => {
1505
1505
  console.log('Normalized arrays:', { lookup_array, result_array });
1506
1506
 
1507
1507
  let res = performLookup(search_key, lookup_array, result_array, missing_value, match_mode, search_mode, isCol);
1508
- res = isCol ? Array.isArray(res)?res.map((item) => [item.toString()]):res : res;
1508
+ res = isCol ? Array.isArray(res)?res.map((item) => [item.toString()]):res : [res];
1509
1509
  return res
1510
1510
  }
1511
1511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.20-mod-5",
3
+ "version": "4.4.20-mod-7",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {
@@ -4522,7 +4522,7 @@ export function WORKDAY_INTL(start_date: any, days: any, weekend: any, holidays:
4522
4522
  * @returns
4523
4523
  */
4524
4524
  export function XIRR(values: any, dates: any, guess: any): any;
4525
- export function XLOOKUP(search_key: any, lookup_range: any, result_range: any, missing_value: any, isColV: any, match_mode: any, search_mode: any): any;
4525
+ export function XLOOKUP(search_key: any, lookup_range: any, result_range: any, isColV: any, missing_value: any, match_mode: any, search_mode: any): any;
4526
4526
  /**
4527
4527
  * Returns the net present value for a schedule of cash flows that is not necessarily periodic.
4528
4528
  *
@@ -4522,7 +4522,7 @@ export function WORKDAY_INTL(start_date: any, days: any, weekend: any, holidays:
4522
4522
  * @returns
4523
4523
  */
4524
4524
  export function XIRR(values: any, dates: any, guess: any): any;
4525
- export function XLOOKUP(search_key: any, lookup_range: any, result_range: any, missing_value: any, isColV: any, match_mode: any, search_mode: any): any;
4525
+ export function XLOOKUP(search_key: any, lookup_range: any, result_range: any, isColV: any, missing_value: any, match_mode: any, search_mode: any): any;
4526
4526
  /**
4527
4527
  * Returns the net present value for a schedule of cash flows that is not necessarily periodic.
4528
4528
  *