@vercel/fun 1.1.0 → 1.1.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.
package/README.md CHANGED
@@ -80,7 +80,7 @@ implemented are:
80
80
  * `nodejs14.x` for Node.js Lambda functions using a downloaded Node v14.18.1 binary
81
81
  * `python` for Python Lambda functions using the system `python` binary
82
82
  * `python2.7` for Python Lambda functions using a downloaded Python v2.7.12 binary
83
- * `python3` for Python Lambda functions using the system `python3` binary (or fallback to `python`)
83
+ * `python3` for Python Lambda functions using the system `python3` binary
84
84
  * `python3.6` for Python Lambda functions using a downloaded Python v3.6.8 binary
85
85
  * `python3.7` for Python Lambda functions using a downloaded Python v3.7.2 binary
86
86
  * `go1.x` for Lambda functions written in Go - binary must be compiled for your platform
@@ -1,2 +1,2 @@
1
1
  import { Runtime } from '../../types';
2
- export declare function init(_runtime: Runtime): Promise<void>;
2
+ export declare function init({ cacheDir }: Runtime): Promise<void>;
@@ -10,10 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.init = void 0;
13
+ const install_python_1 = require("../../install-python");
13
14
  const runtimes_1 = require("../../runtimes");
14
- function init(_runtime) {
15
+ function init({ cacheDir }) {
15
16
  return __awaiter(this, void 0, void 0, function* () {
16
- yield (0, runtimes_1.initializeRuntime)(runtimes_1.runtimes.python);
17
+ yield Promise.all([
18
+ (0, runtimes_1.initializeRuntime)(runtimes_1.runtimes.python),
19
+ (0, install_python_1.installPython)(cacheDir, '3.6.8')
20
+ ]);
17
21
  });
18
22
  }
19
23
  exports.init = init;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtimes/python3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA6D;AAE7D,SAAsB,IAAI,CAAC,QAAiB;;QAC3C,MAAM,IAAA,4BAAiB,EAAC,mBAAQ,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;CAAA;AAFD,oBAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtimes/python3/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAqD;AACrD,6CAA6D;AAE7D,SAAsB,IAAI,CAAC,EAAE,QAAQ,EAAW;;QAC/C,MAAM,OAAO,CAAC,GAAG,CAAC;YACjB,IAAA,4BAAiB,EAAC,mBAAQ,CAAC,MAAM,CAAC;YAClC,IAAA,8BAAa,EAAC,QAAQ,EAAE,OAAO,CAAC;SAChC,CAAC,CAAC;IACJ,CAAC;CAAA;AALD,oBAKC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fun",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Local Lambda development environment",
5
5
  "main": "dist/src/index",
6
6
  "typings": "dist/src/index",
@@ -10,8 +10,8 @@
10
10
  "prebuild": "rimraf dist",
11
11
  "build": "tsc",
12
12
  "postbuild": "cpy --parents src test '!**/*.ts' dist",
13
- "test": "echo \"Node.js version: $(node -v)\\n\" && yarn build && jest --verbose test/test.js",
14
- "test-codecov": "nyc npm test",
13
+ "test": "echo \"Node.js version: $(node -v)\\n\" && pnpm build && jest --detectOpenHandles --verbose test/test.js",
14
+ "test-codecov": "nyc pnpm test",
15
15
  "report-codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
16
16
  "lint:staged": "lint-staged",
17
17
  "prettier": "prettier --write --single-quote './{src,test}/**/*.ts'",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@tootallnate/once": "2.0.0",
25
25
  "async-listen": "1.2.0",
26
- "debug": "4.1.1",
26
+ "debug": "4.3.4",
27
27
  "execa": "3.2.0",
28
28
  "fs-extra": "8.1.0",
29
29
  "generic-pool": "3.4.2",
@@ -32,7 +32,7 @@
32
32
  "node-fetch": "2.6.7",
33
33
  "path-match": "1.2.4",
34
34
  "promisepipe": "3.0.0",
35
- "semver": "7.3.5",
35
+ "semver": "7.5.4",
36
36
  "stat-mode": "0.3.0",
37
37
  "stream-to-promise": "2.2.0",
38
38
  "tar": "4.4.18",
@@ -43,7 +43,7 @@
43
43
  "yauzl-promise": "2.1.3"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/debug": "4.1.7",
46
+ "@types/debug": "4.1.9",
47
47
  "@types/fs-extra": "8.1.0",
48
48
  "@types/generic-pool": "3.1.9",
49
49
  "@types/jest": "27.0.2",