@vercel/rust 1.1.0 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +3 -4
package/dist/index.js CHANGED
@@ -430,7 +430,12 @@ var runtime = {
430
430
  startDevServer,
431
431
  shouldServe: async (options) => {
432
432
  (0, import_build_utils6.debug)(`Requested ${options.requestPath} for ${options.entrypoint}`);
433
- return Promise.resolve(options.requestPath === options.entrypoint);
433
+ const entrypointWithoutExt = options.entrypoint.replace(/\.rs$/, "");
434
+ const matches = options.requestPath === options.entrypoint || options.requestPath === entrypointWithoutExt;
435
+ (0, import_build_utils6.debug)(
436
+ `shouldServe: ${matches} (entrypointWithoutExt: ${entrypointWithoutExt})`
437
+ );
438
+ return Promise.resolve(matches);
434
439
  }
435
440
  };
436
441
  var { version, build, prepareCache, startDevServer: startDevServer2, shouldServe } = runtime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/rust",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/rust",
@@ -28,9 +28,8 @@
28
28
  "prettier": "^2.8.4",
29
29
  "rimraf": "^4.1.1",
30
30
  "ts-jest": "^29.0.5",
31
- "typescript": "^4.9.4",
32
- "@vercel/build-utils": "13.14.0",
33
- "@vercel/routing-utils": "6.1.1"
31
+ "@vercel/routing-utils": "6.2.0",
32
+ "@vercel/build-utils": "13.21.0"
34
33
  },
35
34
  "scripts": {
36
35
  "build": "node ../../utils/build-builder.mjs",