Skip to content

Commit 13a4933

Browse files
committed
Fix package.json entry point and readme
1 parent 4227d25 commit 13a4933

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ npm install neo4j-driver
1111
```
1212

1313
```javascript
14-
var neo4j = require('neo4j-driver/v1');
14+
var neo4j = require('neo4j-driver').v1;
1515
```
1616

1717
## Include in web browser
@@ -109,7 +109,7 @@ Number written directly e.g. `session.run("CREATE (n:Node {age: {age}})", {age:
109109
To write the `age` as an integer the `neo4j.int` method should be used:
110110

111111
```javascript
112-
var neo4j = require('neo4j-driver');
112+
var neo4j = require('neo4j-driver').v1;
113113

114114
session.run("CREATE (n {age: {myIntParam}})", {myIntParam: neo4j.int(22)});
115115
```

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"stop-neo4j": "gulp stop-neo4j",
1616
"docs": "node_modules/.bin/esdoc -c esdoc.json"
1717
},
18-
"main": "lib/neo4j.js",
18+
"main": "lib/index.js",
1919
"devDependencies": {
2020
"babel": "^5.8.23",
2121
"babelify": "^6.3.0",

test/neo4j-driver.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('neo4j-driver', function() {
3232
it('should expose version 1 of the API package', function(done) {
3333
// When
3434
var neo4jV1 = require("../lib/v1");
35-
35+
3636
// Then I can access and use V1 of the API
3737
var driver = neo4jV1.driver("bolt://localhost");
3838
driver.session().run( "RETURN 1" )

0 commit comments

Comments
 (0)