testcontainers 9.1.2-beta.1 → 9.1.2

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.
@@ -99,7 +99,7 @@ class GenericContainer {
99
99
  };
100
100
  if (this.reuse) {
101
101
  const containerHash = (0, hash_1.hash)(JSON.stringify(createContainerOptions));
102
- createContainerOptions.labels = { [labels_1.LABEL_CONTAINER_HASH]: containerHash };
102
+ createContainerOptions.labels = Object.assign(Object.assign({}, createContainerOptions.labels), { [labels_1.LABEL_CONTAINER_HASH]: containerHash });
103
103
  logger_1.log.debug(`Container reuse has been enabled, hash: ${containerHash}`);
104
104
  const container = yield (0, get_container_1.getContainerByHash)(containerHash);
105
105
  if (container !== undefined) {
@@ -51,7 +51,7 @@ class HttpWaitStrategy extends wait_strategy_1.AbstractWaitStrategy {
51
51
  }
52
52
  withBasicCredentials(username, password) {
53
53
  const base64Encoded = Buffer.from(`${username}:${password}`).toString("base64");
54
- this.headers = Object.assign(Object.assign({}, this.headers), { Authorization: `Bearer ${base64Encoded}` });
54
+ this.headers = Object.assign(Object.assign({}, this.headers), { Authorization: `Basic ${base64Encoded}` });
55
55
  return this;
56
56
  }
57
57
  withReadTimeout(readTimeout) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testcontainers",
3
3
  "author": "Cristian Greco",
4
- "version": "9.1.2-beta.1",
4
+ "version": "9.1.2",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index",
7
7
  "keywords": [