@vercel/fs-detectors 7.9.5 → 7.9.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.
@@ -8,10 +8,7 @@ export declare function parsePyModuleAttrEntrypoint(entrypoint: string): {
8
8
  attrName: string;
9
9
  filePath: string;
10
10
  } | null;
11
- /**
12
- * Returns true if the path names a blessed Dockerfile or Containerfile.
13
- * Suffixed names like `Dockerfile.prod` are intentionally not matched.
14
- */
11
+ /** Recognize explicit Dockerfile/Containerfile paths, including suffixed names. */
15
12
  export declare function isDockerfileEntrypoint(entrypoint: string): boolean;
16
13
  /**
17
14
  * Strip trailing slashes from a posixPath.normalize'd path.
@@ -24,7 +24,6 @@ __export(entrypoint_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(entrypoint_exports);
26
26
  var import_path = require("path");
27
- var import_constants = require("./constants");
28
27
  const PYTHON_MODULE_ATTR_RE = /^([A-Za-z_][\w]*(?:\.[A-Za-z_][\w]*)*):([A-Za-z_][\w]*)$/;
29
28
  function parsePyModuleAttrEntrypoint(entrypoint) {
30
29
  const match = PYTHON_MODULE_ATTR_RE.exec(entrypoint);
@@ -38,12 +37,9 @@ function parsePyModuleAttrEntrypoint(entrypoint) {
38
37
  filePath: modulePart.replace(/\./g, "/") + ".py"
39
38
  };
40
39
  }
41
- const CONTAINER_ENTRYPOINT_BASENAMES = new Set(
42
- import_constants.CONTAINER_ENTRYPOINT_CANDIDATES.map((name) => name.toLowerCase())
43
- );
44
40
  function isDockerfileEntrypoint(entrypoint) {
45
- return CONTAINER_ENTRYPOINT_BASENAMES.has(
46
- import_path.posix.basename(entrypoint).toLowerCase()
41
+ return /^(docker|container)file(\..+)?$/i.test(
42
+ import_path.posix.basename(entrypoint)
47
43
  );
48
44
  }
49
45
  function stripTrailingSlash(p) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "7.9.5",
3
+ "version": "7.9.6",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
- "@vercel/build-utils": "14.20.0",
23
+ "@vercel/build-utils": "14.20.1",
24
24
  "@vercel/error-utils": "2.2.1",
25
25
  "@vercel/frameworks": "3.35.0",
26
26
  "@vercel/python-analysis": "0.14.0",
@@ -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.1.13"
36
+ "@vercel-internals/runtimes": "1.1.14"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node build.mjs",