🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vercel/container

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/container - npm Package Compare versions

Comparing version
0.0.4
to
0.0.5
+14
-1
dist/index.js

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

module.exports = __toCommonJS(src_exports);
var import_build_utils3 = require("@vercel/build-utils");
var import_node_fs6 = require("fs");

@@ -1486,2 +1487,9 @@ var import_node_path6 = __toESM(require("path"));

var version = 2;
function resolveFunctionSourceFile(options) {
const entrypoint = readString(options.entrypoint) ?? "";
if (entrypoint === "<detect>") {
return findDockerfile(options.workPath) ?? entrypoint;
}
return entrypoint;
}
function normalizeCommand2(command) {

@@ -1731,2 +1739,6 @@ if (typeof command === "string") {

);
const lambdaOptions = await (0, import_build_utils3.getLambdaOptionsFromFunction)({
sourceFile: resolveFunctionSourceFile(options),
config: options.config
});
const command = normalizeCommand2(options.config.command);

@@ -1749,3 +1761,4 @@ const routes = [

environment: {},
...command ? { command } : {}
...command ? { command } : {},
...lambdaOptions
}

@@ -1752,0 +1765,0 @@ }

+2
-2
{
"name": "@vercel/container",
"version": "0.0.4",
"version": "0.0.5",
"license": "Apache-2.0",

@@ -18,3 +18,3 @@ "main": "./dist/index.js",

"vitest": "2.0.3",
"@vercel/build-utils": "13.32.2"
"@vercel/build-utils": "13.32.3"
},

@@ -21,0 +21,0 @@ "publishConfig": {