ecklf-tmp-runtime-test
Advanced tools
Comparing version 1.0.126 to 1.0.127
@@ -22,3 +22,2 @@ "use strict"; | ||
const utils_1 = require("./lib/utils"); | ||
const routes_1 = require("./lib/routes"); | ||
function buildHandler(options) { | ||
@@ -70,5 +69,5 @@ var _a; | ||
}); | ||
const handlerFiles = yield (0, build_utils_1.glob)('api/**/*.rs', workPath); | ||
const routes = (0, routes_1.generateRoutes)(Object.keys(handlerFiles)); | ||
(0, build_utils_1.debug)(JSON.stringify(routes, null, 2)); | ||
// const handlerFiles = await glob('api/**/*.rs', workPath); | ||
// const routes = generateRoutes(Object.keys(handlerFiles)); | ||
// debug(JSON.stringify(routes, null, 2)); | ||
return { | ||
@@ -86,23 +85,23 @@ output: lambda, | ||
src: '/api/foo', | ||
dest: '/api/index', | ||
dest: '/api/vercel/index', | ||
}, | ||
{ | ||
src: '/api/bar/baz', | ||
dest: '/api/index', | ||
dest: '/api/vercel/index', | ||
}, | ||
{ | ||
src: '/api/dynamic/(?<path>[^/]+)', | ||
dest: '/api/index?path=$path', | ||
dest: '/api/vercel/index?path=$path', | ||
}, | ||
{ | ||
src: '/api/all/(\\S+)', | ||
dest: '/api/index', | ||
dest: '/api/vercel/index', | ||
}, | ||
{ | ||
src: '/api/optional/(/\\S+)?', | ||
dest: '/api/index', | ||
dest: '/api/vercel/index', | ||
}, | ||
{ | ||
src: '/api/(\\S+)', | ||
dest: '/api/index', | ||
dest: '/api/vercel/index', | ||
}, | ||
@@ -109,0 +108,0 @@ ], |
{ | ||
"name": "ecklf-tmp-runtime-test", | ||
"version": "1.0.126", | ||
"version": "1.0.127", | ||
"description": "Rust runtime for Vercel Functions.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/vercel-community/rust", |
23737
384