@camstack/addon-remote-storage 1.2.41 → 1.2.44
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/dist/index.js +4 -0
- package/dist/index.mjs +2 -1
- package/dist/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +5 -2
- package/dist/sftp.addon.mjs +5 -2
- package/dist/{shared-DMrHydd5.js → shared-CzYVi403.js} +452 -23
- package/dist/{shared-BgEt_GPp.mjs → shared-DsnRUNmJ.mjs} +452 -23
- package/dist/smb.addon.js +806 -0
- package/dist/smb.addon.mjs +796 -0
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +40 -6
package/dist/index.js
CHANGED
|
@@ -2,9 +2,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_sftp_addon = require("./sftp.addon.js");
|
|
3
3
|
const require_s3_addon = require("./s3.addon.js");
|
|
4
4
|
const require_webdav_addon = require("./webdav.addon.js");
|
|
5
|
+
const require_smb_addon = require("./smb.addon.js");
|
|
5
6
|
exports.S3StorageAddon = require_s3_addon.S3StorageAddon;
|
|
6
7
|
exports.S3StorageProvider = require_s3_addon.S3StorageProvider;
|
|
7
8
|
exports.SftpStorageAddon = require_sftp_addon.SftpStorageAddon;
|
|
8
9
|
exports.SftpStorageProvider = require_sftp_addon.SftpStorageProvider;
|
|
10
|
+
exports.SmbBinaryUnavailableError = require_smb_addon.SmbBinaryUnavailableError;
|
|
11
|
+
exports.SmbStorageAddon = require_smb_addon.SmbStorageAddon;
|
|
12
|
+
exports.SmbStorageProvider = require_smb_addon.SmbStorageProvider;
|
|
9
13
|
exports.WebDavStorageAddon = require_webdav_addon.WebDavStorageAddon;
|
|
10
14
|
exports.WebDavStorageProvider = require_webdav_addon.WebDavStorageProvider;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SftpStorageAddon, t as SftpStorageProvider } from "./sftp.addon.mjs";
|
|
2
2
|
import { S3StorageAddon, t as S3StorageProvider } from "./s3.addon.mjs";
|
|
3
3
|
import { WebDavStorageAddon, t as WebDavStorageProvider } from "./webdav.addon.mjs";
|
|
4
|
-
|
|
4
|
+
import { SmbStorageAddon, n as SmbBinaryUnavailableError, t as SmbStorageProvider } from "./smb.addon.mjs";
|
|
5
|
+
export { S3StorageAddon, S3StorageProvider, SftpStorageAddon, SftpStorageProvider, SmbBinaryUnavailableError, SmbStorageAddon, SmbStorageProvider, WebDavStorageAddon, WebDavStorageProvider };
|
package/dist/s3.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-CzYVi403.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
8
8
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/s3.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-DsnRUNmJ.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
4
4
|
import { Upload } from "@aws-sdk/lib-storage";
|
package/dist/sftp.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-CzYVi403.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
|
@@ -12,7 +12,9 @@ node_path = require_shared.__toESM(node_path);
|
|
|
12
12
|
* form in the admin UI.
|
|
13
13
|
*
|
|
14
14
|
* Field shape mirrors the rest of the addon ecosystem:
|
|
15
|
-
* - secrets use `type: 'password'` so the UI
|
|
15
|
+
* - secrets use `type: 'password'` so the UI masks them, and any secret that
|
|
16
|
+
* is NOT a password input carries `secret: true` — `type` alone drives the
|
|
17
|
+
* widget, `isSecretConfigField` drives what leaves the process
|
|
16
18
|
* - conditional visibility uses `showWhen` (NOT `hideUnless` — that's
|
|
17
19
|
* not part of the ConfigField contract)
|
|
18
20
|
* - `basePath` is required so we can enforce path-traversal guards
|
|
@@ -71,6 +73,7 @@ var SFTP_CONFIG_SCHEMA = { sections: [{
|
|
|
71
73
|
key: "privateKey",
|
|
72
74
|
label: "Private Key (PEM)",
|
|
73
75
|
rows: 6,
|
|
76
|
+
secret: true,
|
|
74
77
|
showWhen: {
|
|
75
78
|
field: "authMethod",
|
|
76
79
|
equals: "privateKey"
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DsnRUNmJ.mjs";
|
|
2
2
|
import { Client } from "ssh2";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
//#region src/providers/sftp/sftp-config-schema.ts
|
|
@@ -7,7 +7,9 @@ import * as path from "node:path";
|
|
|
7
7
|
* form in the admin UI.
|
|
8
8
|
*
|
|
9
9
|
* Field shape mirrors the rest of the addon ecosystem:
|
|
10
|
-
* - secrets use `type: 'password'` so the UI
|
|
10
|
+
* - secrets use `type: 'password'` so the UI masks them, and any secret that
|
|
11
|
+
* is NOT a password input carries `secret: true` — `type` alone drives the
|
|
12
|
+
* widget, `isSecretConfigField` drives what leaves the process
|
|
11
13
|
* - conditional visibility uses `showWhen` (NOT `hideUnless` — that's
|
|
12
14
|
* not part of the ConfigField contract)
|
|
13
15
|
* - `basePath` is required so we can enforce path-traversal guards
|
|
@@ -66,6 +68,7 @@ var SFTP_CONFIG_SCHEMA = { sections: [{
|
|
|
66
68
|
key: "privateKey",
|
|
67
69
|
label: "Private Key (PEM)",
|
|
68
70
|
rows: 6,
|
|
71
|
+
secret: true,
|
|
69
72
|
showWhen: {
|
|
70
73
|
field: "authMethod",
|
|
71
74
|
equals: "privateKey"
|