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/CHANGELOG.md +13 -0
- package/dist/index.global.js +6 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -508,14 +508,16 @@ var Logger = class _Logger {
|
|
|
508
508
|
}
|
|
509
509
|
formatMessage(logMessage) {
|
|
510
510
|
const { level, message, timestamp, data } = logMessage;
|
|
511
|
-
|
|
511
|
+
const sanitizedMessage = String(message).replace(/[\r\n]/g, "");
|
|
512
|
+
let formattedMessage = `[${timestamp}] ${level}: ${sanitizedMessage}`;
|
|
512
513
|
if (data) {
|
|
513
514
|
try {
|
|
514
515
|
formattedMessage += `
|
|
515
516
|
${JSON.stringify(data, null, 2)}`;
|
|
516
517
|
} catch (error) {
|
|
518
|
+
const sanitizedError = String(error).replace(/[\r\n]/g, "");
|
|
517
519
|
formattedMessage += `
|
|
518
|
-
[JSON.stringify Error/Circular]: ${
|
|
520
|
+
[JSON.stringify Error/Circular]: ${sanitizedError}`;
|
|
519
521
|
}
|
|
520
522
|
}
|
|
521
523
|
return formattedMessage;
|
|
@@ -3126,7 +3128,7 @@ var AbiParser1 = class {
|
|
|
3126
3128
|
parsingStrategy;
|
|
3127
3129
|
constructor(abi, parsingStrategy) {
|
|
3128
3130
|
this.abi = abi;
|
|
3129
|
-
this.parsingStrategy = parsingStrategy ||
|
|
3131
|
+
this.parsingStrategy = parsingStrategy || hdParsingStrategy;
|
|
3130
3132
|
}
|
|
3131
3133
|
getRequestParser(abiType) {
|
|
3132
3134
|
if (this.parsingStrategy.request[abiType]) {
|
|
@@ -3172,7 +3174,7 @@ var AbiParser2 = class {
|
|
|
3172
3174
|
parsingStrategy;
|
|
3173
3175
|
constructor(abi, parsingStrategy) {
|
|
3174
3176
|
this.abi = abi;
|
|
3175
|
-
this.parsingStrategy = parsingStrategy ||
|
|
3177
|
+
this.parsingStrategy = parsingStrategy || hdParsingStrategy;
|
|
3176
3178
|
}
|
|
3177
3179
|
getRequestParser(abiType) {
|
|
3178
3180
|
if (this.parsingStrategy.request[abiType]) {
|