@vercel/python 32.0.1-snapshot-c7f6a2a993e4 → 32.0.1-snapshot-92f4d50bf3fb

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 +3 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9594,8 +9594,6 @@ var import_crypto2 = require("crypto");
9594
9594
  var import_build_utils14 = require("@vercel/build-utils");
9595
9595
  var SCHEDULES_FUNCTION_PATH = "schedules";
9596
9596
  var GENERATED_SCHEDULE_HANDLER_PATH = "_vc_schedule_handlers/schedules.py";
9597
- var SCHEDULE_NAME_RE = /^[0-9A-Za-z][0-9A-Za-z._-]*$/;
9598
- var MAX_SCHEDULE_NAME_LENGTH = 256;
9599
9597
  function createScheduleHandlerModule({
9600
9598
  moduleName,
9601
9599
  service,
@@ -9726,11 +9724,11 @@ async function introspectSchedules({
9726
9724
  max_duration: maxDuration = null,
9727
9725
  regions = null
9728
9726
  } of introspected) {
9729
- const deployedName = `${service}.${name}`;
9730
- if (deployedName.length > MAX_SCHEDULE_NAME_LENGTH || !SCHEDULE_NAME_RE.test(deployedName)) {
9727
+ const { deployedName, error } = (0, import_build_utils14.getServiceScheduleName)(service, name);
9728
+ if (error) {
9731
9729
  throw scheduleError(
9732
9730
  service,
9733
- `the schedule name "${deployedName}" is invalid. Names can have at most ${MAX_SCHEDULE_NAME_LENGTH} characters, and contain only letters, numbers, ".", "_" and "-". Shorten the \`@schedule\` name "${name}".`
9731
+ `${error} Shorten the \`@schedule\` name "${name}".`
9734
9732
  );
9735
9733
  }
9736
9734
  const target = getScheduleFunction(maxDuration, regions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "32.0.1-snapshot-c7f6a2a993e4",
3
+ "version": "32.0.1-snapshot-92f4d50bf3fb",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -17,7 +17,7 @@
17
17
  "@vercel/python-analysis": "0.15.3"
18
18
  },
19
19
  "peerDependencies": {
20
- "@vercel/build-utils": "15.4.1-snapshot-c7f6a2a993e4"
20
+ "@vercel/build-utils": "15.4.1-snapshot-92f4d50bf3fb"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@renovatebot/pep440": "4.2.1",
@@ -37,8 +37,8 @@
37
37
  "smol-toml": "1.5.2",
38
38
  "vitest": "4.1.10",
39
39
  "which": "3.0.0",
40
+ "@vercel/build-utils": "15.4.1-snapshot-92f4d50bf3fb",
40
41
  "@vercel/error-utils": "2.2.1",
41
- "@vercel/build-utils": "15.4.1-snapshot-c7f6a2a993e4",
42
42
  "@vercel/python-runtime": "0.24.4"
43
43
  },
44
44
  "scripts": {