@vercel/fs-detectors 7.10.0 → 7.10.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.
@@ -345,11 +345,13 @@ var import_build_utils2 = require("@vercel/build-utils");
345
345
  // src/python.ts
346
346
  var import_fs = __toESM(require("fs"));
347
347
  var import_build_utils = require("@vercel/build-utils");
348
- var import_python_analysis = require("@vercel/python-analysis");
349
348
  async function isPythonEntrypoint(fsPath) {
349
+ const {
350
+ findAppOrHandler
351
+ } = require("@vercel/python-analysis");
350
352
  try {
351
353
  const content = await import_fs.default.promises.readFile(fsPath, "utf-8");
352
- return await (0, import_python_analysis.findAppOrHandler)(content) !== null;
354
+ return await findAppOrHandler(content) !== null;
353
355
  } catch (err) {
354
356
  (0, import_build_utils.debug)(`Failed to check Python entrypoint: ${err}`);
355
357
  return false;
package/dist/python.js CHANGED
@@ -33,11 +33,13 @@ __export(python_exports, {
33
33
  module.exports = __toCommonJS(python_exports);
34
34
  var import_fs = __toESM(require("fs"));
35
35
  var import_build_utils = require("@vercel/build-utils");
36
- var import_python_analysis = require("@vercel/python-analysis");
37
36
  async function isPythonEntrypoint(fsPath) {
37
+ const {
38
+ findAppOrHandler
39
+ } = require("@vercel/python-analysis");
38
40
  try {
39
41
  const content = await import_fs.default.promises.readFile(fsPath, "utf-8");
40
- return await (0, import_python_analysis.findAppOrHandler)(content) !== null;
42
+ return await findAppOrHandler(content) !== null;
41
43
  } catch (err) {
42
44
  (0, import_build_utils.debug)(`Failed to check Python entrypoint: ${err}`);
43
45
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "7.10.0",
3
+ "version": "7.10.1",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
- "@vercel/build-utils": "14.23.0",
24
23
  "@vercel/error-utils": "2.2.1",
25
24
  "@vercel/frameworks": "3.35.0",
26
25
  "@vercel/python-analysis": "0.15.2",
26
+ "@vercel/build-utils": "15.0.0",
27
27
  "@vercel/routing-utils": "6.6.0"
28
28
  },
29
29
  "devDependencies": {
@@ -33,7 +33,7 @@
33
33
  "@types/node": "20.11.0",
34
34
  "@types/semver": "7.3.10",
35
35
  "vitest": "4.1.10",
36
- "@vercel-internals/runtimes": "1.2.0"
36
+ "@vercel-internals/runtimes": "1.2.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node build.mjs",