diff --git a/package-lock.json b/package-lock.json index 16974c2..ac9b56e 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" @@ -23,7 +23,7 @@ "react-native-elements": "^3.4.3", "react-native-root-toast": "^3.4.1", "react-speech-recognition": "^3.9.1", - "reactgenie-dsl": "^0.0.33", + "reactgenie-dsl": "^0.0.34", "reflect-metadata": "^0.1.13", "web-speech-cognitive-services": "7.1.0" }, @@ -23665,9 +23665,9 @@ } }, "node_modules/reactgenie-dsl": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/reactgenie-dsl/-/reactgenie-dsl-0.0.33.tgz", - "integrity": "sha512-BocpQfTnieEPBVZwKZYey5ie3rTH4VbZ21fYZwR7oQvOUJUM85Tu3xDqsjsVUur/7jCRGoum4g2NFDKC0ynzBQ==", + "version": "0.0.34", + "resolved": "https://registry.npmjs.org/reactgenie-dsl/-/reactgenie-dsl-0.0.34.tgz", + "integrity": "sha512-aRfbEQJS0DSr2iMgPOo1nF8NPQkRV0FNPgw6knY39ideK8lJ2e4rKnAGTEf559TSRQHGSNXbJ4oFH86KA5CLiA==", "dependencies": { "@babel/cli": "^7.21.5", "@babel/core": "^7.22.1", @@ -48977,9 +48977,9 @@ "requires": {} }, "reactgenie-dsl": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/reactgenie-dsl/-/reactgenie-dsl-0.0.33.tgz", - "integrity": "sha512-BocpQfTnieEPBVZwKZYey5ie3rTH4VbZ21fYZwR7oQvOUJUM85Tu3xDqsjsVUur/7jCRGoum4g2NFDKC0ynzBQ==", + "version": "0.0.34", + "resolved": "https://registry.npmjs.org/reactgenie-dsl/-/reactgenie-dsl-0.0.34.tgz", + "integrity": "sha512-aRfbEQJS0DSr2iMgPOo1nF8NPQkRV0FNPgw6knY39ideK8lJ2e4rKnAGTEf559TSRQHGSNXbJ4oFH86KA5CLiA==", "requires": { "@babel/cli": "^7.21.5", "@babel/core": "^7.22.1", @@ -49878,7 +49878,7 @@ "react-native-elements": "^3.4.3", "react-native-root-toast": "^3.4.1", "react-speech-recognition": "^3.9.1", - "reactgenie-dsl": "^0.0.33", + "reactgenie-dsl": "^0.0.34", "reflect-metadata": "^0.1.13", "web-speech-cognitive-services": "7.1.0" }, @@ -67929,9 +67929,9 @@ "requires": {} }, "reactgenie-dsl": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/reactgenie-dsl/-/reactgenie-dsl-0.0.33.tgz", - "integrity": "sha512-BocpQfTnieEPBVZwKZYey5ie3rTH4VbZ21fYZwR7oQvOUJUM85Tu3xDqsjsVUur/7jCRGoum4g2NFDKC0ynzBQ==", + "version": "0.0.34", + "resolved": "https://registry.npmjs.org/reactgenie-dsl/-/reactgenie-dsl-0.0.34.tgz", + "integrity": "sha512-aRfbEQJS0DSr2iMgPOo1nF8NPQkRV0FNPgw6knY39ideK8lJ2e4rKnAGTEf559TSRQHGSNXbJ4oFH86KA5CLiA==", "requires": { "@babel/cli": "^7.21.5", "@babel/core": "^7.22.1", 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"; } }