@vercel/backends 0.0.11 → 0.0.12
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 +8 -6
- 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 } = 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;
|
|
@@ -53620,6 +53622,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53620
53622
|
var NodeVersion = class extends Version {};
|
|
53621
53623
|
var BunVersion = class extends Version {};
|
|
53622
53624
|
var NODE_VERSIONS = [
|
|
53625
|
+
new NodeVersion({
|
|
53626
|
+
major: 24,
|
|
53627
|
+
range: "24.x",
|
|
53628
|
+
runtime: "nodejs24.x"
|
|
53629
|
+
}),
|
|
53623
53630
|
new NodeVersion({
|
|
53624
53631
|
major: 22,
|
|
53625
53632
|
range: "22.x",
|
|
@@ -53673,11 +53680,6 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
|
|
|
53673
53680
|
runtime: "bun1.x"
|
|
53674
53681
|
})];
|
|
53675
53682
|
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
53683
|
return NODE_VERSIONS;
|
|
53682
53684
|
}
|
|
53683
53685
|
function isNodeVersionAvailable(version$1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/backends",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
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.0",
|
|
37
37
|
"execa": "3.2.0",
|
|
38
38
|
"hono": "4.10.1",
|
|
39
39
|
"jest-junit": "16.0.0",
|