testcontainers 8.1.0 → 8.1.1

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.
@@ -48,8 +48,8 @@ const getDockerClient = () => __awaiter(void 0, void 0, void 0, function* () {
48
48
  });
49
49
  const createDockerodeOptions = (dockerConfig) => {
50
50
  const dockerOptions = {};
51
- if (dockerConfig.isSocket) {
52
- dockerOptions.socketPath = new url_1.URL(dockerConfig.uri).pathname;
51
+ if (dockerConfig.socketPath) {
52
+ dockerOptions.socketPath = dockerConfig.socketPath;
53
53
  }
54
54
  else {
55
55
  dockerOptions.host = dockerConfig.uri;
@@ -67,7 +67,6 @@ class ConfigurationStrategy {
67
67
  const { DOCKER_HOST, DOCKER_TLS_VERIFY, DOCKER_CERT_PATH } = process.env;
68
68
  return {
69
69
  uri: DOCKER_HOST,
70
- isSocket: false,
71
70
  ssl: DOCKER_TLS_VERIFY === "1" && DOCKER_CERT_PATH !== undefined
72
71
  ? {
73
72
  ca: path_1.default.resolve(DOCKER_CERT_PATH, "ca.pem"),
@@ -88,7 +87,7 @@ class UnixSocketStrategy {
88
87
  getDockerConfig() {
89
88
  return {
90
89
  uri: "unix:///var/run/docker.sock",
91
- isSocket: true,
90
+ socketPath: "/var/run/docker.sock",
92
91
  };
93
92
  }
94
93
  isApplicable() {
@@ -102,7 +101,7 @@ class NpipeSocketStrategy {
102
101
  getDockerConfig() {
103
102
  return {
104
103
  uri: "npipe:////./pipe/docker_engine",
105
- isSocket: true,
104
+ socketPath: "//./pipe/docker_engine",
106
105
  };
107
106
  }
108
107
  isApplicable() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testcontainers",
3
3
  "author": "Cristian Greco",
4
- "version": "8.1.0",
4
+ "version": "8.1.1",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index",
7
7
  "keywords": [