starknet 10.7.4 → 10.7.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/dist/index.js CHANGED
@@ -693,14 +693,16 @@ var Logger = class _Logger {
693
693
  }
694
694
  formatMessage(logMessage) {
695
695
  const { level, message, timestamp, data } = logMessage;
696
- let formattedMessage = `[${timestamp}] ${level}: ${message}`;
696
+ const sanitizedMessage = String(message).replace(/[\r\n]/g, "");
697
+ let formattedMessage = `[${timestamp}] ${level}: ${sanitizedMessage}`;
697
698
  if (data) {
698
699
  try {
699
700
  formattedMessage += `
700
701
  ${JSON.stringify(data, null, 2)}`;
701
702
  } catch (error) {
703
+ const sanitizedError = String(error).replace(/[\r\n]/g, "");
702
704
  formattedMessage += `
703
- [JSON.stringify Error/Circular]: ${error}`;
705
+ [JSON.stringify Error/Circular]: ${sanitizedError}`;
704
706
  }
705
707
  }
706
708
  return formattedMessage;
@@ -3311,7 +3313,7 @@ var AbiParser1 = class {
3311
3313
  parsingStrategy;
3312
3314
  constructor(abi, parsingStrategy) {
3313
3315
  this.abi = abi;
3314
- this.parsingStrategy = parsingStrategy || fastParsingStrategy;
3316
+ this.parsingStrategy = parsingStrategy || hdParsingStrategy;
3315
3317
  }
3316
3318
  getRequestParser(abiType) {
3317
3319
  if (this.parsingStrategy.request[abiType]) {
@@ -3357,7 +3359,7 @@ var AbiParser2 = class {
3357
3359
  parsingStrategy;
3358
3360
  constructor(abi, parsingStrategy) {
3359
3361
  this.abi = abi;
3360
- this.parsingStrategy = parsingStrategy || fastParsingStrategy;
3362
+ this.parsingStrategy = parsingStrategy || hdParsingStrategy;
3361
3363
  }
3362
3364
  getRequestParser(abiType) {
3363
3365
  if (this.parsingStrategy.request[abiType]) {