tova 0.9.12 → 0.9.13
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/bin/tova.js +14 -0
- package/package.json +1 -1
- package/src/version.js +1 -1
package/bin/tova.js
CHANGED
|
@@ -2720,6 +2720,13 @@ shared {
|
|
|
2720
2720
|
}
|
|
2721
2721
|
}
|
|
2722
2722
|
|
|
2723
|
+
security {
|
|
2724
|
+
cors {
|
|
2725
|
+
origins: ["http://localhost:3000"]
|
|
2726
|
+
methods: ["GET", "POST"]
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2723
2730
|
server {
|
|
2724
2731
|
fn get_message() {
|
|
2725
2732
|
Message("Hello from Tova!", Date.new().toLocaleTimeString())
|
|
@@ -3204,6 +3211,13 @@ browser {
|
|
|
3204
3211
|
file: 'src/app.tova',
|
|
3205
3212
|
content: name => `// ${name} — Built with Tova
|
|
3206
3213
|
|
|
3214
|
+
security {
|
|
3215
|
+
cors {
|
|
3216
|
+
origins: ["http://localhost:3000"]
|
|
3217
|
+
methods: ["GET", "POST", "PUT", "DELETE"]
|
|
3218
|
+
}
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3207
3221
|
server {
|
|
3208
3222
|
fn health() {
|
|
3209
3223
|
{ status: "ok" }
|
package/package.json
CHANGED
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/embed-runtime.js — do not edit
|
|
2
|
-
export const VERSION = "0.9.
|
|
2
|
+
export const VERSION = "0.9.13";
|