Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

testcontainers

Package Overview
Dependencies
Maintainers
0
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcontainers - npm Package Compare versions

Comparing version 10.11.0 to 10.12.0

2

build/common/hash.js

@@ -9,5 +9,5 @@ "use strict";

function hash(str) {
return crypto_1.default.createHash("md5").update(str).digest("hex");
return crypto_1.default.createHash("sha256").update(str).digest("hex");
}
exports.hash = hash;
//# sourceMappingURL=hash.js.map

@@ -117,2 +117,3 @@ "use strict";

runtimes: dockerodeInfo.Runtimes ? Object.keys(dockerodeInfo.Runtimes) : [],
labels: dockerodeInfo.Labels ? dockerodeInfo.Labels : [],
};

@@ -119,0 +120,0 @@ const composeInfo = composeClient.info;

@@ -15,3 +15,4 @@ import Dockerode, { ImageBuildOptions } from "dockerode";

force: boolean;
platform: string | undefined;
}): Promise<void>;
}

@@ -101,3 +101,6 @@ "use strict";

const authconfig = await (0, get_auth_config_1.getAuthConfig)(imageName.registry ?? this.indexServerAddress);
const stream = await this.dockerode.pull(imageName.string, { authconfig });
const stream = await this.dockerode.pull(imageName.string, {
authconfig,
platform: opts?.platform,
});
await new Promise((resolve) => {

@@ -104,0 +107,0 @@ (0, byline_1.default)(stream).on("data", (line) => {

@@ -7,4 +7,5 @@ import { ImageBuildOptions } from "dockerode";

force: boolean;
platform: string | undefined;
}): Promise<void>;
exists(imageName: ImageName): Promise<boolean>;
}

@@ -23,2 +23,3 @@ export type Info = {

runtimes: string[];
labels: string[];
};

@@ -25,0 +26,0 @@ export type ComposeInfo = {

@@ -16,2 +16,3 @@ import { BuildArgs } from "../types";

private target?;
private platform?;
constructor(context: string, dockerfileName: string, uuid?: Uuid);

@@ -21,2 +22,3 @@ withBuildArgs(buildArgs: BuildArgs): GenericContainerBuilder;

withCache(cache: boolean): this;
withPlatform(platform: string): this;
withTarget(target: string): this;

@@ -23,0 +25,0 @@ build(image?: string, options?: BuildOptions): Promise<GenericContainer>;

@@ -23,2 +23,3 @@ "use strict";

target;
platform;
constructor(context, dockerfileName, uuid = new common_1.RandomUuid()) {

@@ -41,2 +42,6 @@ this.context = context;

}
withPlatform(platform) {
this.platform = platform;
return this;
}
withTarget(target) {

@@ -66,2 +71,3 @@ this.target = target;

target: this.target,
platform: this.platform,
};

@@ -68,0 +74,0 @@ if (this.pullPolicy.shouldPull()) {

@@ -47,2 +47,3 @@ /// <reference types="node" />

withEnvironment(environment: Environment): this;
withPlatform(platform: string): this;
withTmpFs(tmpFs: TmpFs): this;

@@ -49,0 +50,0 @@ withUlimits(ulimits: Ulimits): this;

@@ -55,3 +55,6 @@ "use strict";

const client = await (0, container_runtime_1.getContainerRuntimeClient)();
await client.image.pull(this.imageName, { force: this.pullPolicy.shouldPull() });
await client.image.pull(this.imageName, {
force: this.pullPolicy.shouldPull(),
platform: this.createOpts.platform,
});
if (this.beforeContainerCreated) {

@@ -194,2 +197,6 @@ await this.beforeContainerCreated();

}
withPlatform(platform) {
this.createOpts.platform = platform;
return this;
}
withTmpFs(tmpFs) {

@@ -196,0 +203,0 @@ this.hostConfig.Tmpfs = { ...this.hostConfig.Tmpfs, ...tmpFs };

@@ -27,2 +27,3 @@ /// <reference types="node" />

withPrivilegedMode(): this;
withPlatform(platform: string): this;
withUser(user: string): this;

@@ -29,0 +30,0 @@ withPullPolicy(pullPolicy: ImagePullPolicy): this;

@@ -1,1 +0,1 @@

export declare const LIB_VERSION = "10.11.0";
export declare const LIB_VERSION = "10.12.0";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LIB_VERSION = void 0;
exports.LIB_VERSION = "10.11.0";
exports.LIB_VERSION = "10.12.0";
//# sourceMappingURL=version.js.map
{
"name": "testcontainers",
"version": "10.11.0",
"version": "10.12.0",
"author": "Cristian Greco",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc