@fileverse-dev/formulajs 4.4.21-price-and-wallet-5 → 4.4.21-price-and-wallet-6

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
@@ -19190,16 +19190,15 @@ async function PRICE() {
19190
19190
 
19191
19191
  if(isAddress$1.isAddress(input1)) {
19192
19192
  const tokenAddress = input1;
19193
- url += `&token=${encodeURIComponent(tokenAddress)}&chain=${encodeURIComponent(input2)}`;
19193
+ url += `&token=${tokenAddress}&chain=${input2}`;
19194
19194
  if(input3){
19195
19195
  url += `&time=${encodeURIComponent(input3)}`;
19196
19196
  }
19197
19197
  } else {
19198
19198
  const coin = input1.replace(/\s+/g, "");
19199
- url += `&coin=${encodeURIComponent(coin)}`;
19199
+ url += `&coin=${coin}`;
19200
19200
  if (input2) {
19201
19201
  url += `&time=${encodeURIComponent(input2)}`;
19202
- url += `&coin=${encodeURIComponent(coin)}`;
19203
19202
  } else if(coin.split(',') === 1) {
19204
19203
  returnSingleValue = true;
19205
19204
  }
@@ -19263,10 +19262,10 @@ const getResolvedAddresses = async (addresses) => {
19263
19262
 
19264
19263
  async function WALLET() {
19265
19264
  try {
19266
- const [addresses, chains, query, time] = argsToArray(arguments);
19265
+ let [addresses, chains, query, time] = argsToArray(arguments);
19267
19266
  validateParams(walletParamsSchema, { addresses, chains, query, time });
19268
19267
 
19269
- // eslint-disable-next-line no-undef
19268
+ addresses = addresses.replace(/\s+/g, "");
19270
19269
  const baseUrl = window.useLocal ? 'http://localhost:3000' : 'https://onchain-proxy.fileverse.io';
19271
19270
 
19272
19271
  const resolvedAddresses = await getResolvedAddresses(addresses);
@@ -19297,7 +19296,7 @@ async function WALLET() {
19297
19296
 
19298
19297
 
19299
19298
  // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance", "720,1,24").then(console.log)
19300
- // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, 0xfA0253943c3FF0e43898cba5A7a0dA9D17C27995", "ethereum", "txns", "720").then(console.log)
19299
+ // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, 0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4", "ethereum, base", "balance", "720").then(console.log)
19301
19300
  // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance").then(console.log)
19302
19301
 
19303
19302
  // export {GNOSISPAY} from './gnosispay/gnosispay.js'
@@ -965,7 +965,7 @@ var WALLET_metadata = {
965
965
  {
966
966
  name: "addresses",
967
967
  detail: "Comma separated addresses / ens",
968
- example: '"vitalik.eth", "0xfA0253943c3FF0e43898cba5A7a0dA9D17C27995"',
968
+ example: "vitalik.eth, 0xfA0253943c3FF0e43898cba5A7a0dA9D17C27995",
969
969
  require: "m",
970
970
  type: "string"
971
971
  },
package/lib/esm/index.mjs CHANGED
@@ -19188,16 +19188,15 @@ async function PRICE() {
19188
19188
 
19189
19189
  if(isAddress$1.isAddress(input1)) {
19190
19190
  const tokenAddress = input1;
19191
- url += `&token=${encodeURIComponent(tokenAddress)}&chain=${encodeURIComponent(input2)}`;
19191
+ url += `&token=${tokenAddress}&chain=${input2}`;
19192
19192
  if(input3){
19193
19193
  url += `&time=${encodeURIComponent(input3)}`;
19194
19194
  }
19195
19195
  } else {
19196
19196
  const coin = input1.replace(/\s+/g, "");
19197
- url += `&coin=${encodeURIComponent(coin)}`;
19197
+ url += `&coin=${coin}`;
19198
19198
  if (input2) {
19199
19199
  url += `&time=${encodeURIComponent(input2)}`;
19200
- url += `&coin=${encodeURIComponent(coin)}`;
19201
19200
  } else if(coin.split(',') === 1) {
19202
19201
  returnSingleValue = true;
19203
19202
  }
@@ -19261,10 +19260,10 @@ const getResolvedAddresses = async (addresses) => {
19261
19260
 
19262
19261
  async function WALLET() {
19263
19262
  try {
19264
- const [addresses, chains, query, time] = argsToArray(arguments);
19263
+ let [addresses, chains, query, time] = argsToArray(arguments);
19265
19264
  validateParams(walletParamsSchema, { addresses, chains, query, time });
19266
19265
 
19267
- // eslint-disable-next-line no-undef
19266
+ addresses = addresses.replace(/\s+/g, "");
19268
19267
  const baseUrl = window.useLocal ? 'http://localhost:3000' : 'https://onchain-proxy.fileverse.io';
19269
19268
 
19270
19269
  const resolvedAddresses = await getResolvedAddresses(addresses);
@@ -19295,7 +19294,7 @@ async function WALLET() {
19295
19294
 
19296
19295
 
19297
19296
  // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance", "720,1,24").then(console.log)
19298
- // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, 0xfA0253943c3FF0e43898cba5A7a0dA9D17C27995", "ethereum", "txns", "720").then(console.log)
19297
+ // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, 0x50Aa3435E310d5a2d15a989Bc353ce7f5682E1d4", "ethereum, base", "balance", "720").then(console.log)
19299
19298
  // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance").then(console.log)
19300
19299
 
19301
19300
  // export {GNOSISPAY} from './gnosispay/gnosispay.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.21-price-and-wallet-5",
3
+ "version": "4.4.21-price-and-wallet-6",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {