@vercel/node 3.0.12 → 3.0.14

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.js +6 -172
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -19065,175 +19065,9 @@ var require_sourcemap_codec_umd = __commonJS({
19065
19065
  }
19066
19066
  });
19067
19067
 
19068
- // ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.14/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js
19069
- var require_sourcemap_codec_umd2 = __commonJS({
19070
- "../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.4.14/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(exports, module2) {
19071
- (function(global2, factory) {
19072
- typeof exports === "object" && typeof module2 !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.sourcemapCodec = {}));
19073
- })(exports, function(exports2) {
19074
- "use strict";
19075
- const comma = ",".charCodeAt(0);
19076
- const semicolon = ";".charCodeAt(0);
19077
- const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
19078
- const intToChar = new Uint8Array(64);
19079
- const charToInt = new Uint8Array(128);
19080
- for (let i = 0; i < chars.length; i++) {
19081
- const c = chars.charCodeAt(i);
19082
- intToChar[i] = c;
19083
- charToInt[c] = i;
19084
- }
19085
- const td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
19086
- decode(buf) {
19087
- const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
19088
- return out.toString();
19089
- }
19090
- } : {
19091
- decode(buf) {
19092
- let out = "";
19093
- for (let i = 0; i < buf.length; i++) {
19094
- out += String.fromCharCode(buf[i]);
19095
- }
19096
- return out;
19097
- }
19098
- };
19099
- function decode(mappings) {
19100
- const state = new Int32Array(5);
19101
- const decoded = [];
19102
- let index = 0;
19103
- do {
19104
- const semi = indexOf(mappings, index);
19105
- const line = [];
19106
- let sorted = true;
19107
- let lastCol = 0;
19108
- state[0] = 0;
19109
- for (let i = index; i < semi; i++) {
19110
- let seg;
19111
- i = decodeInteger(mappings, i, state, 0);
19112
- const col = state[0];
19113
- if (col < lastCol)
19114
- sorted = false;
19115
- lastCol = col;
19116
- if (hasMoreVlq(mappings, i, semi)) {
19117
- i = decodeInteger(mappings, i, state, 1);
19118
- i = decodeInteger(mappings, i, state, 2);
19119
- i = decodeInteger(mappings, i, state, 3);
19120
- if (hasMoreVlq(mappings, i, semi)) {
19121
- i = decodeInteger(mappings, i, state, 4);
19122
- seg = [col, state[1], state[2], state[3], state[4]];
19123
- } else {
19124
- seg = [col, state[1], state[2], state[3]];
19125
- }
19126
- } else {
19127
- seg = [col];
19128
- }
19129
- line.push(seg);
19130
- }
19131
- if (!sorted)
19132
- sort(line);
19133
- decoded.push(line);
19134
- index = semi + 1;
19135
- } while (index <= mappings.length);
19136
- return decoded;
19137
- }
19138
- function indexOf(mappings, index) {
19139
- const idx = mappings.indexOf(";", index);
19140
- return idx === -1 ? mappings.length : idx;
19141
- }
19142
- function decodeInteger(mappings, pos, state, j) {
19143
- let value2 = 0;
19144
- let shift = 0;
19145
- let integer = 0;
19146
- do {
19147
- const c = mappings.charCodeAt(pos++);
19148
- integer = charToInt[c];
19149
- value2 |= (integer & 31) << shift;
19150
- shift += 5;
19151
- } while (integer & 32);
19152
- const shouldNegate = value2 & 1;
19153
- value2 >>>= 1;
19154
- if (shouldNegate) {
19155
- value2 = -2147483648 | -value2;
19156
- }
19157
- state[j] += value2;
19158
- return pos;
19159
- }
19160
- function hasMoreVlq(mappings, i, length) {
19161
- if (i >= length)
19162
- return false;
19163
- return mappings.charCodeAt(i) !== comma;
19164
- }
19165
- function sort(line) {
19166
- line.sort(sortComparator);
19167
- }
19168
- function sortComparator(a, b) {
19169
- return a[0] - b[0];
19170
- }
19171
- function encode(decoded) {
19172
- const state = new Int32Array(5);
19173
- const bufLength = 1024 * 16;
19174
- const subLength = bufLength - 36;
19175
- const buf = new Uint8Array(bufLength);
19176
- const sub = buf.subarray(0, subLength);
19177
- let pos = 0;
19178
- let out = "";
19179
- for (let i = 0; i < decoded.length; i++) {
19180
- const line = decoded[i];
19181
- if (i > 0) {
19182
- if (pos === bufLength) {
19183
- out += td.decode(buf);
19184
- pos = 0;
19185
- }
19186
- buf[pos++] = semicolon;
19187
- }
19188
- if (line.length === 0)
19189
- continue;
19190
- state[0] = 0;
19191
- for (let j = 0; j < line.length; j++) {
19192
- const segment = line[j];
19193
- if (pos > subLength) {
19194
- out += td.decode(sub);
19195
- buf.copyWithin(0, subLength, pos);
19196
- pos -= subLength;
19197
- }
19198
- if (j > 0)
19199
- buf[pos++] = comma;
19200
- pos = encodeInteger(buf, pos, state, segment, 0);
19201
- if (segment.length === 1)
19202
- continue;
19203
- pos = encodeInteger(buf, pos, state, segment, 1);
19204
- pos = encodeInteger(buf, pos, state, segment, 2);
19205
- pos = encodeInteger(buf, pos, state, segment, 3);
19206
- if (segment.length === 4)
19207
- continue;
19208
- pos = encodeInteger(buf, pos, state, segment, 4);
19209
- }
19210
- }
19211
- return out + td.decode(buf.subarray(0, pos));
19212
- }
19213
- function encodeInteger(buf, pos, state, segment, j) {
19214
- const next = segment[j];
19215
- let num = next - state[j];
19216
- state[j] = next;
19217
- num = num < 0 ? -num << 1 | 1 : num << 1;
19218
- do {
19219
- let clamped = num & 31;
19220
- num >>>= 5;
19221
- if (num > 0)
19222
- clamped |= 32;
19223
- buf[pos++] = intToChar[clamped];
19224
- } while (num > 0);
19225
- return pos;
19226
- }
19227
- exports2.decode = decode;
19228
- exports2.encode = encode;
19229
- Object.defineProperty(exports2, "__esModule", { value: true });
19230
- });
19231
- }
19232
- });
19233
-
19234
- // ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.0/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
19068
+ // ../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.1/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
19235
19069
  var require_resolve_uri_umd = __commonJS({
19236
- "../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.0/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(exports, module2) {
19070
+ "../../node_modules/.pnpm/@jridgewell+resolve-uri@3.1.1/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(exports, module2) {
19237
19071
  (function(global2, factory) {
19238
19072
  typeof exports === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, global2.resolveURI = factory());
19239
19073
  })(exports, function() {
@@ -19414,11 +19248,11 @@ var require_resolve_uri_umd = __commonJS({
19414
19248
  }
19415
19249
  });
19416
19250
 
19417
- // ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.18/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
19251
+ // ../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.20/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
19418
19252
  var require_trace_mapping_umd = __commonJS({
19419
- "../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.18/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(exports, module2) {
19253
+ "../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.20/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(exports, module2) {
19420
19254
  (function(global2, factory) {
19421
- typeof exports === "object" && typeof module2 !== "undefined" ? factory(exports, require_sourcemap_codec_umd2(), require_resolve_uri_umd()) : typeof define === "function" && define.amd ? define(["exports", "@jridgewell/sourcemap-codec", "@jridgewell/resolve-uri"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.traceMapping = {}, global2.sourcemapCodec, global2.resolveURI));
19255
+ typeof exports === "object" && typeof module2 !== "undefined" ? factory(exports, require_sourcemap_codec_umd(), require_resolve_uri_umd()) : typeof define === "function" && define.amd ? define(["exports", "@jridgewell/sourcemap-codec", "@jridgewell/resolve-uri"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.traceMapping = {}, global2.sourcemapCodec, global2.resolveURI));
19422
19256
  })(exports, function(exports2, sourcemapCodec, resolveUri) {
19423
19257
  "use strict";
19424
19258
  function _interopDefaultLegacy(e) {
@@ -19672,7 +19506,7 @@ var require_trace_mapping_umd = __commonJS({
19672
19506
  const { version: version2, file, names, sourceRoot, sources, sourcesContent } = parsed;
19673
19507
  this.version = version2;
19674
19508
  this.file = file;
19675
- this.names = names;
19509
+ this.names = names || [];
19676
19510
  this.sourceRoot = sourceRoot;
19677
19511
  this.sources = sources;
19678
19512
  this.sourcesContent = sourcesContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "3.0.12",
3
+ "version": "3.0.14",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -17,7 +17,7 @@
17
17
  "@edge-runtime/primitives": "4.0.5",
18
18
  "@edge-runtime/vm": "3.1.7",
19
19
  "@types/node": "14.18.33",
20
- "@vercel/build-utils": "7.3.0",
20
+ "@vercel/build-utils": "7.4.1",
21
21
  "@vercel/error-utils": "2.0.2",
22
22
  "@vercel/nft": "0.24.2",
23
23
  "@vercel/static-config": "3.0.0",