Skip to content

Commit bdc7ad3

Browse files
committed
Urgent syntax error fix and releasing it to npm
1 parent ef0f1b7 commit bdc7ad3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let stdout_print = (stdout) => {
1111
stdout_text = stdout_text.replace('mpjsendline', '');
1212
stdout_ready = true;
1313
//console.log(stdout_text);
14-
}
14+
}
1515
}
1616
global.mpjsPrintStdout = stdout_print;
1717
global.formatString = (object) => object !== undefined ? JSON.stringify(object) : null
@@ -94,6 +94,7 @@ module.exports = (async () => {
9494
stdout_ready = false;
9595
code += "\nprint('mpjsendline')";
9696
if (global.promiseWaitInterval) await wait_exist(() => !global.promiseWaitInterval);
97+
console.log(code);
9798
do_str(code);
9899
await wait_exist(() => stdout_ready);
99100
return stdout_text;
@@ -110,7 +111,7 @@ module.exports = (async () => {
110111
}
111112
return await methods.do_str(pyjs);
112113
}
113-
methods.register_module = async (module, code) {
114+
methods.register_module = async (module, code) => {
114115
if (!pyjs_initiated) return pyjs += '\n' + await methods.do_str(code, module, false);
115116
return await methods.do_str(code, module, true);
116117
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "micropython",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "A WASM module built from the official MicroPython port",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)