Skip to content

Commit

Permalink
Merge pull request #27 from RushikeshPatange/test/smol-toml
Browse files Browse the repository at this point in the history
test of smol-toml with launchpad
  • Loading branch information
RushikeshPatange authored Sep 25, 2023
2 parents 2de46fd + ef3d34a commit 9d45d96
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ let resizeTimeout = false;

import * as utilities from "./utils.js";
import * as esptooljs from "../node_modules/esptool-js/bundle.js";
import * as smolToml from '../node_modules/smol-toml/dist/index.js';

const ESPLoader = esptooljs.ESPLoader;
const Transport = esptooljs.Transport;

Expand Down Expand Up @@ -91,7 +93,8 @@ async function buildQuickTryUI() {
xhr.send();
xhr.onload = function () {
if (xhr.readyState === 4 && xhr.status === 200) {
config = toml.parse(xhr.responseText);
config = smolToml.parse(xhr.responseText);
console.log(config);
var requestedApp = urlParams.get("app");
if (requestedApp) {
// Filter the supported_apps that start with the app name
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"dependencies": {
"crypto-js": "^4.1.1",
"esptool-js": "^0.3.0",
"smol-toml": "^1.1.2",
"toml-js": "^0.0.8",
"xterm": "^4.17.0",
"xterm-addon-fit": "^0.5.0"
Expand Down

0 comments on commit 9d45d96

Please sign in to comment.