Skip to content

Commit

Permalink
fix exports: switch to wildcard exports instead of enumerating (#88)
Browse files Browse the repository at this point in the history
bump to 2.4.2
  • Loading branch information
ikreymer authored Nov 20, 2024
1 parent 53b8c65 commit f706b5f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 101 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "warcio",
"version": "2.4.1",
"version": "2.4.2",
"keywords": [
"WARC",
"web archiving"
Expand Down
5 changes: 2 additions & 3 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { main } from "./main";
export { indexCommandArgs, cdxIndexCommandArgs } from "./args";
export type { IndexCommandArgs, CdxIndexCommandArgs } from "./args";
export * from "./main";
export * from "./args";
49 changes: 1 addition & 48 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,48 +1 @@
export {
BaseAsyncIterReader,
AsyncIterReader,
LimitReader,
NoConcatInflator,
StatusAndHeadersParser,
StatusAndHeaders,
HeadersMultiMap,
WARCParser,
WARCSerializer,
BaseSerializerBuffer,
WARCRecord,
WARC_1_0,
WARC_1_1,
Indexer,
CDXIndexer,
CDXAndRecordIndexer,
DEFAULT_FIELDS,
DEFAULT_CDX_FIELDS,
DEFAULT_LEGACY_CDX_FIELDS,
postToGetUrl,
getSurt,
appendRequestQuery,
jsonToQueryParams,
jsonToQueryString,
mfdToQueryParams,
mfdToQueryString,
concatChunks,
splitChunk,
} from "./lib";

export type {
WARCParserOpts,
WARCSerializerOpts,
WARCRecordOpts,
WARCType,
} from "./lib";

export type {
AsyncIterReaderOpts,
Source,
SourceReader,
SourceReadable,
StreamResult,
StreamResults,
Request,
IndexerOffsetLength,
} from "./lib";
export * from "./lib";
51 changes: 8 additions & 43 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,15 @@
export {
BaseAsyncIterReader,
AsyncIterReader,
LimitReader,
NoConcatInflator,
} from "./readers";
export type { AsyncIterReaderOpts } from "./readers";
export * from "./readers";

export { StatusAndHeadersParser, StatusAndHeaders } from "./statusandheaders";
export * from "./statusandheaders";

export { WARCParser } from "./warcparser";
export type { WARCParserOpts } from "./warcparser";
export * from "./warcparser";

export { WARCSerializer, BaseSerializerBuffer } from "./warcserializer";
export type { WARCSerializerOpts } from "./warcserializer";
export * from "./warcserializer";

export { WARCRecord, WARC_1_1, WARC_1_0 } from "./warcrecord";
export type { WARCRecordOpts, WARCType } from "./warcrecord";
export * from "./warcrecord";

export {
Indexer,
CDXIndexer,
CDXAndRecordIndexer,
DEFAULT_FIELDS,
DEFAULT_CDX_FIELDS,
DEFAULT_LEGACY_CDX_FIELDS,
} from "./indexer";
export * from "./indexer";

export {
postToGetUrl,
getSurt,
appendRequestQuery,
jsonToQueryParams,
jsonToQueryString,
mfdToQueryParams,
mfdToQueryString,
concatChunks,
splitChunk,
HeadersMultiMap,
} from "./utils";
export * from "./utils";

export type {
Source,
SourceReader,
SourceReadable,
StreamResult,
StreamResults,
Request,
IndexerOffsetLength,
} from "./types";
export type * from "./types";
7 changes: 1 addition & 6 deletions src/node/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
export {
WARCSerializer,
TempFileBuffer,
DEFAULT_MEM_SIZE,
} from "./warcserializer";
export type { WARCSerializerOpts } from "./warcserializer";
export * from "./warcserializer";

0 comments on commit f706b5f

Please sign in to comment.