@zero-transfer/ftps 0.4.2 → 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 CHANGED
@@ -15,7 +15,12 @@ FTPS over explicit `AUTH TLS` or implicit TLS, with PEM/PFX/P12 certificate sour
15
15
  ## Usage
16
16
 
17
17
  ```ts
18
- import { createFtpsProviderFactory } from "@zero-transfer/ftps";
18
+ import {
19
+ createTransferClient,
20
+ uploadFile,
21
+ downloadFile,
22
+ createFtpsProviderFactory,
23
+ } from "@zero-transfer/ftps";
19
24
  ```
20
25
 
21
26
  ## Public surface
@@ -34,6 +39,7 @@ This package publishes a narrowed surface of **4** exports. These symbols are al
34
39
  | Example | What it shows |
35
40
  | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
36
41
  | [`examples/ftps-client-certificate.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/ftps-client-certificate.ts) | FTPS client-certificate (mutual TLS) example with certificate pinning. |
42
+ | [`examples/ftps-directory-ops.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/ftps-directory-ops.ts) | FTPS directory operations: list, stat, mkdir, rename, remove, rmdir. |
37
43
 
38
44
  ## Documentation
39
45
 
package/dist/index.cjs CHANGED
@@ -83,6 +83,7 @@ __export(ftps_exports, {
83
83
  importOpenSshConfig: () => importOpenSshConfig,
84
84
  importWinScpSessions: () => importWinScpSessions,
85
85
  isClassicProviderId: () => isClassicProviderId,
86
+ isMainModule: () => isMainModule,
86
87
  isSensitiveKey: () => isSensitiveKey,
87
88
  joinRemotePath: () => joinRemotePath,
88
89
  matchKnownHosts: () => matchKnownHosts,
@@ -4891,6 +4892,19 @@ function isModifiedAtDifferent2(source, destination, toleranceMs) {
4891
4892
  return Math.abs(sourceTime - destinationTime) > toleranceMs;
4892
4893
  }
4893
4894
 
4895
+ // src/utils/mainModule.ts
4896
+ var import_node_url = require("url");
4897
+ function isMainModule(importMetaUrl) {
4898
+ if (typeof process === "undefined" || !process.argv || process.argv.length < 2) {
4899
+ return false;
4900
+ }
4901
+ try {
4902
+ return process.argv[1] === (0, import_node_url.fileURLToPath)(importMetaUrl);
4903
+ } catch {
4904
+ return false;
4905
+ }
4906
+ }
4907
+
4894
4908
  // src/providers/classic/ftp/FtpProvider.ts
4895
4909
  var import_node_buffer6 = require("buffer");
4896
4910
  var import_node_net = require("net");
@@ -6543,6 +6557,7 @@ function secretToString(value) {
6543
6557
  importOpenSshConfig,
6544
6558
  importWinScpSessions,
6545
6559
  isClassicProviderId,
6560
+ isMainModule,
6546
6561
  isSensitiveKey,
6547
6562
  joinRemotePath,
6548
6563
  matchKnownHosts,