File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,17 @@ To install:
1010
1111```
1212git checkout low-level
13- npm install --build-from-source --debug
13+ npm install --build-from-source
1414```
1515
1616Then run:
1717
1818```
1919node index.js 5.3.0 5.0.2
2020```
21+
22+ Or to test the fix:
23+
24+ ```
25+ node index.js next 5.0.2
26+ ```
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ if (av && bv) {
1818}
1919
2020function load ( version , copy ) {
21- const nr = version . replace ( / [ ^ \d ] / g, '' )
22- const id = `ld${ nr } /build/Debug /leveldown.node`
21+ const nr = version . replace ( / [ ^ \w ] / g, '' )
22+ const id = `ld${ nr } /build/Release /leveldown.node`
2323 const src = require . resolve ( id )
2424 const dest = src . replace ( / l e v e l d o w n \. n o d e $ / , `ld${ nr } .${ copy ? 'b.' : '' } node` )
2525
Original file line number Diff line number Diff line change 1111 "author" : " " ,
1212 "license" : " ISC" ,
1313 "dependencies" : {
14- "ld500" : " npm:leveldown@5.0.0" ,
1514 "ld502" : " npm:leveldown@5.0.2" ,
16- "ld503" : " npm:leveldown@5.0.3" ,
17- "ld510" : " npm:leveldown@5.1.0" ,
18- "ld511" : " npm:leveldown@5.1.1" ,
19- "ld520" : " npm:leveldown@5.2.0" ,
20- "ld530" : " npm:leveldown@5.3.0"
15+ "ld530" : " npm:leveldown@5.3.0" ,
16+ "ldnext" : " github:Level/leveldown#add-namespace"
2117 },
2218 "devDependencies" : {}
2319}
You can’t perform that action at this time.
0 commit comments