@faable/faable 1.4.7 → 1.4.9

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.
@@ -4,7 +4,7 @@ function prepare_client({ authStrategy, auth, } = {}) {
4
4
  const strategy = authStrategy && authStrategy(auth);
5
5
  const client = axios.create({
6
6
  baseURL: "https://api.faable.com",
7
- timeout: 5000,
7
+ timeout: 10000,
8
8
  });
9
9
  client.interceptors.request.use(async function (config) {
10
10
  // Do something before request is sent
@@ -20,7 +20,8 @@ const strategy_nodejs = async (workdir) => {
20
20
  let runtime_version = "18.19.0";
21
21
  if (engines?.node) {
22
22
  try {
23
- const out = await cmd(`npm view node@${engines.node} version | tail -n 1 | cut -d "'" -f2`);
23
+ const check_cmd = `npm view node@"${engines.node}" version | tail -n 1 | cut -d "'" -f2`;
24
+ const out = await cmd(check_cmd);
24
25
  runtime_version = out.stdout.toString();
25
26
  log.info(`Using node@${runtime_version} from engines in package.json (${engines.node})`);
26
27
  }
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "yaml": "^2.2.2",
15
15
  "yargs": "^17.6.2"
16
16
  },
17
- "version": "1.4.7",
17
+ "version": "1.4.9",
18
18
  "bin": {
19
19
  "faable": "bin/faable.js"
20
20
  },