@milkio/astra 1.0.0-alpha.52 → 1.0.0-alpha.53
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/index.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -63,6 +63,7 @@ export async function createAstra<AstraOptions extends AstraOptionsInit, Generat
|
|
|
63
63
|
return
|
|
64
64
|
}
|
|
65
65
|
try {
|
|
66
|
+
console.log('\n[ASTRA]', `connecting.. (${counter})`)
|
|
66
67
|
const response = await fetchWithTimeout(`http://localhost:${project.port}/generate_204`, { method: 'HEAD', timeout: 1024 })
|
|
67
68
|
if (response.status === 204) {
|
|
68
69
|
if (timer) clearTimeout(timer)
|
|
@@ -142,7 +143,6 @@ export async function createAstra<AstraOptions extends AstraOptionsInit, Generat
|
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
const execute = async (path: Parameters<MirrorWorld['execute']>[0], optionsInit?: Parameters<MirrorWorld['execute']>[1]) => {
|
|
145
|
-
console.log('\n[MILKIO]', 'executing..')
|
|
146
146
|
const options = (optionsInit as any) ?? {}
|
|
147
147
|
if (options?.generateParams === true) {
|
|
148
148
|
if (!options?.params) options.params = {}
|