Skip to content

Commit c89476d

Browse files
committed
chore: update yield* style
1 parent 01e9552 commit c89476d

File tree

5 files changed

+170
-127
lines changed

5 files changed

+170
-127
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const readFile = quansync({
3535
// Create a quansync function by providing a generator function
3636
const myFunction = quansync(function* (filename) {
3737
// Use `yield*` to call another quansync function
38-
const code = yield * readFile(filename, 'utf8')
38+
const code = yield* readFile(filename, 'utf8')
3939

4040
return `// some custom prefix\n${code}`
4141
})

package.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@
22
"name": "quansync",
33
"type": "module",
44
"version": "0.2.7",
5-
"packageManager": "[email protected].1",
5+
"packageManager": "[email protected].2",
66
"description": "Create sync/async APIs with usable logic",
77
"author": "Anthony Fu <[email protected]>",
88
"contributors": [
9-
{ "name": "三咲智子 Kevin Deng", "email": "[email protected]" }
9+
{
10+
"name": "三咲智子 Kevin Deng",
11+
"email": "[email protected]"
12+
}
1013
],
1114
"license": "MIT",
1215
"funding": [
13-
{ "type": "individual", "url": "https://github.com/sponsors/antfu" },
14-
{ "type": "individual", "url": "https://github.com/sponsors/sxzz" }
16+
{
17+
"type": "individual",
18+
"url": "https://github.com/sponsors/antfu"
19+
},
20+
{
21+
"type": "individual",
22+
"url": "https://github.com/sponsors/sxzz"
23+
}
1524
],
1625
"homepage": "https://github.com/quansync-dev/quansync#readme",
1726
"repository": {
@@ -66,16 +75,16 @@
6675
"prepare": "simple-git-hooks"
6776
},
6877
"devDependencies": {
69-
"@antfu/eslint-config": "^4.3.0",
70-
"@types/node": "^22.13.5",
78+
"@antfu/eslint-config": "^4.4.0",
79+
"@types/node": "^22.13.8",
7180
"bumpp": "^10.0.3",
7281
"eslint": "^9.21.0",
7382
"gensync": "1.0.0-beta.2",
7483
"lint-staged": "^15.4.3",
7584
"mitata": "^1.0.34",
7685
"simple-git-hooks": "^2.11.1",
7786
"tsx": "^4.19.3",
78-
"typescript": "^5.7.3",
87+
"typescript": "^5.8.2",
7988
"unbuild": "^3.5.0",
8089
"vite": "^6.2.0",
8190
"vitest": "^3.0.7"

0 commit comments

Comments
 (0)