@aztec/simulator 3.0.0-nightly.20251224 → 3.0.0-nightly.20251226
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.
|
@@ -75,11 +75,26 @@ function mainLoop() {
|
|
|
75
75
|
input: process.stdin,
|
|
76
76
|
terminal: false
|
|
77
77
|
});
|
|
78
|
+
// Process lines sequentially to avoid race conditions in responses
|
|
79
|
+
const lineQueue = [];
|
|
80
|
+
let processing = false;
|
|
81
|
+
async function processQueue() {
|
|
82
|
+
if (processing || lineQueue.length === 0) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
processing = true;
|
|
86
|
+
while(lineQueue.length > 0){
|
|
87
|
+
const line = lineQueue.shift();
|
|
88
|
+
await execute(line);
|
|
89
|
+
}
|
|
90
|
+
processing = false;
|
|
91
|
+
}
|
|
78
92
|
rl.on('line', (line)=>{
|
|
79
93
|
if (line.trim()) {
|
|
80
|
-
|
|
94
|
+
lineQueue.push(line);
|
|
95
|
+
void processQueue();
|
|
81
96
|
}
|
|
82
97
|
});
|
|
83
98
|
rl.on('close', ()=>process.exit(0));
|
|
84
99
|
}
|
|
85
|
-
mainLoop();
|
|
100
|
+
void mainLoop();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/simulator",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251226",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": "./dest/server.js",
|
|
@@ -64,26 +64,26 @@
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
68
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
69
|
-
"@aztec/native": "3.0.0-nightly.
|
|
70
|
-
"@aztec/noir-acvm_js": "3.0.0-nightly.
|
|
71
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
72
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
73
|
-
"@aztec/noir-types": "3.0.0-nightly.
|
|
74
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
75
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
76
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
77
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
67
|
+
"@aztec/constants": "3.0.0-nightly.20251226",
|
|
68
|
+
"@aztec/foundation": "3.0.0-nightly.20251226",
|
|
69
|
+
"@aztec/native": "3.0.0-nightly.20251226",
|
|
70
|
+
"@aztec/noir-acvm_js": "3.0.0-nightly.20251226",
|
|
71
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251226",
|
|
72
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251226",
|
|
73
|
+
"@aztec/noir-types": "3.0.0-nightly.20251226",
|
|
74
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251226",
|
|
75
|
+
"@aztec/stdlib": "3.0.0-nightly.20251226",
|
|
76
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251226",
|
|
77
|
+
"@aztec/world-state": "3.0.0-nightly.20251226",
|
|
78
78
|
"lodash.clonedeep": "^4.5.0",
|
|
79
79
|
"lodash.merge": "^4.6.2",
|
|
80
80
|
"tslib": "^2.4.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
84
|
-
"@aztec/merkle-tree": "3.0.0-nightly.
|
|
85
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
86
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
83
|
+
"@aztec/kv-store": "3.0.0-nightly.20251226",
|
|
84
|
+
"@aztec/merkle-tree": "3.0.0-nightly.20251226",
|
|
85
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251226",
|
|
86
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20251226",
|
|
87
87
|
"@jest/globals": "^30.0.0",
|
|
88
88
|
"@types/jest": "^30.0.0",
|
|
89
89
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
@@ -111,12 +111,30 @@ async function execute(base64Line: string): Promise<void> {
|
|
|
111
111
|
|
|
112
112
|
function mainLoop() {
|
|
113
113
|
const rl = createInterface({ input: process.stdin, terminal: false });
|
|
114
|
+
|
|
115
|
+
// Process lines sequentially to avoid race conditions in responses
|
|
116
|
+
const lineQueue: string[] = [];
|
|
117
|
+
let processing = false;
|
|
118
|
+
|
|
119
|
+
async function processQueue() {
|
|
120
|
+
if (processing || lineQueue.length === 0) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
processing = true;
|
|
124
|
+
while (lineQueue.length > 0) {
|
|
125
|
+
const line = lineQueue.shift()!;
|
|
126
|
+
await execute(line);
|
|
127
|
+
}
|
|
128
|
+
processing = false;
|
|
129
|
+
}
|
|
130
|
+
|
|
114
131
|
rl.on('line', (line: string) => {
|
|
115
132
|
if (line.trim()) {
|
|
116
|
-
|
|
133
|
+
lineQueue.push(line);
|
|
134
|
+
void processQueue();
|
|
117
135
|
}
|
|
118
136
|
});
|
|
119
137
|
rl.on('close', () => process.exit(0));
|
|
120
138
|
}
|
|
121
139
|
|
|
122
|
-
mainLoop();
|
|
140
|
+
void mainLoop();
|