create-mikro 0.12.0 → 0.13.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mikro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Create a new Mikro.js project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esp32",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"prettier": "^3.4.0",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"typescript-eslint": "^8.59.0",
|
|
48
|
-
"@mikrojs/eslint-plugin": "0.
|
|
48
|
+
"@mikrojs/eslint-plugin": "0.13.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=24.0.0"
|
|
@@ -15,13 +15,13 @@ if (!connectResult.ok) {
|
|
|
15
15
|
console.log("Connected! IP: %s", connectResult.value.ip);
|
|
16
16
|
|
|
17
17
|
// Request JSON from an API
|
|
18
|
-
const result = await request("https://
|
|
18
|
+
const result = await request("https://httpbingo.org/json");
|
|
19
19
|
if (result.ok) {
|
|
20
20
|
if (!result.value.ok) {
|
|
21
21
|
console.error(`HTTP error: ${result.value.status}`);
|
|
22
22
|
} else {
|
|
23
23
|
const data = await result.value.json();
|
|
24
|
-
console.log("Fetched
|
|
24
|
+
console.log("Fetched: %o", data);
|
|
25
25
|
}
|
|
26
26
|
} else {
|
|
27
27
|
console.error("Request failed: %s", result.error.name);
|