@fileverse-dev/formulajs 4.4.11-mod-64-patch-1 → 4.4.11-mod-64-patch-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.
package/lib/cjs/index.cjs
CHANGED
|
@@ -13310,10 +13310,14 @@ const checkRequiredParams = (inputMap) => {
|
|
|
13310
13310
|
for (const key in inputMap) {
|
|
13311
13311
|
if (!inputMap[key]) {
|
|
13312
13312
|
const stack = new Error().stack?.split('\n')[2];
|
|
13313
|
-
|
|
13314
|
-
|
|
13313
|
+
console.log('STACK LINE:', stack);
|
|
13314
|
+
|
|
13315
|
+
const match = stack?.match(/at (.+?) \(/);
|
|
13316
|
+
const rawFnName = match?.[1];
|
|
13317
|
+
const parentFunctionName = rawFnName?.split('.').pop() || 'anonymous';
|
|
13318
|
+
|
|
13315
13319
|
const paramName = key;
|
|
13316
|
-
return errorMessageHandler(ERROR_MESSAGES_FLAG.MISSING_PARAM, paramName, parentFunctionName)
|
|
13320
|
+
return errorMessageHandler(ERROR_MESSAGES_FLAG.MISSING_PARAM, paramName, parentFunctionName);
|
|
13317
13321
|
}
|
|
13318
13322
|
}
|
|
13319
13323
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -13308,10 +13308,14 @@ const checkRequiredParams = (inputMap) => {
|
|
|
13308
13308
|
for (const key in inputMap) {
|
|
13309
13309
|
if (!inputMap[key]) {
|
|
13310
13310
|
const stack = new Error().stack?.split('\n')[2];
|
|
13311
|
-
|
|
13312
|
-
|
|
13311
|
+
console.log('STACK LINE:', stack);
|
|
13312
|
+
|
|
13313
|
+
const match = stack?.match(/at (.+?) \(/);
|
|
13314
|
+
const rawFnName = match?.[1];
|
|
13315
|
+
const parentFunctionName = rawFnName?.split('.').pop() || 'anonymous';
|
|
13316
|
+
|
|
13313
13317
|
const paramName = key;
|
|
13314
|
-
return errorMessageHandler(ERROR_MESSAGES_FLAG.MISSING_PARAM, paramName, parentFunctionName)
|
|
13318
|
+
return errorMessageHandler(ERROR_MESSAGES_FLAG.MISSING_PARAM, paramName, parentFunctionName);
|
|
13315
13319
|
}
|
|
13316
13320
|
}
|
|
13317
13321
|
};
|
package/package.json
CHANGED