From 66a1a6f3efce6889320f59f221b0242f9e6584fe Mon Sep 17 00:00:00 2001 From: Yingtian Shi Date: Mon, 6 Nov 2023 13:50:57 +0800 Subject: [PATCH 1/2] add async to scripts --- scripts/set-script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/set-script.js b/scripts/set-script.js index fab1282..539cfde 100755 --- a/scripts/set-script.js +++ b/scripts/set-script.js @@ -37,7 +37,7 @@ const interpreter = new DslInterpreter(descriptors, true); //get all commands const cmd = fs.readFileSync('./__test__/dry-run-input.txt', 'utf8'); // split by new line -const cmdList = cmd.split('\n'); +const cmdList = cmd.split("\\n"); console.log(cmdList); let output = ""; @@ -46,11 +46,11 @@ for (let i = 0; i < cmdList.length; i++) { try { let funcCallResult = await interpreter.interpret(cmd); console.log(funcCallResult); - output += JSON.stringify({status: 'success', result: funcCallResult}) + '\n'; + output += JSON.stringify({status: 'success', result: funcCallResult}) + "\\n"; // print ok or success } catch (e) { - output += JSON.stringify({status: 'error', result: e}) + '\n'; + output += JSON.stringify({status: 'error', result: e}) + "\\n"; } } From 4375f14dfaebbea267fb762512c2a6432fd43d5e Mon Sep 17 00:00:00 2001 From: Yingtian Shi Date: Mon, 6 Nov 2023 13:54:45 +0800 Subject: [PATCH 2/2] bump to 1.1.35 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 16974c2..339122a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "reactgenie-lib", - "version": "1.1.34", + "version": "1.1.35", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "reactgenie-lib", - "version": "1.1.34", + "version": "1.1.35", "license": "Apache-2.0", "workspaces": [ "example" diff --git a/package.json b/package.json index 9b3aa98..49a0fef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reactgenie-lib", - "version": "1.1.34", + "version": "1.1.35", "description": "A Toolkit for Multimodal Applications", "author": "valkjsaaa", "license": "Apache-2.0",