@vercel/fs-detectors 7.12.3 → 7.12.4

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.
@@ -156,8 +156,8 @@ var require_entrypoint = __commonJS({
156
156
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
157
157
  var entrypoint_exports = {};
158
158
  __export2(entrypoint_exports, {
159
- getScheduleEntrypointRuntime: () => getScheduleEntrypointRuntime,
160
159
  isDockerfileEntrypoint: () => isDockerfileEntrypoint,
160
+ isNodeScheduleEntrypoint: () => isNodeScheduleEntrypoint,
161
161
  parsePyModuleAttrEntrypoint: () => parsePyModuleAttrEntrypoint2,
162
162
  parsePythonScheduleModule: () => parsePythonScheduleModule,
163
163
  stripTrailingSlash: () => stripTrailingSlash
@@ -169,7 +169,6 @@ var require_entrypoint = __commonJS({
169
169
  var PYTHON_MODULE_RE = /^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*$/;
170
170
  var SOURCE_FILE_RE = /\.(?:py|[cm]?[jt]s)$/;
171
171
  var NODE_SOURCE_FILE_RE = /\.(?:m?js|[cm]?ts)$/;
172
- var DOCKERFILE_NAME_RE = /^(docker|container)file(\..+)?$/i;
173
172
  function parsePyModuleAttrEntrypoint2(entrypoint) {
174
173
  const match = PYTHON_MODULE_ATTR_RE.exec(entrypoint);
175
174
  if (!match)
@@ -193,12 +192,8 @@ var require_entrypoint = __commonJS({
193
192
  sourceFiles: [`${path}/__init__.py`, `${path}.py`]
194
193
  };
195
194
  }
196
- function getScheduleEntrypointRuntime(entrypoint) {
197
- if (NODE_SOURCE_FILE_RE.test(entrypoint))
198
- return "node";
199
- if (DOCKERFILE_NAME_RE.test(entrypoint))
200
- return void 0;
201
- return parsePythonScheduleModule(entrypoint) ? "python" : void 0;
195
+ function isNodeScheduleEntrypoint(entrypoint) {
196
+ return NODE_SOURCE_FILE_RE.test(entrypoint);
202
197
  }
203
198
  var CONTAINER_ENTRYPOINT_BASENAMES = new Set(
204
199
  import_constants2.CONTAINER_ENTRYPOINT_CANDIDATES.map((name) => name.toLowerCase())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "7.12.3",
3
+ "version": "7.12.4",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "minimatch": "3.1.2",
21
21
  "semver": "6.3.1",
22
22
  "smol-toml": "1.5.2",
23
- "@vercel/build-utils": "15.4.2",
24
- "@vercel/frameworks": "3.35.0",
23
+ "@vercel/build-utils": "15.5.0",
25
24
  "@vercel/error-utils": "2.2.1",
25
+ "@vercel/frameworks": "3.35.0",
26
26
  "@vercel/routing-utils": "6.6.1",
27
27
  "@vercel/python-analysis": "0.15.3"
28
28
  },
@@ -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.11"
36
+ "@vercel-internals/runtimes": "1.2.12"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node build.mjs",