ecklf-tmp-runtime-test
Advanced tools
Comparing version 1.0.122 to 1.0.123
@@ -22,3 +22,3 @@ "use strict"; | ||
const parameterName = segment.replace('[', '').replace(']', ''); | ||
acc.src.push(`(?<${parameterName}>[^/]+)`); | ||
acc.src.push(`(?<${parameterName}>[^/]*`); | ||
acc.searchParams.set(parameterName, `$${parameterName}`); | ||
@@ -38,3 +38,2 @@ return acc; | ||
src: `/${result.src.join('/')}`, | ||
// TODO | ||
dest: `/api/vercel/index${queryString}`, | ||
@@ -41,0 +40,0 @@ }; |
@@ -10,7 +10,7 @@ "use strict"; | ||
{ | ||
"dest": "/api/index", | ||
"dest": "/api/vercel/index", | ||
"src": "/api/foo", | ||
}, | ||
{ | ||
"dest": "/api/index", | ||
"dest": "/api/vercel/index", | ||
"src": "/api/bar/baz", | ||
@@ -29,8 +29,8 @@ }, | ||
{ | ||
"dest": "/api/index?id=$id", | ||
"src": "/api/post/(?<id>[^/]+)", | ||
"dest": "/api/vercel/index?id=$id", | ||
"src": "/api/post/(?<id>[^/]*", | ||
}, | ||
{ | ||
"dest": "/api/index?id=$id&commentId=$commentId", | ||
"src": "/api/post/(?<id>[^/]+)/comments/(?<commentId>[^/]+)", | ||
"dest": "/api/vercel/index?id=$id&commentId=$commentId", | ||
"src": "/api/post/(?<id>[^/]*/comments/(?<commentId>[^/]*", | ||
}, | ||
@@ -49,11 +49,11 @@ ] | ||
{ | ||
"dest": "/api/index", | ||
"dest": "/api/vercel/index", | ||
"src": "/api/(\\S+)", | ||
}, | ||
{ | ||
"dest": "/api/index", | ||
"dest": "/api/vercel/index", | ||
"src": "/api/all/(\\S+)", | ||
}, | ||
{ | ||
"dest": "/api/index", | ||
"dest": "/api/vercel/index", | ||
"src": "/api/optional/(/\\S+)?", | ||
@@ -60,0 +60,0 @@ }, |
{ | ||
"name": "ecklf-tmp-runtime-test", | ||
"version": "1.0.122", | ||
"version": "1.0.123", | ||
"description": "Rust runtime for Vercel Functions.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/vercel-community/rust", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23854
385