@vercel/python 3.1.4 → 3.1.7

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 +6 -5
  2. package/package.json +4 -5
package/dist/index.js CHANGED
@@ -3595,13 +3595,10 @@ const build = async ({ workPath, files: originalFiles, entrypoint, meta = {}, co
3595
3595
  : null;
3596
3596
  if (pipfileLockDir) {
3597
3597
  build_utils_1.debug('Found "Pipfile.lock"');
3598
+ let lock = {};
3598
3599
  try {
3599
3600
  const json = await readFile(path_1.join(pipfileLockDir, 'Pipfile.lock'), 'utf8');
3600
- const obj = JSON.parse(json);
3601
- pythonVersion = version_1.getSupportedPythonVersion({
3602
- isDev: meta.isDev,
3603
- pipLockPythonVersion: obj?._meta?.requires?.python_version,
3604
- });
3601
+ lock = JSON.parse(json);
3605
3602
  }
3606
3603
  catch (err) {
3607
3604
  throw new build_utils_1.NowBuildError({
@@ -3609,6 +3606,10 @@ const build = async ({ workPath, files: originalFiles, entrypoint, meta = {}, co
3609
3606
  message: 'Unable to parse Pipfile.lock',
3610
3607
  });
3611
3608
  }
3609
+ pythonVersion = version_1.getSupportedPythonVersion({
3610
+ isDev: meta.isDev,
3611
+ pipLockPythonVersion: lock?._meta?.requires?.python_version,
3612
+ });
3612
3613
  // Convert Pipenv.Lock to requirements.txt.
3613
3614
  // We use a different`workPath` here because we want `pipfile-requirements` and it's dependencies
3614
3615
  // to not be part of the lambda environment. By using pip's `--target` directive we can isolate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "3.1.4",
3
+ "version": "3.1.7",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -17,16 +17,15 @@
17
17
  "build": "node build",
18
18
  "test": "jest --env node --verbose --runInBand --bail",
19
19
  "test-unit": "yarn test test/unit.test.ts",
20
- "test-integration-once": "yarn test test/integration.test.ts",
21
- "prepublishOnly": "node build"
20
+ "test-integration-once": "yarn test test/integration.test.ts"
22
21
  },
23
22
  "devDependencies": {
24
23
  "@types/execa": "^0.9.0",
25
24
  "@types/jest": "27.4.1",
26
- "@vercel/build-utils": "5.0.8",
25
+ "@vercel/build-utils": "5.2.0",
27
26
  "@vercel/ncc": "0.24.0",
28
27
  "execa": "^1.0.0",
29
28
  "typescript": "4.3.4"
30
29
  },
31
- "gitHead": "543ffdfe5ccfb59c9c455fc50df3bb8ed1eaf567"
30
+ "gitHead": "32afd67d29d46f67027091ab9695d8ff330355b5"
32
31
  }