alchemy 0.30.1 → 0.31.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/bin/alchemy.mjs +17 -12
- package/bin/create-alchemy.ts +17 -11
- package/package.json +18 -17
package/bin/alchemy.mjs
CHANGED
|
@@ -15766,21 +15766,26 @@ console.log({
|
|
|
15766
15766
|
await app.finalize();
|
|
15767
15767
|
`;
|
|
15768
15768
|
}
|
|
15769
|
-
async function
|
|
15770
|
-
|
|
15769
|
+
async function tryReadFile(path) {
|
|
15770
|
+
try {
|
|
15771
|
+
return await fs.readFile(path, "utf-8");
|
|
15772
|
+
} catch {
|
|
15773
|
+
return void 0;
|
|
15774
|
+
}
|
|
15775
|
+
}
|
|
15776
|
+
async function appendFile(path, content) {
|
|
15777
|
+
const existingContent = await tryReadFile(path);
|
|
15771
15778
|
await fs.writeFile(
|
|
15772
|
-
|
|
15773
|
-
`${
|
|
15774
|
-
|
|
15779
|
+
path,
|
|
15780
|
+
`${existingContent ? `${existingContent}
|
|
15781
|
+
` : ""}${content}`
|
|
15775
15782
|
);
|
|
15776
|
-
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
await fs.writeFile(
|
|
15783
|
+
}
|
|
15784
|
+
async function appendEnv(projectPath2) {
|
|
15785
|
+
await appendFile(join(projectPath2, ".env"), "ALCHEMY_PASSWORD=change-me");
|
|
15786
|
+
await appendFile(
|
|
15781
15787
|
join(projectPath2, ".env.example"),
|
|
15782
|
-
|
|
15783
|
-
ALCHEMY_PASSWORD=your-alchemy-password`
|
|
15788
|
+
"ALCHEMY_PASSWORD=change-me"
|
|
15784
15789
|
);
|
|
15785
15790
|
}
|
|
15786
15791
|
async function createEnvTs(projectPath2, identifier = "worker") {
|
package/bin/create-alchemy.ts
CHANGED
|
@@ -869,22 +869,28 @@ await app.finalize();
|
|
|
869
869
|
`;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
async function
|
|
873
|
-
|
|
872
|
+
async function tryReadFile(path: string): Promise<string | undefined> {
|
|
873
|
+
try {
|
|
874
|
+
return await fs.readFile(path, "utf-8");
|
|
875
|
+
} catch {
|
|
876
|
+
return undefined;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
async function appendFile(path: string, content: string): Promise<void> {
|
|
881
|
+
const existingContent = await tryReadFile(path);
|
|
874
882
|
await fs.writeFile(
|
|
875
|
-
|
|
876
|
-
`${
|
|
883
|
+
path,
|
|
884
|
+
`${existingContent ? `${existingContent}\n` : ""}${content}`,
|
|
877
885
|
);
|
|
886
|
+
}
|
|
878
887
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
);
|
|
883
|
-
await fs.writeFile(
|
|
888
|
+
async function appendEnv(projectPath: string): Promise<void> {
|
|
889
|
+
await appendFile(join(projectPath, ".env"), "ALCHEMY_PASSWORD=change-me");
|
|
890
|
+
await appendFile(
|
|
884
891
|
join(projectPath, ".env.example"),
|
|
885
|
-
|
|
892
|
+
"ALCHEMY_PASSWORD=change-me",
|
|
886
893
|
);
|
|
887
|
-
// End of Selection
|
|
888
894
|
}
|
|
889
895
|
|
|
890
896
|
async function createEnvTs(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./lib/index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -113,7 +113,23 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"
|
|
116
|
+
"@aws-sdk/credential-providers": "^3.0.0",
|
|
117
|
+
"@cloudflare/unenv-preset": "^2.3.1",
|
|
118
|
+
"@cloudflare/workers-shared": "^0.17.5",
|
|
119
|
+
"@iarna/toml": "^2.2.5",
|
|
120
|
+
"@smithy/node-config-provider": "^4.0.0",
|
|
121
|
+
"@swc/core": "^1.11.24",
|
|
122
|
+
"aws4fetch": "^1.0.20",
|
|
123
|
+
"diff": "^8.0.2",
|
|
124
|
+
"esbuild": "^0.25.1",
|
|
125
|
+
"fast-json-patch": "^3.1.1",
|
|
126
|
+
"glob": "^10.0.0",
|
|
127
|
+
"jszip": "^3.0.0",
|
|
128
|
+
"kleur": "^4.1.5",
|
|
129
|
+
"libsodium-wrappers": "^0.7.15",
|
|
130
|
+
"turndown": "^7.0.0",
|
|
131
|
+
"unenv": "2.0.0-rc.15",
|
|
132
|
+
"yaml": "^2.0.0"
|
|
117
133
|
},
|
|
118
134
|
"peerDependencies": {
|
|
119
135
|
"@ai-sdk/openai": "^1.1.9",
|
|
@@ -128,29 +144,14 @@
|
|
|
128
144
|
"@aws-sdk/client-sqs": "^3.0.0",
|
|
129
145
|
"@aws-sdk/client-ssm": "^3.0.0",
|
|
130
146
|
"@aws-sdk/client-sts": "^3.0.0",
|
|
131
|
-
"@aws-sdk/credential-providers": "^3.0.0",
|
|
132
|
-
"@smithy/node-config-provider": "^4.0.0",
|
|
133
|
-
"@cloudflare/unenv-preset": "^2.3.1",
|
|
134
|
-
"@cloudflare/workers-shared": "^0.17.5",
|
|
135
|
-
"@iarna/toml": "^2.2.5",
|
|
136
147
|
"@octokit/rest": "^21.1.1",
|
|
137
|
-
"@swc/core": "^1.11.24",
|
|
138
148
|
"ai": "^4.0.0",
|
|
139
149
|
"arktype": "^2.0.0",
|
|
140
|
-
"aws4fetch": "^1.0.20",
|
|
141
150
|
"cloudflare": "^4.0.0",
|
|
142
|
-
"diff": "^8.0.2",
|
|
143
151
|
"dofs": "^0.0.1",
|
|
144
|
-
"esbuild": "^0.25.1",
|
|
145
|
-
"fast-json-patch": "^3.1.1",
|
|
146
|
-
"glob": "^10.0.0",
|
|
147
152
|
"hono": "^4.0.0",
|
|
148
|
-
"jszip": "^3.0.0",
|
|
149
|
-
"libsodium-wrappers": "^0.7.15",
|
|
150
153
|
"prettier": "^3.0.0",
|
|
151
154
|
"stripe": "^17.0.0",
|
|
152
|
-
"turndown": "^7.0.0",
|
|
153
|
-
"yaml": "^2.0.0",
|
|
154
155
|
"zod": "^3.0.0"
|
|
155
156
|
},
|
|
156
157
|
"devDependencies": {
|