miniflare 0.0.0-e8975a93a → 0.0.0-ecdfabed0

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/dist/src/index.js CHANGED
@@ -7528,13 +7528,6 @@ var walk = async (dir) => {
7528
7528
  if (filestat.isSymbolicLink() || filestat.isDirectory()) {
7529
7529
  return;
7530
7530
  } else {
7531
- if (counter >= MAX_ASSET_COUNT) {
7532
- throw new Error(
7533
- `Maximum number of assets exceeded.
7534
- Cloudflare Workers supports up to ${MAX_ASSET_COUNT.toLocaleString()} assets in a version. We found ${counter.toLocaleString()} files in the specified assets directory "${dir}".
7535
- Ensure your assets directory contains a maximum of ${MAX_ASSET_COUNT.toLocaleString()} files, and that you have specified your assets directory correctly.`
7536
- );
7537
- }
7538
7531
  if (filestat.size > MAX_ASSET_SIZE) {
7539
7532
  throw new Error(
7540
7533
  `Asset too large.
@@ -7557,6 +7550,13 @@ Ensure all assets in your assets directory "${dir}" conform with the Workers max
7557
7550
  }
7558
7551
  })
7559
7552
  );
7553
+ if (counter > MAX_ASSET_COUNT) {
7554
+ throw new Error(
7555
+ `Maximum number of assets exceeded.
7556
+ Cloudflare Workers supports up to ${MAX_ASSET_COUNT.toLocaleString()} assets in a version. We found ${counter.toLocaleString()} files in the specified assets directory "${dir}".
7557
+ Ensure your assets directory contains a maximum of ${MAX_ASSET_COUNT.toLocaleString()} files, and that you have specified your assets directory correctly.`
7558
+ );
7559
+ }
7560
7560
  return manifest;
7561
7561
  };
7562
7562
  var hashPath = async (path27) => {