-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
88 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,32 @@ | ||
import {downloadFileBrowser, DownloadFileBrowserOptions, downloadSequenceBrowser} from "./download/browser-download.js"; | ||
import DownloadEngineBrowser, {DownloadEngineOptionsBrowser} from "./download/download-engine/engine/download-engine-browser.js"; | ||
import DownloadEngineFile, {DownloadEngineFileOptionsWithDefaults} from "./download/download-engine/download-engine-file.js"; | ||
import ProgressStatusFile from "./download/download-engine/progress-status-file.js"; | ||
import TransferStatistics, {TransferProgressInfo} from "./download/transfer-visualize/transfer-statistics.js"; | ||
import {truncateText} from "./utils/truncate-text.js"; | ||
import DownloadEngineWriteStreamBrowser, { | ||
DownloadEngineWriteStreamBrowserWriter | ||
} from "./download/download-engine/streams/download-engine-write-stream/download-engine-write-stream-browser.js"; | ||
import DownloadEngineBrowser from "./download/download-engine/engine/download-engine-browser.js"; | ||
import EmptyResponseError from "./download/download-engine/streams/download-engine-fetch-stream/errors/empty-response-error.js"; | ||
import StatusCodeError from "./download/download-engine/streams/download-engine-fetch-stream/errors/status-code-error.js"; | ||
import XhrError from "./download/download-engine/streams/download-engine-fetch-stream/errors/xhr-error.js"; | ||
import BaseDownloadEngineFetchStream, { | ||
BaseDownloadEngineFetchStreamOptions | ||
} from "./download/download-engine/streams/download-engine-fetch-stream/base-download-engine-fetch-stream.js"; | ||
import DownloadEngineFetchStreamFetch | ||
from "./download/download-engine/streams/download-engine-fetch-stream/download-engine-fetch-stream-fetch.js"; | ||
import DownloadEngineFetchStreamXhr | ||
from "./download/download-engine/streams/download-engine-fetch-stream/download-engine-fetch-stream-xhr.js"; | ||
import BaseDownloadEngineWriteStream | ||
from "./download/download-engine/streams/download-engine-write-stream/base-download-engine-write-stream.js"; | ||
import ProgressStatisticsBuilder, {TransferProgressWithStatus} from "./download/transfer-visualize/progress-statistics-builder.js"; | ||
import {TransferProgressWithStatus} from "./download/transfer-visualize/progress-statistics-builder.js"; | ||
import {SaveProgressInfo} from "./download/download-engine/types.js"; | ||
import InvalidContentLengthError | ||
from "./download/download-engine/streams/download-engine-fetch-stream/errors/invalid-content-length-error.js"; | ||
import FetchStreamError from "./download/download-engine/streams/download-engine-fetch-stream/errors/fetch-stream-error.js"; | ||
import IpullError from "./errors/ipull-error.js"; | ||
import EngineError from "./download/download-engine/engine/error/engine-error.js"; | ||
|
||
export { | ||
DownloadEngineBrowser, | ||
DownloadEngineFile, | ||
TransferStatistics, | ||
ProgressStatisticsBuilder, | ||
ProgressStatusFile, | ||
downloadFileBrowser, | ||
downloadSequenceBrowser, | ||
truncateText, | ||
EmptyResponseError, | ||
StatusCodeError, | ||
XhrError, | ||
BaseDownloadEngineFetchStream, | ||
DownloadEngineFetchStreamFetch, | ||
DownloadEngineFetchStreamXhr, | ||
BaseDownloadEngineWriteStream, | ||
DownloadEngineWriteStreamBrowser | ||
InvalidContentLengthError, | ||
FetchStreamError, | ||
IpullError, | ||
EngineError | ||
}; | ||
|
||
|
||
export type { | ||
TransferProgressInfo, | ||
DownloadFileBrowserOptions, | ||
DownloadEngineOptionsBrowser, | ||
DownloadEngineWriteStreamBrowserWriter, | ||
DownloadEngineFileOptionsWithDefaults as DownloadEngineFileOptions, | ||
BaseDownloadEngineFetchStreamOptions, | ||
TransferProgressWithStatus | ||
DownloadEngineBrowser, | ||
TransferProgressWithStatus, | ||
SaveProgressInfo | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/download/download-engine/engine/error/download-already-started-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import IpullError from "../../../../errors/ipull-error.js"; | ||
|
||
export default class EngineError extends IpullError {} |
4 changes: 3 additions & 1 deletion
4
src/download/download-engine/engine/error/missing-event-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export default class MissingEventError extends Error {} | ||
import EngineError from "./engine-error.js"; | ||
|
||
export default class MissingEventError extends EngineError {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...nload/download-engine/streams/download-engine-fetch-stream/errors/empty-response-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ownload/download-engine/streams/download-engine-fetch-stream/errors/fetch-stream-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import IpullError from "../../../../../errors/ipull-error.js"; | ||
|
||
export default class FetchStreamError extends IpullError {} |
4 changes: 3 additions & 1 deletion
4
...wnload-engine/streams/download-engine-fetch-stream/errors/invalid-content-length-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...load/download-engine/streams/download-engine-fetch-stream/errors/path-not-a-file-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...download/download-engine/streams/download-engine-fetch-stream/errors/status-code-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/download/download-engine/streams/download-engine-fetch-stream/errors/xhr-error.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export default class XhrError extends Error {} | ||
import FetchStreamError from "./fetch-stream-error.js"; | ||
|
||
export default class XhrError extends FetchStreamError {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default class IpullError extends Error {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,36 @@ | ||
import {truncateText} from "./utils/truncate-text.js"; | ||
import TransferStatistics, {TransferProgressInfo} from "./download/transfer-visualize/transfer-statistics.js"; | ||
import TransferCli, {TransferCliOptions, TransferCliStatus} from "./download/transfer-visualize/transfer-cli/transfer-cli.js"; | ||
import DownloadEngineNodejs, {DownloadEngineOptionsNodejs} from "./download/download-engine/engine/download-engine-nodejs.js"; | ||
import DownloadEngineFile, {DownloadEngineFileOptionsWithDefaults} from "./download/download-engine/download-engine-file.js"; | ||
import {downloadFile, downloadSequence} from "./download/node-download.js"; | ||
import BaseDownloadEngine from "./download/download-engine/engine/base-download-engine.js"; | ||
import BaseDownloadEngineFetchStream, { | ||
BaseDownloadEngineFetchStreamOptions | ||
} from "./download/download-engine/streams/download-engine-fetch-stream/base-download-engine-fetch-stream.js"; | ||
import DownloadEngineFetchStreamFetch | ||
from "./download/download-engine/streams/download-engine-fetch-stream/download-engine-fetch-stream-fetch.js"; | ||
import DownloadEngineFetchStreamLocalFile | ||
from "./download/download-engine/streams/download-engine-fetch-stream/download-engine-fetch-stream-local-file.js"; | ||
import BaseDownloadEngineWriteStream | ||
from "./download/download-engine/streams/download-engine-write-stream/base-download-engine-write-stream.js"; | ||
import DownloadEngineWriteStreamNodejs | ||
from "./download/download-engine/streams/download-engine-write-stream/download-engine-write-stream-nodejs.js"; | ||
import ProgressStatisticsBuilder, {TransferProgressWithStatus} from "./download/transfer-visualize/progress-statistics-builder.js"; | ||
import DownloadEngineNodejs from "./download/download-engine/engine/download-engine-nodejs.js"; | ||
import {downloadFile, DownloadFileOptions, downloadSequence, DownloadSequenceOptions} from "./download/node-download.js"; | ||
import {TransferProgressWithStatus} from "./download/transfer-visualize/progress-statistics-builder.js"; | ||
import {SaveProgressInfo} from "./download/download-engine/types.js"; | ||
import PathNotAFileError from "./download/download-engine/streams/download-engine-fetch-stream/errors/path-not-a-file-error.js"; | ||
import EmptyResponseError from "./download/download-engine/streams/download-engine-fetch-stream/errors/empty-response-error.js"; | ||
import StatusCodeError from "./download/download-engine/streams/download-engine-fetch-stream/errors/status-code-error.js"; | ||
import XhrError from "./download/download-engine/streams/download-engine-fetch-stream/errors/xhr-error.js"; | ||
import InvalidContentLengthError | ||
from "./download/download-engine/streams/download-engine-fetch-stream/errors/invalid-content-length-error.js"; | ||
import FetchStreamError from "./download/download-engine/streams/download-engine-fetch-stream/errors/fetch-stream-error.js"; | ||
import IpullError from "./errors/ipull-error.js"; | ||
import EngineError from "./download/download-engine/engine/error/engine-error.js"; | ||
|
||
export { | ||
TransferStatistics, | ||
TransferCli, | ||
ProgressStatisticsBuilder, | ||
DownloadEngineNodejs, | ||
BaseDownloadEngine, | ||
DownloadEngineFile, | ||
truncateText, | ||
downloadFile, | ||
downloadSequence, | ||
BaseDownloadEngineFetchStream, | ||
DownloadEngineFetchStreamFetch, | ||
DownloadEngineFetchStreamLocalFile, | ||
BaseDownloadEngineWriteStream, | ||
DownloadEngineWriteStreamNodejs | ||
PathNotAFileError, | ||
EmptyResponseError, | ||
StatusCodeError, | ||
XhrError, | ||
InvalidContentLengthError, | ||
FetchStreamError, | ||
IpullError, | ||
EngineError | ||
}; | ||
|
||
export type { | ||
TransferProgressInfo, | ||
TransferCliOptions, | ||
TransferCliStatus, | ||
DownloadEngineOptionsNodejs, | ||
DownloadEngineFileOptionsWithDefaults as DownloadEngineFileOptions, | ||
BaseDownloadEngineFetchStreamOptions, | ||
TransferProgressWithStatus | ||
DownloadFileOptions, | ||
DownloadSequenceOptions, | ||
DownloadEngineNodejs, | ||
TransferProgressWithStatus, | ||
SaveProgressInfo | ||
}; | ||
|
||
|