Skip to content

Commit 6fa8f12

Browse files
committed
Set the raw API directly.
1 parent 58b71fc commit 6fa8f12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ try {
1616
} catch (e) {
1717
rawApi = require('./build/Debug/nodegit');
1818
}
19-
for (var key in rawApi) {
20-
exports[key] = rawApi[key];
21-
}
19+
20+
// Set the exports prototype to the raw API.
21+
exports.__proto__ = rawApi;
2222

2323
// Import extensions
2424
require('./lib/commit.js');

0 commit comments

Comments
 (0)