@vercel/python 4.7.4 → 5.0.0

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.
package/dist/index.js CHANGED
@@ -3085,16 +3085,17 @@ var build = async ({
3085
3085
  const entrypointWithSuffix = `${entrypoint}${suffix}`;
3086
3086
  (0, import_build_utils3.debug)("Entrypoint with suffix is", entrypointWithSuffix);
3087
3087
  const handlerPyContents = originalHandlerPyContents.replace(/__VC_HANDLER_MODULE_NAME/g, moduleName).replace(/__VC_HANDLER_ENTRYPOINT/g, entrypointWithSuffix);
3088
+ const predefinedExcludes = [
3089
+ ".git/**",
3090
+ ".vercel/**",
3091
+ ".pnpm-store/**",
3092
+ "**/node_modules/**",
3093
+ "**/.next/**",
3094
+ "**/.nuxt/**"
3095
+ ];
3088
3096
  const globOptions = {
3089
3097
  cwd: workPath,
3090
- ignore: config && typeof config.excludeFiles === "string" ? config.excludeFiles : [
3091
- ".git/**",
3092
- ".vercel/**",
3093
- ".pnpm-store/**",
3094
- "**/node_modules/**",
3095
- "**/.next/**",
3096
- "**/.nuxt/**"
3097
- ]
3098
+ ignore: config && typeof config.excludeFiles === "string" ? [...predefinedExcludes, config.excludeFiles] : predefinedExcludes
3098
3099
  };
3099
3100
  const files = await (0, import_build_utils3.glob)("**", globOptions);
3100
3101
  const handlerPyFilename = "vc__handler__python";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "4.7.4",
3
+ "version": "5.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -19,7 +19,7 @@
19
19
  "@types/jest": "27.4.1",
20
20
  "@types/node": "14.18.33",
21
21
  "@types/which": "3.0.0",
22
- "@vercel/build-utils": "10.6.7",
22
+ "@vercel/build-utils": "11.0.0",
23
23
  "cross-env": "7.0.3",
24
24
  "execa": "^1.0.0",
25
25
  "fs-extra": "11.1.1",
package/vc_init.py CHANGED
@@ -171,6 +171,11 @@ if 'VERCEL_IPC_PATH' in os.environ:
171
171
  if not self.parse_request():
172
172
  return
173
173
 
174
+ if self.path == '/_vercel/ping':
175
+ self.send_response(200)
176
+ self.end_headers()
177
+ return
178
+
174
179
  invocationId = self.headers.get('x-vercel-internal-invocation-id')
175
180
  requestId = int(self.headers.get('x-vercel-internal-request-id'))
176
181
  del self.headers['x-vercel-internal-invocation-id']