@fileverse-dev/formulajs 4.4.11-mod-30 → 4.4.11-mod-31

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
@@ -13788,6 +13788,14 @@ async function SAFE(address, utility, chain, limit, offset) {
13788
13788
  if (!apiKey) return `${SERVICE_API_KEY.Safe}_MISSING`;
13789
13789
  if (!chainIdentifier) return 'CHAIN IS NOT SUPPORTED';
13790
13790
 
13791
+ if(!isAddress(address)){
13792
+ address = await fromEnsNameToAddress(address);
13793
+ }
13794
+
13795
+ if(!address){
13796
+ return `${address}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`
13797
+ }
13798
+
13791
13799
  const url = `https://api.safe.global/tx-service/${chainIdentifier}/api/v2/safes/${address}/multisig-transactions?limit=${limit}&offset=${offset}`;
13792
13800
  try {
13793
13801
  const response = await fetch(url,
package/lib/esm/index.mjs CHANGED
@@ -13786,6 +13786,14 @@ async function SAFE(address, utility, chain, limit, offset) {
13786
13786
  if (!apiKey) return `${SERVICE_API_KEY.Safe}_MISSING`;
13787
13787
  if (!chainIdentifier) return 'CHAIN IS NOT SUPPORTED';
13788
13788
 
13789
+ if(!isAddress(address)){
13790
+ address = await fromEnsNameToAddress(address);
13791
+ }
13792
+
13793
+ if(!address){
13794
+ return `${address}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`
13795
+ }
13796
+
13789
13797
  const url = `https://api.safe.global/tx-service/${chainIdentifier}/api/v2/safes/${address}/multisig-transactions?limit=${limit}&offset=${offset}`;
13790
13798
  try {
13791
13799
  const response = await fetch(url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-30",
3
+ "version": "4.4.11-mod-31",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {