Skip to content

Commit 9ef936e

Browse files
committed
1 parent 1fa7bff commit 9ef936e

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@ To install:
1010

1111
```
1212
git checkout low-level
13-
npm install --build-from-source --debug
13+
npm install --build-from-source
1414
```
1515

1616
Then run:
1717

1818
```
1919
node 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+
```

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if (av && bv) {
1818
}
1919

2020
function 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(/leveldown\.node$/, `ld${nr}.${copy ? 'b.' : ''}node`)
2525

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
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
}

0 commit comments

Comments
 (0)