@vercel/introspection 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -6
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -53302,13 +53302,14 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53302
53302
  }
53303
53303
  var Lambda = class {
53304
53304
  constructor(opts) {
53305
- const { handler, runtime, maxDuration, architecture, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, experimentalTriggers, supportsCancellation } = opts;
53305
+ const { handler, runtime, runtimeLanguage, maxDuration, architecture, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, supportsResponseStreaming, experimentalResponseStreaming, operationType, framework, experimentalTriggers, supportsCancellation } = opts;
53306
53306
  if ("files" in opts) (0, import_assert4.default)(typeof opts.files === "object", "\"files\" must be an object");
53307
53307
  if ("zipBuffer" in opts) (0, import_assert4.default)(Buffer.isBuffer(opts.zipBuffer), "\"zipBuffer\" must be a Buffer");
53308
53308
  (0, import_assert4.default)(typeof handler === "string", "\"handler\" is not a string");
53309
53309
  (0, import_assert4.default)(typeof runtime === "string", "\"runtime\" is not a string");
53310
53310
  (0, import_assert4.default)(typeof environment === "object", "\"environment\" is not an object");
53311
53311
  if (architecture !== void 0) (0, import_assert4.default)(architecture === "x86_64" || architecture === "arm64", "\"architecture\" must be either \"x86_64\" or \"arm64\"");
53312
+ if (runtimeLanguage !== void 0) (0, import_assert4.default)(runtimeLanguage === "rust", "\"runtimeLanguage\" must be \"rust\"");
53312
53313
  if ("experimentalAllowBundling" in opts && opts.experimentalAllowBundling !== void 0) (0, import_assert4.default)(typeof opts.experimentalAllowBundling === "boolean", "\"experimentalAllowBundling\" is not a boolean");
53313
53314
  if (memory !== void 0) (0, import_assert4.default)(typeof memory === "number", "\"memory\" is not a number");
53314
53315
  if (maxDuration !== void 0) (0, import_assert4.default)(typeof maxDuration === "number", "\"maxDuration\" is not a number");
@@ -53358,6 +53359,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53358
53359
  this.files = "files" in opts ? opts.files : void 0;
53359
53360
  this.handler = handler;
53360
53361
  this.runtime = runtime;
53362
+ this.runtimeLanguage = runtimeLanguage;
53361
53363
  this.architecture = getDefaultLambdaArchitecture(architecture);
53362
53364
  this.memory = memory;
53363
53365
  this.maxDuration = maxDuration;
@@ -53618,6 +53620,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53618
53620
  var NodeVersion = class extends Version {};
53619
53621
  var BunVersion = class extends Version {};
53620
53622
  var NODE_VERSIONS = [
53623
+ new NodeVersion({
53624
+ major: 24,
53625
+ range: "24.x",
53626
+ runtime: "nodejs24.x"
53627
+ }),
53621
53628
  new NodeVersion({
53622
53629
  major: 22,
53623
53630
  range: "22.x",
@@ -53671,11 +53678,6 @@ var require_dist$1 = /* @__PURE__ */ __commonJS$1({ "../build-utils/dist/index.j
53671
53678
  runtime: "bun1.x"
53672
53679
  })];
53673
53680
  function getOptions() {
53674
- if (process.env.VERCEL_ALLOW_NODEJS_24 === "1") return [new NodeVersion({
53675
- major: 24,
53676
- range: "24.x",
53677
- runtime: "nodejs24.x"
53678
- }), ...NODE_VERSIONS];
53679
53681
  return NODE_VERSIONS;
53680
53682
  }
53681
53683
  function isNodeVersionAvailable(version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/introspection",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://vercel.com/docs",
6
6
  "type": "module",
@@ -33,10 +33,10 @@
33
33
  "@types/fs-extra": "11",
34
34
  "@types/jest": "27.5.1",
35
35
  "@vercel/static-config": "3.1.2",
36
- "@vercel/nft": "0.30.1",
36
+ "@vercel/nft": "1.1.0",
37
37
  "@types/node": "22",
38
38
  "fs-extra": "11.1.0",
39
- "@vercel/build-utils": "13.1.1",
39
+ "@vercel/build-utils": "13.2.0",
40
40
  "execa": "3.2.0",
41
41
  "hono": "4.10.1",
42
42
  "jest-junit": "16.0.0",