File tree Expand file tree Collapse file tree 15 files changed +102
-9
lines changed Expand file tree Collapse file tree 15 files changed +102
-9
lines changed Original file line number Diff line number Diff line change 40
40
"scripts" : {
41
41
"clean" : " lerna clean -y && lerna run clean" ,
42
42
"build" : " lerna bootstrap --ci" ,
43
- "set_version::deno" : " cd ./packages/neo4j-driver-deno && deno run --allow-read --allow-write ./versioning.ts --output=. --filename=current.version.ts " ,
44
- "build::deno" : " cd ./packages/ neo4j-driver-deno && deno run --allow-read --allow-write --allow-net ./generate.ts " ,
43
+ "set_version::deno" : " lerna run set_version --scope neo4j-driver-deno --stream -- " ,
44
+ "build::deno" : " lerna run build --scope neo4j-driver-deno --stream -- " ,
45
45
"build::notci" : " lerna bootstrap" ,
46
46
"docs" : " lerna run docs --stream --concurrency 1" ,
47
47
"test::unit" : " lerna run test::unit --stream" ,
Original file line number Diff line number Diff line change @@ -776,6 +776,12 @@ class Driver {
776
776
return Promise . resolve ( )
777
777
}
778
778
779
+ // eslint-disable-next-line
780
+ // @ts -ignore
781
+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
782
+ return this . close ( )
783
+ }
784
+
779
785
/**
780
786
* @protected
781
787
* @returns {void }
Original file line number Diff line number Diff line change @@ -695,10 +695,11 @@ class Integer {
695
695
*/
696
696
shiftRight ( numBits : number | Integer ) : Integer {
697
697
let bitsCount : number = Integer . toNumber ( numBits )
698
+ const numBitNum : number = Integer . toNumber ( numBits )
698
699
699
700
if ( ( bitsCount &= 63 ) === 0 ) {
700
701
return Integer . ZERO
701
- } else if ( numBits < 32 ) {
702
+ } else if ( numBitNum < 32 ) {
702
703
return Integer . fromBits (
703
704
( this . low >>> bitsCount ) | ( this . high << ( 32 - bitsCount ) ) ,
704
705
this . high >> bitsCount
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ class Result<R extends RecordShape = RecordShape> implements Promise<QueryResult
375
375
* @param {function()|null } onfinally - function when the promise finished
376
376
* @return {Promise } promise.
377
377
*/
378
- [ Symbol . toStringTag ] : string
378
+ [ Symbol . toStringTag ] : string = 'Result'
379
379
finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < QueryResult < R > > {
380
380
return this . _getOrCreatePromise ( ) . finally ( onfinally )
381
381
}
Original file line number Diff line number Diff line change @@ -561,6 +561,12 @@ class Session {
561
561
}
562
562
}
563
563
564
+ // eslint-disable-next-line
565
+ // @ts -ignore
566
+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
567
+ return this . close ( )
568
+ }
569
+
564
570
_connectionHolderWithMode ( mode : SessionMode ) : ConnectionHolder {
565
571
if ( mode === ACCESS_MODE_READ ) {
566
572
return this . _readConnectionHolder
Original file line number Diff line number Diff line change @@ -776,6 +776,12 @@ class Driver {
776
776
return Promise . resolve ( )
777
777
}
778
778
779
+ // eslint-disable-next-line
780
+ // @ts -ignore
781
+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
782
+ return this . close ( )
783
+ }
784
+
779
785
/**
780
786
* @protected
781
787
* @returns {void }
Original file line number Diff line number Diff line change @@ -695,10 +695,11 @@ class Integer {
695
695
*/
696
696
shiftRight ( numBits : number | Integer ) : Integer {
697
697
let bitsCount : number = Integer . toNumber ( numBits )
698
+ const numBitNum : number = Integer . toNumber ( numBits )
698
699
699
700
if ( ( bitsCount &= 63 ) === 0 ) {
700
701
return Integer . ZERO
701
- } else if ( numBits < 32 ) {
702
+ } else if ( numBitNum < 32 ) {
702
703
return Integer . fromBits (
703
704
( this . low >>> bitsCount ) | ( this . high << ( 32 - bitsCount ) ) ,
704
705
this . high >> bitsCount
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ class Result<R extends RecordShape = RecordShape> implements Promise<QueryResult
375
375
* @param {function()|null } onfinally - function when the promise finished
376
376
* @return {Promise } promise.
377
377
*/
378
- [ Symbol . toStringTag ] : string
378
+ [ Symbol . toStringTag ] : string = 'Result'
379
379
finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < QueryResult < R > > {
380
380
return this . _getOrCreatePromise ( ) . finally ( onfinally )
381
381
}
Original file line number Diff line number Diff line change @@ -561,6 +561,12 @@ class Session {
561
561
}
562
562
}
563
563
564
+ // eslint-disable-next-line
565
+ // @ts -ignore
566
+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
567
+ return this . close ( )
568
+ }
569
+
564
570
_connectionHolderWithMode ( mode : SessionMode ) : ConnectionHolder {
565
571
if ( mode === ACCESS_MODE_READ ) {
566
572
return this . _readConnectionHolder
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " neo4j-driver-deno" ,
3
+ "version" : " 5.0.0-dev" ,
4
+ "description" : " Package just used for running scripts" ,
5
+ "private" : true ,
6
+ "main" : " index.js" ,
7
+ "directories" : {
8
+ "lib" : " lib" ,
9
+ "test" : " test"
10
+ },
11
+ "scripts" : {
12
+ "test" : " npm run test::integration" ,
13
+ "test::integration" : " deno test --allow-all ./test" ,
14
+ "set_version" : " deno run --allow-read --allow-write ./versioning.ts --output=. --filename=current.version.ts" ,
15
+ "build" : " deno run --allow-read --allow-write --allow-net ./generate.ts"
16
+ },
17
+ "author" : " Neo4j" ,
18
+ "license" : " Apache-2.0"
19
+ }
You can’t perform that action at this time.
0 commit comments