@zero-transfer/classic 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
npm install @zero-transfer/classic
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Installing this package automatically pulls in [`@zero-transfer/core`](https://www.npmjs.com/package/@zero-transfer/core) as a transitive dependency. The full core surface (`createTransferClient`, `uploadFile`, `downloadFile`, profiles, errors, sync planner, …) is re-exported from this package, so a single `import { … } from "@zero-transfer/classic"` is all you need. If your app uses multiple protocols, install the umbrella [`@zero-transfer/sdk`](https://www.npmjs.com/package/@zero-transfer/sdk) instead of multiple scoped packages.
|
|
12
|
-
|
|
13
11
|
## Overview
|
|
14
12
|
|
|
15
13
|
Bundle of the three classic providers: FTP, FTPS, and SFTP. Wire `createFtpProviderFactory()`, `createFtpsProviderFactory()`, and `createSftpProviderFactory()` into a single `TransferClient` to talk to traditional file servers. Zero runtime dependencies - SFTP is implemented on top of the first-party native SSH stack.
|
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,7 @@ __export(classic_exports, {
|
|
|
71
71
|
createProviderTransferExecutor: () => createProviderTransferExecutor,
|
|
72
72
|
createRemoteBrowser: () => createRemoteBrowser,
|
|
73
73
|
createRemoteManifest: () => createRemoteManifest,
|
|
74
|
-
createSftpProviderFactory: () =>
|
|
74
|
+
createSftpProviderFactory: () => createSftpProviderFactory,
|
|
75
75
|
createSyncPlan: () => createSyncPlan,
|
|
76
76
|
createTransferClient: () => createTransferClient,
|
|
77
77
|
createTransferJobsFromPlan: () => createTransferJobsFromPlan,
|
|
@@ -10156,7 +10156,7 @@ function buildNativeSftpCapabilities(maxConcurrency) {
|
|
|
10156
10156
|
var NATIVE_SFTP_PROVIDER_CAPABILITIES = buildNativeSftpCapabilities(
|
|
10157
10157
|
NATIVE_SFTP_DEFAULT_MAX_CONCURRENCY
|
|
10158
10158
|
);
|
|
10159
|
-
function
|
|
10159
|
+
function createSftpProviderFactory(options = {}) {
|
|
10160
10160
|
validateNativeSftpOptions(options);
|
|
10161
10161
|
const capabilities = buildNativeSftpCapabilities(
|
|
10162
10162
|
options.maxConcurrency ?? NATIVE_SFTP_DEFAULT_MAX_CONCURRENCY
|