@@ -365,7 +365,7 @@ describe('examples', function() {
365
365
var neo4j = neo4jv1 ;
366
366
// tag::tls-require-encryption[]
367
367
var driver = neo4j . driver ( "bolt://localhost:7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
368
- // In NodeJS, encryption is ENCRYPTION_NON_LOCAL on by default. In the web bundle, it is ENCRYPTION_OFF .
368
+ // In NodeJS, encryption is on by default. In the web bundle, it is off .
369
369
encrypted :"ENCRYPTION_ON"
370
370
} ) ;
371
371
// end::tls-require-encryption[]
@@ -377,10 +377,10 @@ describe('examples', function() {
377
377
// tag::tls-trust-on-first-use[]
378
378
var driver = neo4j . driver ( "bolt://localhost:7687" , neo4j . auth . basic ( "neo4j" , "neo4j" ) , {
379
379
// Note that trust-on-first-use is not available in the browser bundle,
380
- // in NodeJS, trust-on-first-use is the default trust mode. In the browser
380
+ // in NodeJS, trust-all-certificates is the default trust mode. In the browser
381
381
// it is TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
382
382
trust : "TRUST_ON_FIRST_USE" ,
383
- encrypted :"ENCRYPTION_NON_LOCAL "
383
+ encrypted :"ENCRYPTION_ON "
384
384
} ) ;
385
385
// end::tls-trust-on-first-use[]
386
386
driver . close ( ) ;
@@ -395,7 +395,7 @@ describe('examples', function() {
395
395
// in NodeJS. In the browser bundle the browsers list of trusted
396
396
// certificates is used, due to technical limitations in some browsers.
397
397
trustedCertificates : [ "path/to/ca.crt" ] ,
398
- encrypted :"ENCRYPTION_NON_LOCAL "
398
+ encrypted :"ENCRYPTION_ON "
399
399
} ) ;
400
400
// end::tls-signed[]
401
401
driver . close ( ) ;
@@ -406,7 +406,7 @@ describe('examples', function() {
406
406
// tag::connect-with-auth-disabled[]
407
407
var driver = neo4j . driver ( "bolt://localhost:7687" , {
408
408
// In NodeJS, encryption is on by default. In the web bundle, it is off.
409
- encrypted :"ENCRYPTION_NON_LOCAL "
409
+ encrypted :"ENCRYPTION_ON "
410
410
} ) ;
411
411
// end::connect-with-auth-disabled[]
412
412
driver . close ( ) ;
0 commit comments