@vercel/python 35.0.1-snapshot-f8c293166d1f → 35.0.1

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 +13 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -10662,7 +10662,7 @@ async function syncDependencies({
10662
10662
  entrypointDir: workPath,
10663
10663
  rootDir: workPath
10664
10664
  });
10665
- if (onlyGroup && !(onlyGroup in (pythonPackage.manifest?.data?.["dependency-groups"] ?? {}))) {
10665
+ if (onlyGroup && !((0, import_python_analysis12.normalizePackageName)(onlyGroup) in (pythonPackage.manifest?.data?.["dependency-groups"] ?? {}))) {
10666
10666
  (0, import_build_utils17.debug)(`No "${onlyGroup}" dependency group found, skipping dependency sync`);
10667
10667
  return;
10668
10668
  }
@@ -11160,6 +11160,18 @@ var startProxyDevServer = async ({
11160
11160
  'Python proxy dev server requires "config.handlerFunction" to be set'
11161
11161
  );
11162
11162
  }
11163
+ if (typeof meta.requestUrl === "string") {
11164
+ const matcher = (0, import_build_utils17.resolveMiddlewareMatcher)(
11165
+ config?.middlewareMatcher,
11166
+ void 0,
11167
+ entrypoint
11168
+ );
11169
+ const matchers = new RegExp((0, import_build_utils17.getRegExpFromMatchers)(matcher));
11170
+ const { pathname } = new URL(meta.requestUrl, "http://localhost");
11171
+ if (!matchers.test(pathname)) {
11172
+ return null;
11173
+ }
11174
+ }
11163
11175
  const serverKey = `${workPath}::proxy::${entrypoint}`;
11164
11176
  const start = await claimPersistentServer(serverKey);
11165
11177
  if ("port" in start) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "35.0.1-snapshot-f8c293166d1f",
3
+ "version": "35.0.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -38,8 +38,8 @@
38
38
  "vitest": "4.1.10",
39
39
  "which": "3.0.0",
40
40
  "@vercel/build-utils": "15.7.0",
41
- "@vercel/error-utils": "2.2.1",
42
- "@vercel/python-runtime": "0.26.0"
41
+ "@vercel/python-runtime": "0.26.0",
42
+ "@vercel/error-utils": "2.2.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "node ../../utils/build-builder.mjs",