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 4040 "scripts" : {
4141 "clean" : " lerna clean -y && lerna run clean" ,
4242 "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 -- " ,
4545 "build::notci" : " lerna bootstrap" ,
4646 "docs" : " lerna run docs --stream --concurrency 1" ,
4747 "test::unit" : " lerna run test::unit --stream" ,
Original file line number Diff line number Diff line change @@ -776,6 +776,12 @@ class Driver {
776776 return Promise . resolve ( )
777777 }
778778
779+ // eslint-disable-next-line
780+ // @ts -ignore
781+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
782+ return this . close ( )
783+ }
784+
779785 /**
780786 * @protected
781787 * @returns {void }
Original file line number Diff line number Diff line change @@ -695,10 +695,11 @@ class Integer {
695695 */
696696 shiftRight ( numBits : number | Integer ) : Integer {
697697 let bitsCount : number = Integer . toNumber ( numBits )
698+ const numBitNum : number = Integer . toNumber ( numBits )
698699
699700 if ( ( bitsCount &= 63 ) === 0 ) {
700701 return Integer . ZERO
701- } else if ( numBits < 32 ) {
702+ } else if ( numBitNum < 32 ) {
702703 return Integer . fromBits (
703704 ( this . low >>> bitsCount ) | ( this . high << ( 32 - bitsCount ) ) ,
704705 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
375375 * @param {function()|null } onfinally - function when the promise finished
376376 * @return {Promise } promise.
377377 */
378- [ Symbol . toStringTag ] : string
378+ [ Symbol . toStringTag ] : string = 'Result'
379379 finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < QueryResult < R > > {
380380 return this . _getOrCreatePromise ( ) . finally ( onfinally )
381381 }
Original file line number Diff line number Diff line change @@ -561,6 +561,12 @@ class Session {
561561 }
562562 }
563563
564+ // eslint-disable-next-line
565+ // @ts -ignore
566+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
567+ return this . close ( )
568+ }
569+
564570 _connectionHolderWithMode ( mode : SessionMode ) : ConnectionHolder {
565571 if ( mode === ACCESS_MODE_READ ) {
566572 return this . _readConnectionHolder
Original file line number Diff line number Diff line change @@ -776,6 +776,12 @@ class Driver {
776776 return Promise . resolve ( )
777777 }
778778
779+ // eslint-disable-next-line
780+ // @ts -ignore
781+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
782+ return this . close ( )
783+ }
784+
779785 /**
780786 * @protected
781787 * @returns {void }
Original file line number Diff line number Diff line change @@ -695,10 +695,11 @@ class Integer {
695695 */
696696 shiftRight ( numBits : number | Integer ) : Integer {
697697 let bitsCount : number = Integer . toNumber ( numBits )
698+ const numBitNum : number = Integer . toNumber ( numBits )
698699
699700 if ( ( bitsCount &= 63 ) === 0 ) {
700701 return Integer . ZERO
701- } else if ( numBits < 32 ) {
702+ } else if ( numBitNum < 32 ) {
702703 return Integer . fromBits (
703704 ( this . low >>> bitsCount ) | ( this . high << ( 32 - bitsCount ) ) ,
704705 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
375375 * @param {function()|null } onfinally - function when the promise finished
376376 * @return {Promise } promise.
377377 */
378- [ Symbol . toStringTag ] : string
378+ [ Symbol . toStringTag ] : string = 'Result'
379379 finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < QueryResult < R > > {
380380 return this . _getOrCreatePromise ( ) . finally ( onfinally )
381381 }
Original file line number Diff line number Diff line change @@ -561,6 +561,12 @@ class Session {
561561 }
562562 }
563563
564+ // eslint-disable-next-line
565+ // @ts -ignore
566+ [ Symbol . asyncDispose ] ( ) : Promise < void > {
567+ return this . close ( )
568+ }
569+
564570 _connectionHolderWithMode ( mode : SessionMode ) : ConnectionHolder {
565571 if ( mode === ACCESS_MODE_READ ) {
566572 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