-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(changeset): fix: clean up old console logs
- Loading branch information
Showing
11 changed files
with
164 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@vinxi/server-functions": patch | ||
"@vinxi/plugin-directives": patch | ||
"vinxi": patch | ||
--- | ||
|
||
fix: clean up old console logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,9 @@ | ||
/// <reference types="vinxi/types/client" /> | ||
import "vinxi/client"; | ||
|
||
import { sayHello } from "./actions"; | ||
import { world } from "./server-functions"; | ||
import "./style.css"; | ||
import { world2 } from "./inline"; | ||
|
||
export async function world2(x) { | ||
"use server"; | ||
console.log("hello world 2", x); | ||
} | ||
|
||
async function world3(x, y) { | ||
"use server"; | ||
console.log("hello world 3", x, y); | ||
} | ||
|
||
const world4 = async (x, y) => { | ||
"use server"; | ||
console.log("hello world 4", x, y); | ||
}; | ||
|
||
const world5 = async (x) => { | ||
"use server"; | ||
console.log("hello world 4", x); | ||
}; | ||
|
||
console.log( | ||
await world(), | ||
await world2(1), | ||
await world3(2, 3), | ||
await world4(5, 6), | ||
await sayHello(), | ||
await world5({ hello: 1, world: "aasd", x: true }), | ||
); | ||
console.log("Hello world!"); | ||
await world2(10); | ||
|
||
document.getElementById("app").innerHTML = `Hello World`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { sayHello } from "./actions"; | ||
import { world } from "./server-functions"; | ||
|
||
export async function world2(x) { | ||
"use server"; | ||
await world3(x, 1); | ||
console.log("hello world 2", x); | ||
} | ||
|
||
async function world3(x, y) { | ||
"use server"; | ||
console.log("hello world 3", x, y); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,6 +176,7 @@ | |
}, | ||
"devDependencies": { | ||
"@types/node": "^18.17.11", | ||
"@types/resolve": "^1.20.6", | ||
"prettier": "^2.8.8" | ||
} | ||
} |
Oops, something went wrong.