Skip to content

Commit

Permalink
feat: classy minimal spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jan 21, 2025
1 parent e48e870 commit 5fe5149
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 14 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"chalk": "^5.3.0",
"commander": "^12.1.0",
"dotenv": "^16.4.5",
"ora": "^8.1.1",
"storyblok-js-client": "^6.9.2"
},
"devDependencies": {
Expand Down
126 changes: 118 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/commands/languages/actions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'node:path'
import { handleAPIError, handleFileSystemError } from '../../utils'
import type { FetchError } from '../../utils/fetch'
import { customFetch } from '../../utils/fetch'
import { customFetch, delay } from '../../utils/fetch'
import { resolvePath, saveToFile } from '../../utils/filesystem'
import type { PullLanguagesOptions } from './constants'
import type { RegionCode } from '../../constants'
Expand All @@ -19,6 +19,8 @@ export const fetchLanguages = async (space: string, token: string, region: Regio
},
})

await delay(500)

return {
default_lang_name: response.space.default_lang_name,
languages: response.space.languages,
Expand Down
Loading

0 comments on commit 5fe5149

Please sign in to comment.