File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 0.14.2] - 2025-03-03
2
+
3
+ ### Fixed
4
+
5
+ - posix style is enforced when assigning paths in ` @Controller ` (so it still
6
+ works when running on Windows platform)
7
+
1
8
## [ 0.14.1] - 2025-02-23
2
9
3
10
### Changed
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @dklab/oak-routing-ctrl" ,
3
- "version" : " 0.14.1 " ,
3
+ "version" : " 0.14.2 " ,
4
4
"exports" : {
5
5
"." : " ./mod.ts" ,
6
6
"./mod" : " ./mod.ts"
Original file line number Diff line number Diff line change 1
- import { join } from "@std/path" ;
1
+ import { join } from "@std/path/posix " ;
2
2
import { debug } from "./utils/logger.ts" ;
3
3
import { store } from "./Store.ts" ;
4
4
import { patchOasPath } from "./oasStore.ts" ;
@@ -38,7 +38,7 @@ export const Controller =
38
38
if ( ! pair ) continue ;
39
39
const patchedPair = new Map ( ) ;
40
40
pair . forEach ( ( verb , path ) => {
41
- const fullPath = join ( pathPrefix , path ) ;
41
+ const fullPath = join ( pathPrefix , path ) ; // @NOTE **must** be posix style
42
42
patchedPair . set ( fullPath , verb ) ;
43
43
debug (
44
44
`[${ ctrlClassName } ] @Controller: patched [${ verb } ] ${ path } to ${ fullPath } ` ,
You can’t perform that action at this time.
0 commit comments