@milkio/astra 1.0.0-alpha.55 → 1.0.0-alpha.57

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.
Files changed (2) hide show
  1. package/index.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -53,7 +53,7 @@ export async function createAstra<AstraOptions extends AstraOptionsInit, Generat
53
53
  const project = cookbookOptions.projects[projectName]
54
54
  if (project.type !== 'milkio') continue
55
55
  projectStatus.set(projectName, withResolvers())
56
- let counter = 256
56
+ let counter = 64
57
57
  let timer: Timer | null = setInterval(async () => {
58
58
  if (--counter <= 0) {
59
59
  clearInterval(timer!)
@@ -63,7 +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 >= 255 ? '' : `(${counter})`}`)
66
+ console.log('\n[ASTRA]', `connecting.. ${counter >= 64 ? '' : `(${counter})`}`)
67
67
  const response = await fetchWithTimeout(`http://localhost:${project.port}/generate_204`, { method: 'HEAD', timeout: 1024 })
68
68
  if (response.status === 204) {
69
69
  if (timer) clearTimeout(timer)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@milkio/astra",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.55",
4
+ "version": "1.0.0-alpha.57",
5
5
  "module": "index.ts",
6
6
  "dependencies": {
7
7
  "@southern-aurora/tson": "*",