@vercel/backends 0.0.11 → 0.0.13
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/index.mjs +11 -7
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -53304,13 +53304,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53304
53304
|
}
|
|
53305
53305
|
var Lambda = class {
|
|
53306
53306
|
constructor(opts) {
|
|
53307
|
-
const { handler, runtime, maxDuration, architecture, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, experimentalTriggers, supportsCancellation } = opts;
|
|
53307
|
+
const { handler, runtime, runtimeLanguage, maxDuration, architecture, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, experimentalTriggers, supportsCancellation, shouldDisableAutomaticFetchInstrumentation } = opts;
|
|
53308
53308
|
if ("files" in opts) (0, import_assert4.default)(typeof opts.files === "object", "\"files\" must be an object");
|
|
53309
53309
|
if ("zipBuffer" in opts) (0, import_assert4.default)(Buffer.isBuffer(opts.zipBuffer), "\"zipBuffer\" must be a Buffer");
|
|
53310
53310
|
(0, import_assert4.default)(typeof handler === "string", "\"handler\" is not a string");
|
|
53311
53311
|
(0, import_assert4.default)(typeof runtime === "string", "\"runtime\" is not a string");
|
|
53312
53312
|
(0, import_assert4.default)(typeof environment === "object", "\"environment\" is not an object");
|
|
53313
53313
|
if (architecture !== void 0) (0, import_assert4.default)(architecture === "x86_64" || architecture === "arm64", "\"architecture\" must be either \"x86_64\" or \"arm64\"");
|
|
53314
|
+
if (runtimeLanguage !== void 0) (0, import_assert4.default)(runtimeLanguage === "rust", "\"runtimeLanguage\" must be \"rust\"");
|
|
53314
53315
|
if ("experimentalAllowBundling" in opts && opts.experimentalAllowBundling !== void 0) (0, import_assert4.default)(typeof opts.experimentalAllowBundling === "boolean", "\"experimentalAllowBundling\" is not a boolean");
|
|
53315
53316
|
if (memory !== void 0) (0, import_assert4.default)(typeof memory === "number", "\"memory\" is not a number");
|
|
53316
53317
|
if (maxDuration !== void 0) (0, import_assert4.default)(typeof maxDuration === "number", "\"maxDuration\" is not a number");
|
|
@@ -53360,6 +53361,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53360
53361
|
this.files = "files" in opts ? opts.files : void 0;
|
|
53361
53362
|
this.handler = handler;
|
|
53362
53363
|
this.runtime = runtime;
|
|
53364
|
+
this.runtimeLanguage = runtimeLanguage;
|
|
53363
53365
|
this.architecture = getDefaultLambdaArchitecture(architecture);
|
|
53364
53366
|
this.memory = memory;
|
|
53365
53367
|
this.maxDuration = maxDuration;
|
|
@@ -53374,6 +53376,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53374
53376
|
this.experimentalAllowBundling = "experimentalAllowBundling" in opts ? opts.experimentalAllowBundling : void 0;
|
|
53375
53377
|
this.experimentalTriggers = experimentalTriggers;
|
|
53376
53378
|
this.supportsCancellation = supportsCancellation;
|
|
53379
|
+
this.shouldDisableAutomaticFetchInstrumentation = shouldDisableAutomaticFetchInstrumentation;
|
|
53377
53380
|
}
|
|
53378
53381
|
async createZip() {
|
|
53379
53382
|
let { zipBuffer } = this;
|
|
@@ -53620,6 +53623,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53620
53623
|
var NodeVersion = class extends Version {};
|
|
53621
53624
|
var BunVersion = class extends Version {};
|
|
53622
53625
|
var NODE_VERSIONS = [
|
|
53626
|
+
new NodeVersion({
|
|
53627
|
+
major: 24,
|
|
53628
|
+
range: "24.x",
|
|
53629
|
+
runtime: "nodejs24.x"
|
|
53630
|
+
}),
|
|
53623
53631
|
new NodeVersion({
|
|
53624
53632
|
major: 22,
|
|
53625
53633
|
range: "22.x",
|
|
@@ -53673,11 +53681,6 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53673
53681
|
runtime: "bun1.x"
|
|
53674
53682
|
})];
|
|
53675
53683
|
function getOptions() {
|
|
53676
|
-
if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") return [new NodeVersion({
|
|
53677
|
-
major: 24,
|
|
53678
|
-
range: "24.x",
|
|
53679
|
-
runtime: "nodejs24.x"
|
|
53680
|
-
}), ...NODE_VERSIONS];
|
|
53681
53684
|
return NODE_VERSIONS;
|
|
53682
53685
|
}
|
|
53683
53686
|
function isNodeVersionAvailable(version$1) {
|
|
@@ -55167,7 +55170,8 @@ const build = async (args) => {
|
|
|
55167
55170
|
slug: framework?.slug ?? "",
|
|
55168
55171
|
version: framework?.version ?? ""
|
|
55169
55172
|
},
|
|
55170
|
-
awsLambdaHandler: ""
|
|
55173
|
+
awsLambdaHandler: "",
|
|
55174
|
+
shouldDisableAutomaticFetchInstrumentation: process.env.VERCEL_TRACING_DISABLE_AUTOMATIC_FETCH_INSTRUMENTATION === "1"
|
|
55171
55175
|
});
|
|
55172
55176
|
const output = { index: lambda };
|
|
55173
55177
|
for (const route of routes) if (route.dest) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/backends",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@vercel/nft": "
|
|
24
|
+
"@vercel/nft": "1.1.0",
|
|
25
25
|
"@vercel/static-config": "3.1.2",
|
|
26
26
|
"fs-extra": "11.1.0",
|
|
27
27
|
"rolldown": "1.0.0-beta.35",
|
|
28
28
|
"@vercel/cervel": "0.0.6",
|
|
29
|
-
"@vercel/introspection": "0.0.
|
|
29
|
+
"@vercel/introspection": "0.0.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/express": "5.0.3",
|
|
33
33
|
"@types/fs-extra": "11",
|
|
34
34
|
"@types/jest": "27.5.1",
|
|
35
35
|
"@types/node": "22",
|
|
36
|
-
"@vercel/build-utils": "13.
|
|
36
|
+
"@vercel/build-utils": "13.2.1",
|
|
37
37
|
"execa": "3.2.0",
|
|
38
38
|
"hono": "4.10.1",
|
|
39
39
|
"jest-junit": "16.0.0",
|