@faable/faable 4.10.1 → 4.11.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.
@@ -1,4 +1,5 @@
1
1
  import { log } from '../../../log.js';
2
+ import { format_bytes } from '../inspect/detail.js';
2
3
  import { follow_remote_build } from './follow.js';
3
4
  import { collect_manifest } from './manifest.js';
4
5
  import { upload_missing_blobs } from './upload.js';
@@ -18,7 +19,10 @@ const deploy_remote = async (props) => {
18
19
  const { api, app, git, release, workdir } = props;
19
20
  log.info(`☁️ Remote build`);
20
21
  const manifest = await collect_manifest(workdir);
21
- log.info(`🗂️ ${manifest.length} files in the source manifest`);
22
+ // The total is what the api weighs against the plan when the app's last
23
+ // build came out too large — say it before anything is uploaded.
24
+ const total = manifest.reduce((sum, f) => sum + f.size, 0);
25
+ log.info(`🗂️ ${manifest.length} files in the source manifest (${format_bytes(total)})`);
22
26
  await upload_missing_blobs(api, app.id, workdir, manifest);
23
27
  // No `plan`: the builder re-detects on the assembled tree and syncs the app's
24
28
  // runtime_strategy on completion.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "4.10.1",
3
+ "version": "4.11.0",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",