testcontainers 9.10.1 → 9.11.0
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/package.json +3 -1
- package/dist/src/docker/client/docker-client-types.d.ts +21 -0
- package/dist/src/docker/client/docker-client-types.js +2 -0
- package/dist/src/docker/client/docker-client.d.ts +1 -17
- package/dist/src/docker/client/docker-client.js +50 -23
- package/dist/src/docker/client/strategy/configuration-strategy.d.ts +1 -1
- package/dist/src/docker/client/strategy/configuration-strategy.js +2 -4
- package/dist/src/docker/client/strategy/docker-client-strategy.d.ts +1 -1
- package/dist/src/docker/client/strategy/npipe-socket-strategy.d.ts +1 -1
- package/dist/src/docker/client/strategy/npipe-socket-strategy.js +1 -5
- package/dist/src/docker/client/strategy/rootless-unix-socket-strategy.d.ts +1 -1
- package/dist/src/docker/client/strategy/rootless-unix-socket-strategy.js +1 -2
- package/dist/src/docker/client/strategy/testcontainers-host-strategy.d.ts +1 -1
- package/dist/src/docker/client/strategy/testcontainers-host-strategy.js +2 -7
- package/dist/src/docker/client/strategy/unix-socket-strategy.d.ts +1 -1
- package/dist/src/docker/client/strategy/unix-socket-strategy.js +1 -5
- package/dist/src/docker/functions/container/create-container.d.ts +1 -1
- package/dist/src/docker/functions/container/create-container.js +2 -2
- package/dist/src/docker/functions/create-labels.d.ts +1 -2
- package/dist/src/docker/functions/create-labels.js +2 -3
- package/dist/src/docker/functions/image/build-image.d.ts +2 -1
- package/dist/src/docker/functions/image/build-image.js +2 -2
- package/dist/src/docker/functions/network/create-network.d.ts +1 -1
- package/dist/src/docker/functions/network/create-network.js +2 -2
- package/dist/src/docker/remote-docker-unix-socket-path.d.ts +2 -2
- package/dist/src/docker/types.d.ts +3 -0
- package/dist/src/docker-compose-environment/docker-compose-environment.js +2 -2
- package/dist/src/file-lock.d.ts +1 -0
- package/dist/src/file-lock.js +47 -0
- package/dist/src/generic-container/generic-container-builder.d.ts +4 -1
- package/dist/src/generic-container/generic-container-builder.js +4 -5
- package/dist/src/generic-container/generic-container.d.ts +8 -4
- package/dist/src/generic-container/generic-container.js +75 -72
- package/dist/src/index.d.ts +1 -1
- package/dist/src/modules/selenium/selenium-container.js +11 -8
- package/dist/src/network.js +3 -3
- package/dist/src/port-forwarder.js +2 -2
- package/dist/src/reaper.d.ts +5 -14
- package/dist/src/reaper.js +124 -114
- package/dist/src/test-container.d.ts +2 -1
- package/package.json +3 -1
- package/dist/src/docker/session-id.d.ts +0 -1
- package/dist/src/docker/session-id.js +0 -5
|
@@ -4,7 +4,7 @@ import { PortWithOptionalBinding } from "./port";
|
|
|
4
4
|
import { PullPolicy } from "./pull-policy";
|
|
5
5
|
import { WaitStrategy } from "./wait-strategy/wait-strategy";
|
|
6
6
|
import { Readable } from "stream";
|
|
7
|
-
import { BindMount, ContentToCopy, Environment, ExecResult, ExtraHost, FileToCopy, Labels, ResourcesQuota, TmpFs, Ulimits } from "./docker/types";
|
|
7
|
+
import { BindMount, ContentToCopy, DirectoryToCopy, Environment, ExecResult, ExtraHost, FileToCopy, Labels, ResourcesQuota, TmpFs, Ulimits } from "./docker/types";
|
|
8
8
|
import { StartedNetwork } from "./network";
|
|
9
9
|
export interface TestContainer {
|
|
10
10
|
start(): Promise<StartedTestContainer>;
|
|
@@ -28,6 +28,7 @@ export interface TestContainer {
|
|
|
28
28
|
withPullPolicy(pullPolicy: PullPolicy): this;
|
|
29
29
|
withReuse(): this;
|
|
30
30
|
withCopyFilesToContainer(filesToCopy: FileToCopy[]): this;
|
|
31
|
+
withCopyDirectoriesToContainer(directoriesToCopy: DirectoryToCopy[]): this;
|
|
31
32
|
withCopyContentToContainer(contentsToCopy: ContentToCopy[]): this;
|
|
32
33
|
withWorkingDir(workingDir: string): this;
|
|
33
34
|
withResourcesQuota(resourcesQuota: ResourcesQuota): this;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testcontainers",
|
|
3
3
|
"author": "Cristian Greco",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.11.0",
|
|
5
5
|
"main": "dist/src/index",
|
|
6
6
|
"types": "dist/src/index",
|
|
7
7
|
"keywords": [
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"dockerode": "^3.3.5",
|
|
48
48
|
"get-port": "^5.1.1",
|
|
49
49
|
"node-fetch": "^2.6.12",
|
|
50
|
+
"proper-lockfile": "^4.1.2",
|
|
50
51
|
"properties-reader": "^2.2.0",
|
|
51
52
|
"ssh-remote-port-forward": "^1.0.4",
|
|
52
53
|
"tar-fs": "^2.1.1",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"@types/node": "^18.16.19",
|
|
62
63
|
"@types/node-fetch": "^2.6.4",
|
|
63
64
|
"@types/pg": "^8.10.2",
|
|
65
|
+
"@types/proper-lockfile": "^4.1.2",
|
|
64
66
|
"@types/properties-reader": "^2.1.1",
|
|
65
67
|
"@types/selenium-webdriver": "^4.1.15",
|
|
66
68
|
"@types/tar-fs": "^2.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sessionId: string;
|