@vercel/next 3.7.5 → 3.7.6

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.
@@ -12,7 +12,7 @@ const constants_1 = require("./constants");
12
12
  const zlib_1 = __importDefault(require("zlib"));
13
13
  const util_1 = require("util");
14
14
  const utils_1 = require("../utils");
15
- // @ts-expect-error this is a prebuilt file, based on `../../scripts/build-edge-function-template.js`
15
+ // @ts-ignore this is a prebuilt file, based on `../../scripts/build-edge-function-template.js`
16
16
  const ___get_nextjs_edge_function_js_1 = __importDefault(require("../../dist/___get-nextjs-edge-function.js"));
17
17
  const gzip = (0, util_1.promisify)(zlib_1.default.gzip);
18
18
  /**
package/dist/index.js CHANGED
@@ -40433,7 +40433,7 @@ function convertTrailingSlash(enable, status = 308) {
40433
40433
  exports.convertTrailingSlash = convertTrailingSlash;
40434
40434
  function sourceToRegex(source) {
40435
40435
  const keys = [];
40436
- const r = path_to_regexp_1.pathToRegexp(source, keys, {
40436
+ const r = (0, path_to_regexp_1.pathToRegexp)(source, keys, {
40437
40437
  strict: true,
40438
40438
  sensitive: true,
40439
40439
  delimiter: '/',
@@ -40499,7 +40499,7 @@ function replaceSegments(segments, hasItemSegments, destination, isRedirect, int
40499
40499
  indexes[name] = '$' + name;
40500
40500
  escapedDestination = escapeSegment(escapedDestination, name);
40501
40501
  });
40502
- const parsedDestination = url_1.parse(escapedDestination, true);
40502
+ const parsedDestination = (0, url_1.parse)(escapedDestination, true);
40503
40503
  delete parsedDestination.href;
40504
40504
  delete parsedDestination.path;
40505
40505
  delete parsedDestination.search;
@@ -40514,9 +40514,9 @@ function replaceSegments(segments, hasItemSegments, destination, isRedirect, int
40514
40514
  const hashKeys = [];
40515
40515
  const hostnameKeys = [];
40516
40516
  try {
40517
- path_to_regexp_1.pathToRegexp(pathname, pathnameKeys);
40518
- path_to_regexp_1.pathToRegexp(hash || '', hashKeys);
40519
- path_to_regexp_1.pathToRegexp(hostname || '', hostnameKeys);
40517
+ (0, path_to_regexp_1.pathToRegexp)(pathname, pathnameKeys);
40518
+ (0, path_to_regexp_1.pathToRegexp)(hash || '', hashKeys);
40519
+ (0, path_to_regexp_1.pathToRegexp)(hostname || '', hostnameKeys);
40520
40520
  }
40521
40521
  catch (_) {
40522
40522
  // this is not fatal so don't error when failing to parse the
@@ -40553,7 +40553,7 @@ function replaceSegments(segments, hasItemSegments, destination, isRedirect, int
40553
40553
  }
40554
40554
  }
40555
40555
  }
40556
- destination = url_1.format({
40556
+ destination = (0, url_1.format)({
40557
40557
  ...rest,
40558
40558
  hostname,
40559
40559
  pathname,
@@ -40572,7 +40572,7 @@ function safelyCompile(value, indexes, attemptDirectCompile) {
40572
40572
  // Attempt compiling normally with path-to-regexp first and fall back
40573
40573
  // to safely compiling to handle edge cases if path-to-regexp compile
40574
40574
  // fails
40575
- return path_to_regexp_1.compile(value, { validate: false })(indexes);
40575
+ return (0, path_to_regexp_1.compile)(value, { validate: false })(indexes);
40576
40576
  }
40577
40577
  catch (e) {
40578
40578
  // non-fatal, we continue to safely compile
@@ -40595,7 +40595,7 @@ function safelyCompile(value, indexes, attemptDirectCompile) {
40595
40595
  .replace(/--ESCAPED_PARAM_ASTERISK/g, '*');
40596
40596
  // the value needs to start with a forward-slash to be compiled
40597
40597
  // correctly
40598
- return path_to_regexp_1.compile(`/${value}`, { validate: false })(indexes).slice(1);
40598
+ return (0, path_to_regexp_1.compile)(`/${value}`, { validate: false })(indexes).slice(1);
40599
40599
  }
40600
40600
  function toSegmentDest(index) {
40601
40601
  const i = index + 1; // js is base 0, regex is base 1
@@ -40741,7 +40741,7 @@ const constants_1 = __webpack_require__(2152);
40741
40741
  const zlib_1 = __importDefault(__webpack_require__(8761));
40742
40742
  const util_1 = __webpack_require__(1669);
40743
40743
  const utils_1 = __webpack_require__(6136);
40744
- // @ts-expect-error this is a prebuilt file, based on `../../scripts/build-edge-function-template.js`
40744
+ // @ts-ignore this is a prebuilt file, based on `../../scripts/build-edge-function-template.js`
40745
40745
  const ___get_nextjs_edge_function_js_1 = __importDefault(__webpack_require__(6223));
40746
40746
  const gzip = (0, util_1.promisify)(zlib_1.default.gzip);
40747
40747
  /**
@@ -44358,7 +44358,11 @@ exports.stringifySourceMap = stringifySourceMap;
44358
44358
 
44359
44359
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
44360
44360
  if (k2 === undefined) k2 = k;
44361
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
44361
+ var desc = Object.getOwnPropertyDescriptor(m, k);
44362
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
44363
+ desc = { enumerable: true, get: function() { return m[k]; } };
44364
+ }
44365
+ Object.defineProperty(o, k2, desc);
44362
44366
  }) : (function(o, m, k, k2) {
44363
44367
  if (k2 === undefined) k2 = k;
44364
44368
  o[k2] = m[k];
package/dist/utils.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.7.5",
3
+ "version": "3.7.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -35,9 +35,9 @@
35
35
  "@types/semver": "6.0.0",
36
36
  "@types/text-table": "0.2.1",
37
37
  "@types/webpack-sources": "3.2.0",
38
- "@vercel/build-utils": "6.7.1",
38
+ "@vercel/build-utils": "6.7.2",
39
39
  "@vercel/nft": "0.22.5",
40
- "@vercel/routing-utils": "2.2.0",
40
+ "@vercel/routing-utils": "2.2.1",
41
41
  "async-sema": "3.0.1",
42
42
  "buffer-crc32": "0.2.13",
43
43
  "bytes": "3.1.2",
@@ -58,8 +58,7 @@
58
58
  "source-map": "0.7.3",
59
59
  "test-listen": "1.1.0",
60
60
  "text-table": "0.2.0",
61
- "typescript": "4.5.2",
62
61
  "webpack-sources": "3.2.3"
63
62
  },
64
- "gitHead": "a63b9d960bec291e152308c30074843aab802c8d"
63
+ "gitHead": "2de365f9cfea3ce283d2bf855507c71209f1e3d8"
65
64
  }