@lakutata/docker 3.0.0-beta.5 → 3.0.0-beta.6
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.
|
@@ -210,9 +210,8 @@ class DockerConnection {
|
|
|
210
210
|
return this.#sshAgent ??= (async () => {
|
|
211
211
|
let ssh2;
|
|
212
212
|
try {
|
|
213
|
-
//An optional dependency,
|
|
214
|
-
|
|
215
|
-
ssh2 = await Promise.resolve(`${ssh2Module}`).then(s => __importStar(require(s)));
|
|
213
|
+
//An optional dependency, imported by its name written out (the bundlers follow it)
|
|
214
|
+
ssh2 = await Promise.resolve().then(() => __importStar(require('ssh2')));
|
|
216
215
|
}
|
|
217
216
|
catch {
|
|
218
217
|
throw new Error('The SSH connections to Docker need the package ssh2: npm install ssh2');
|
|
@@ -169,9 +169,8 @@ export class DockerConnection {
|
|
|
169
169
|
return this.#sshAgent ??= (async () => {
|
|
170
170
|
let ssh2;
|
|
171
171
|
try {
|
|
172
|
-
//An optional dependency,
|
|
173
|
-
|
|
174
|
-
ssh2 = await import(ssh2Module);
|
|
172
|
+
//An optional dependency, imported by its name written out (the bundlers follow it)
|
|
173
|
+
ssh2 = await import('ssh2');
|
|
175
174
|
}
|
|
176
175
|
catch {
|
|
177
176
|
throw new Error('The SSH connections to Docker need the package ssh2: npm install ssh2');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lakutata/docker",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.6",
|
|
4
4
|
"description": "The Docker component of the lakutata framework: images (pull, build with BuildKit, import, export, push), containers, their TTYs and networks, over the Docker Engine API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/exports/Docker.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"tar-stream": "3.2.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@lakutata/core": "3.0.0-beta.
|
|
37
|
-
"@lakutata/logger": "3.0.0-beta.
|
|
38
|
-
"@lakutata/utils": "3.0.0-beta.
|
|
36
|
+
"@lakutata/core": "3.0.0-beta.6",
|
|
37
|
+
"@lakutata/logger": "3.0.0-beta.6",
|
|
38
|
+
"@lakutata/utils": "3.0.0-beta.6",
|
|
39
39
|
"ssh2": "^1.15.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|