Skip to content

Commit ba31717

Browse files
committed
style: apply eslint --fix to import sources
1 parent 57c97a6 commit ba31717

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

pgpm/cli/src/commands/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from '@pgpmjs/export';
1212
import { Logger } from '@pgpmjs/logger';
1313
import { PartitionCycleError } from '@pgpmjs/transform';
14-
import { CLIOptions, cliExitWithError, Inquirerer, ParsedArgs } from 'inquirerer';
14+
import { cliExitWithError, CLIOptions, Inquirerer, ParsedArgs } from 'inquirerer';
1515
import * as path from 'path';
1616

1717
import { checkOverwrite, writePackage } from '../utils/emit-package';

pgpm/export/src/dump-source.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ const decodeCopyField = (field: string): string => {
170170
}
171171
const next = field[++i];
172172
switch (next) {
173-
case 'b': out += '\b'; break;
174-
case 'f': out += '\f'; break;
175-
case 'n': out += '\n'; break;
176-
case 'r': out += '\r'; break;
177-
case 't': out += '\t'; break;
178-
case 'v': out += '\v'; break;
179-
case undefined: out += '\\'; break;
180-
default: out += next;
173+
case 'b': out += '\b'; break;
174+
case 'f': out += '\f'; break;
175+
case 'n': out += '\n'; break;
176+
case 'r': out += '\r'; break;
177+
case 't': out += '\t'; break;
178+
case 'v': out += '\v'; break;
179+
case undefined: out += '\\'; break;
180+
default: out += next;
181181
}
182182
}
183183
return out;

pgpm/export/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export type { CatalogQueryable, CatalogSnapshot } from './catalog-check';
22
export { diffCatalogSnapshots, snapshotCatalog } from './catalog-check';
3+
export type { CopyBlock, CopyTarget, DumpSource } from './dump-source';
4+
export { copyBlockToInsert, copyTargetOf, loadDumpSource, preprocessDumpText } from './dump-source';
35
export * from './export-data';
46
export * from './export-graphql';
57
export * from './export-graphql-meta';
@@ -28,8 +30,6 @@ export {
2830
normalizeOutdir,
2931
preparePackage,
3032
SERVICE_REQUIRED_EXTENSIONS} from './export-utils';
31-
export type { CopyBlock, CopyTarget, DumpSource } from './dump-source';
32-
export { copyBlockToInsert, copyTargetOf, loadDumpSource, preprocessDumpText } from './dump-source';
3333
export { GraphQLClient } from './graphql-client';
3434
export { buildFieldsFragment, getGraphQLQueryName, getGraphQLTypeName, graphqlRowToPostgresRow, GraphQLTypeInfo,mapGraphQLTypeToFieldType, unwrapGraphQLType } from './graphql-naming';
3535
export type { ImportDumpRowsOptions, ImportDumpRowsResult, ImportDumpSummary } from './import';

0 commit comments

Comments
 (0)