@vercel/python 6.11.0 → 6.11.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2856,9 +2856,17 @@ var UvRunner = class {
2856
2856
  env: getProtectedUvEnv(process.env)
2857
2857
  });
2858
2858
  } catch (err) {
2859
- throw new Error(
2859
+ const error = new Error(
2860
2860
  `Failed to run "${pretty}": ${err instanceof Error ? err.message : String(err)}`
2861
2861
  );
2862
+ if (err && typeof err === "object") {
2863
+ if ("code" in err) {
2864
+ error.code = err.code;
2865
+ } else if ("signal" in err) {
2866
+ error.code = err.signal;
2867
+ }
2868
+ }
2869
+ throw error;
2862
2870
  }
2863
2871
  }
2864
2872
  async addDependencies(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "6.11.0",
3
+ "version": "6.11.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",