mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
238f047b9d
commit
cdf1ac1292
5 changed files with 5 additions and 6 deletions
|
@ -5,10 +5,10 @@ import { slug } from 'github-slugger';
|
|||
import { bgRed, cyan } from 'kleur/colors';
|
||||
import ora from 'ora';
|
||||
import prompts from 'prompts';
|
||||
import { safeFetch } from '../../../../runtime/utils.js';
|
||||
import { MISSING_SESSION_ID_ERROR } from '../../../errors.js';
|
||||
import { PROJECT_ID_FILE, getSessionIdFromFile } from '../../../tokens.js';
|
||||
import { type Result, getAstroStudioUrl } from '../../../utils.js';
|
||||
import { safeFetch } from '../../../../runtime/utils.js';
|
||||
|
||||
export async function cmd() {
|
||||
const sessionToken = await getSessionIdFromFile();
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import type { AstroConfig } from 'astro';
|
||||
import type { Arguments } from 'yargs-parser';
|
||||
import { safeFetch } from '../../../../runtime/utils.js';
|
||||
import { MIGRATION_VERSION } from '../../../consts.js';
|
||||
import { getManagedAppTokenOrExit } from '../../../tokens.js';
|
||||
import { type DBConfig, type DBSnapshot } from '../../../types.js';
|
||||
import { type Result, getRemoteDatabaseUrl } from '../../../utils.js';
|
||||
import { safeFetch } from '../../../../runtime/utils.js';
|
||||
import {
|
||||
createCurrentSnapshot,
|
||||
createEmptySnapshot,
|
||||
|
|
|
@ -14,6 +14,7 @@ import {
|
|||
schemaTypeToSqlType,
|
||||
} from '../../runtime/queries.js';
|
||||
import { isSerializedSQL } from '../../runtime/types.js';
|
||||
import { safeFetch } from '../../runtime/utils.js';
|
||||
import { MIGRATION_VERSION } from '../consts.js';
|
||||
import { RENAME_COLUMN_ERROR, RENAME_TABLE_ERROR } from '../errors.js';
|
||||
import { columnSchema } from '../schemas.js';
|
||||
|
@ -33,8 +34,6 @@ import {
|
|||
type TextColumn,
|
||||
} from '../types.js';
|
||||
import { type Result, getRemoteDatabaseUrl } from '../utils.js';
|
||||
import { safeFetch } from '../../runtime/utils.js';
|
||||
|
||||
|
||||
const sqlite = new SQLiteAsyncDialect();
|
||||
const genTempTableName = customAlphabet('abcdefghijklmnopqrstuvwxyz', 10);
|
||||
|
|
|
@ -4,9 +4,9 @@ import { join } from 'node:path';
|
|||
import { pathToFileURL } from 'node:url';
|
||||
import { green } from 'kleur/colors';
|
||||
import ora from 'ora';
|
||||
import { safeFetch } from '../runtime/utils.js';
|
||||
import { MISSING_PROJECT_ID_ERROR, MISSING_SESSION_ID_ERROR } from './errors.js';
|
||||
import { getAstroStudioEnv, getAstroStudioUrl } from './utils.js';
|
||||
import { safeFetch } from '../runtime/utils.js';
|
||||
|
||||
export const SESSION_LOGIN_FILE = pathToFileURL(join(homedir(), '.astro', 'session-token'));
|
||||
export const PROJECT_ID_FILE = pathToFileURL(join(process.cwd(), '.astro', 'link'));
|
||||
|
|
|
@ -15,4 +15,4 @@ export async function safeFetch(
|
|||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue