gremlin 3.6.1 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/NOTICE +1 -1
  2. package/doc/AnonymousTraversalSource.html +1 -1
  3. package/doc/Authenticator.html +1 -1
  4. package/doc/Bytecode.html +1 -1
  5. package/doc/Client.html +173 -8
  6. package/doc/Connection.html +40 -7
  7. package/doc/DriverRemoteConnection.html +143 -11
  8. package/doc/EdgeLabelVerificationStrategy.html +1 -1
  9. package/doc/Graph.html +1 -1
  10. package/doc/GraphSON2Reader.html +1 -1
  11. package/doc/GraphSON2Writer.html +1 -1
  12. package/doc/GraphSON3Reader.html +1 -1
  13. package/doc/GraphSON3Writer.html +1 -1
  14. package/doc/GraphTraversal.html +1 -1
  15. package/doc/GraphTraversalSource.html +1 -1
  16. package/doc/HaltedTraverserStrategy.html +1 -1
  17. package/doc/MatchAlgorithmStrategy.html +1 -1
  18. package/doc/P.html +1 -1
  19. package/doc/PartitionStrategy.html +1 -1
  20. package/doc/Path.html +1 -1
  21. package/doc/PlainTextSaslAuthenticator.html +1 -1
  22. package/doc/ProductiveByStrategy.html +1 -1
  23. package/doc/RemoteConnection.html +1 -1
  24. package/doc/RemoteStrategy.html +1 -1
  25. package/doc/RemoteTraversal.html +1 -1
  26. package/doc/ReservedKeysVerificationStrategy.html +1 -1
  27. package/doc/ResponseError.html +1 -1
  28. package/doc/ResultSet.html +1 -1
  29. package/doc/SaslAuthenticator.html +1 -1
  30. package/doc/SaslMechanismBase.html +1 -1
  31. package/doc/SaslMechanismPlain.html +1 -1
  32. package/doc/SeedStrategy.html +1 -1
  33. package/doc/SubgraphStrategy.html +1 -1
  34. package/doc/TextP.html +1 -1
  35. package/doc/Transaction.html +1 -1
  36. package/doc/Translator.html +1 -1
  37. package/doc/TraversalStrategies.html +1 -1
  38. package/doc/TraversalStrategy.html +1 -1
  39. package/doc/TypeSerializer.html +1 -1
  40. package/doc/driver_auth_authenticator.js.html +1 -1
  41. package/doc/driver_auth_mechanisms_sasl-mechanism-base.js.html +1 -1
  42. package/doc/driver_auth_mechanisms_sasl-mechanism-plain.js.html +1 -1
  43. package/doc/driver_auth_plain-text-sasl-authenticator.js.html +1 -1
  44. package/doc/driver_auth_sasl-authenticator.js.html +1 -1
  45. package/doc/driver_client.js.html +6 -1
  46. package/doc/driver_connection.js.html +18 -5
  47. package/doc/driver_driver-remote-connection.js.html +5 -1
  48. package/doc/driver_remote-connection.js.html +1 -1
  49. package/doc/driver_response-error.js.html +1 -1
  50. package/doc/driver_result-set.js.html +1 -1
  51. package/doc/global.html +2 -2
  52. package/doc/index.html +1 -1
  53. package/doc/module.exports.html +1 -1
  54. package/doc/process_anonymous-traversal.js.html +1 -1
  55. package/doc/process_bytecode.js.html +1 -1
  56. package/doc/process_graph-traversal.js.html +1 -1
  57. package/doc/process_transaction.js.html +1 -1
  58. package/doc/process_translator.js.html +1 -1
  59. package/doc/process_traversal-strategy.js.html +1 -1
  60. package/doc/process_traversal.js.html +2 -2
  61. package/doc/structure_graph.js.html +1 -1
  62. package/doc/structure_io_binary_internals_DataType.js.html +1 -1
  63. package/doc/structure_io_binary_internals_GraphBinaryReader.js.html +1 -1
  64. package/doc/structure_io_binary_internals_GraphBinaryWriter.js.html +1 -1
  65. package/doc/structure_io_graph-serializer.js.html +1 -1
  66. package/doc/structure_io_type-serializers.js.html +1 -1
  67. package/docker-compose.yml +62 -0
  68. package/index.js +1 -0
  69. package/lib/driver/client.js +5 -0
  70. package/lib/driver/connection.js +17 -4
  71. package/lib/driver/driver-remote-connection.js +4 -0
  72. package/lib/process/traversal.js +1 -1
  73. package/lib/utils.js +29 -0
  74. package/package.json +16 -13
@@ -161,7 +161,7 @@
161
161
  <br class="clear">
162
162
 
163
163
  <footer>
164
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
164
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
165
165
  </footer>
166
166
 
167
167
  <script> prettyPrint(); </script>
@@ -18289,7 +18289,7 @@
18289
18289
  <br class="clear">
18290
18290
 
18291
18291
  <footer>
18292
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
18292
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
18293
18293
  </footer>
18294
18294
 
18295
18295
  <script> prettyPrint(); </script>
@@ -3658,7 +3658,7 @@
3658
3658
  <br class="clear">
3659
3659
 
3660
3660
  <footer>
3661
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
3661
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
3662
3662
  </footer>
3663
3663
 
3664
3664
  <script> prettyPrint(); </script>
@@ -206,7 +206,7 @@
206
206
  <br class="clear">
207
207
 
208
208
  <footer>
209
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
209
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
210
210
  </footer>
211
211
 
212
212
  <script> prettyPrint(); </script>
@@ -201,7 +201,7 @@
201
201
  <br class="clear">
202
202
 
203
203
  <footer>
204
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
204
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
205
205
  </footer>
206
206
 
207
207
  <script> prettyPrint(); </script>
package/doc/P.html CHANGED
@@ -1866,7 +1866,7 @@
1866
1866
  <br class="clear">
1867
1867
 
1868
1868
  <footer>
1869
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
1869
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
1870
1870
  </footer>
1871
1871
 
1872
1872
  <script> prettyPrint(); </script>
@@ -378,7 +378,7 @@
378
378
  <br class="clear">
379
379
 
380
380
  <footer>
381
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
381
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
382
382
  </footer>
383
383
 
384
384
  <script> prettyPrint(); </script>
package/doc/Path.html CHANGED
@@ -233,7 +233,7 @@
233
233
  <br class="clear">
234
234
 
235
235
  <footer>
236
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
236
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
237
237
  </footer>
238
238
 
239
239
  <script> prettyPrint(); </script>
@@ -447,7 +447,7 @@
447
447
  <br class="clear">
448
448
 
449
449
  <footer>
450
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
450
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
451
451
  </footer>
452
452
 
453
453
  <script> prettyPrint(); </script>
@@ -279,7 +279,7 @@
279
279
  <br class="clear">
280
280
 
281
281
  <footer>
282
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
282
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
283
283
  </footer>
284
284
 
285
285
  <script> prettyPrint(); </script>
@@ -1077,7 +1077,7 @@ If the connection is already session bound then this function should throw an ex
1077
1077
  <br class="clear">
1078
1078
 
1079
1079
  <footer>
1080
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
1080
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
1081
1081
  </footer>
1082
1082
 
1083
1083
  <script> prettyPrint(); </script>
@@ -298,7 +298,7 @@
298
298
  <br class="clear">
299
299
 
300
300
  <footer>
301
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
301
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
302
302
  </footer>
303
303
 
304
304
  <script> prettyPrint(); </script>
@@ -161,7 +161,7 @@
161
161
  <br class="clear">
162
162
 
163
163
  <footer>
164
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
164
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
165
165
  </footer>
166
166
 
167
167
  <script> prettyPrint(); </script>
@@ -270,7 +270,7 @@
270
270
  <br class="clear">
271
271
 
272
272
  <footer>
273
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
273
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
274
274
  </footer>
275
275
 
276
276
  <script> prettyPrint(); </script>
@@ -351,7 +351,7 @@
351
351
  <br class="clear">
352
352
 
353
353
  <footer>
354
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
354
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
355
355
  </footer>
356
356
 
357
357
  <script> prettyPrint(); </script>
@@ -712,7 +712,7 @@
712
712
  <br class="clear">
713
713
 
714
714
  <footer>
715
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
715
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
716
716
  </footer>
717
717
 
718
718
  <script> prettyPrint(); </script>
@@ -446,7 +446,7 @@
446
446
  <br class="clear">
447
447
 
448
448
  <footer>
449
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
449
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
450
450
  </footer>
451
451
 
452
452
  <script> prettyPrint(); </script>
@@ -497,7 +497,7 @@
497
497
  <br class="clear">
498
498
 
499
499
  <footer>
500
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
500
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
501
501
  </footer>
502
502
 
503
503
  <script> prettyPrint(); </script>
@@ -916,7 +916,7 @@
916
916
  <br class="clear">
917
917
 
918
918
  <footer>
919
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
919
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
920
920
  </footer>
921
921
 
922
922
  <script> prettyPrint(); </script>
@@ -279,7 +279,7 @@
279
279
  <br class="clear">
280
280
 
281
281
  <footer>
282
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
282
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
283
283
  </footer>
284
284
 
285
285
  <script> prettyPrint(); </script>
@@ -378,7 +378,7 @@
378
378
  <br class="clear">
379
379
 
380
380
  <footer>
381
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
381
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
382
382
  </footer>
383
383
 
384
384
  <script> prettyPrint(); </script>
package/doc/TextP.html CHANGED
@@ -1431,7 +1431,7 @@
1431
1431
  <br class="clear">
1432
1432
 
1433
1433
  <footer>
1434
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
1434
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
1435
1435
  </footer>
1436
1436
 
1437
1437
  <script> prettyPrint(); </script>
@@ -646,7 +646,7 @@ then close the transaction and thus, the session. This feature only works with t
646
646
  <br class="clear">
647
647
 
648
648
  <footer>
649
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
649
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
650
650
  </footer>
651
651
 
652
652
  <script> prettyPrint(); </script>
@@ -518,7 +518,7 @@
518
518
  <br class="clear">
519
519
 
520
520
  <footer>
521
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
521
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
522
522
  </footer>
523
523
 
524
524
  <script> prettyPrint(); </script>
@@ -643,7 +643,7 @@
643
643
  <br class="clear">
644
644
 
645
645
  <footer>
646
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
646
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
647
647
  </footer>
648
648
 
649
649
  <script> prettyPrint(); </script>
@@ -384,7 +384,7 @@
384
384
  <br class="clear">
385
385
 
386
386
  <footer>
387
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
387
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
388
388
  </footer>
389
389
 
390
390
  <script> prettyPrint(); </script>
@@ -157,7 +157,7 @@
157
157
  <br class="clear">
158
158
 
159
159
  <footer>
160
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
160
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
161
161
  </footer>
162
162
 
163
163
  <script> prettyPrint(); </script>
@@ -80,7 +80,7 @@ module.exports = Authenticator;
80
80
  <br class="clear">
81
81
 
82
82
  <footer>
83
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
83
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
84
84
  </footer>
85
85
 
86
86
  <script> prettyPrint(); </script>
@@ -94,7 +94,7 @@ module.exports = SaslMechanismBase;
94
94
  <br class="clear">
95
95
 
96
96
  <footer>
97
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
97
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
98
98
  </footer>
99
99
 
100
100
  <script> prettyPrint(); </script>
@@ -147,7 +147,7 @@ module.exports = SaslMechanismPlain;
147
147
  <br class="clear">
148
148
 
149
149
  <footer>
150
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
150
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
151
151
  </footer>
152
152
 
153
153
  <script> prettyPrint(); </script>
@@ -97,7 +97,7 @@ module.exports = PlainTextSaslAuthenticator;
97
97
  <br class="clear">
98
98
 
99
99
  <footer>
100
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
100
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
101
101
  </footer>
102
102
 
103
103
  <script> prettyPrint(); </script>
@@ -91,7 +91,7 @@ module.exports = SaslAuthenticator;
91
91
  <br class="clear">
92
92
 
93
93
  <footer>
94
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
94
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
95
95
  </footer>
96
96
 
97
97
  <script> prettyPrint(); </script>
@@ -67,8 +67,13 @@ class Client {
67
67
  * @param {String} [options.traversalSource] The traversal source. Defaults to: 'g'.
68
68
  * @param {GraphSONWriter} [options.writer] The writer to use.
69
69
  * @param {Authenticator} [options.authenticator] The authentication handler to use.
70
+ * @param {Object} [options.headers] An associative array containing the additional header key/values for the initial request.
71
+ * @param {Boolean} [options.enableUserAgentOnConnect] Determines if a user agent will be sent during connection handshake. Defaults to: true
70
72
  * @param {String} [options.processor] The name of the opProcessor to use, leave it undefined or set 'session' when session mode.
71
73
  * @param {String} [options.session] The sessionId of Client in session mode. Defaults to null means session-less Client.
74
+ * @param {Boolean} [options.pingEnabled] Setup ping interval. Defaults to: true.
75
+ * @param {Number} [options.pingInterval] Ping request interval in ms if ping enabled. Defaults to: 60000.
76
+ * @param {Number} [options.pongTimeout] Timeout of pong response in ms after sending a ping. Defaults to: 30000.
72
77
  * @constructor
73
78
  */
74
79
  constructor(url, options = {}) {
@@ -236,7 +241,7 @@ module.exports = Client;
236
241
  <br class="clear">
237
242
 
238
243
  <footer>
239
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
244
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
240
245
  </footer>
241
246
 
242
247
  <script> prettyPrint(); </script>
@@ -92,6 +92,7 @@ class Connection extends EventEmitter {
92
92
  * @param {GraphSONWriter} [options.writer] The writer to use.
93
93
  * @param {Authenticator} [options.authenticator] The authentication handler to use.
94
94
  * @param {Object} [options.headers] An associative array containing the additional header key/values for the initial request.
95
+ * @param {Boolean} [options.enableUserAgentOnConnect] Determines if a user agent will be sent during connection handshake. Defaults to: true
95
96
  * @param {Boolean} [options.pingEnabled] Setup ping interval. Defaults to: true.
96
97
  * @param {Number} [options.pingInterval] Ping request interval in ms if ping enabled. Defaults to: 60000.
97
98
  * @param {Number} [options.pongTimeout] Timeout of pong response in ms after sending a ping. Defaults to: 30000.
@@ -110,7 +111,7 @@ class Connection extends EventEmitter {
110
111
  */
111
112
  this.mimeType = options.mimeType || defaultMimeType;
112
113
 
113
- // A map containing the request id and the handler
114
+ // A map containing the request id and the handler. The id should be in lower case to prevent string comparison issues.
114
115
  this._responseHandlers = {};
115
116
  this._reader = options.reader || this._getDefaultReader(this.mimeType);
116
117
  this._writer = options.writer || this._getDefaultWriter(this.mimeType);
@@ -126,6 +127,7 @@ class Connection extends EventEmitter {
126
127
  this.isOpen = false;
127
128
  this.traversalSource = options.traversalSource || 'g';
128
129
  this._authenticator = options.authenticator;
130
+ this._enableUserAgentOnConnect = options.enableUserAgentOnConnect !== false;
129
131
 
130
132
  this._pingEnabled = this.options.pingEnabled === false ? false : true;
131
133
  this._pingIntervalDelay = this.options.pingInterval || pingIntervalDelay;
@@ -151,9 +153,16 @@ class Connection extends EventEmitter {
151
153
  }
152
154
 
153
155
  this.emit('log', 'ws open');
156
+ let headers = this.options.headers;
157
+ if (this._enableUserAgentOnConnect) {
158
+ if (!headers) {
159
+ headers = [];
160
+ }
161
+ headers[utils.getUserAgentHeader()] = utils.getUserAgent();
162
+ }
154
163
 
155
164
  this._ws = new WebSocket(this.url, {
156
- headers: this.options.headers,
165
+ headers: headers,
157
166
  ca: this.options.ca,
158
167
  cert: this.options.cert,
159
168
  pfx: this.options.pfx,
@@ -192,7 +201,8 @@ class Connection extends EventEmitter {
192
201
 
193
202
  /** @override */
194
203
  submit(processor, op, args, requestId) {
195
- const rid = requestId || utils.getUuid();
204
+ // TINKERPOP-2847: Use lower case to prevent string comparison issues.
205
+ const rid = (requestId || utils.getUuid()).toLowerCase();
196
206
  return this.open().then(
197
207
  () =>
198
208
  new Promise((resolve, reject) => {
@@ -220,7 +230,8 @@ class Connection extends EventEmitter {
220
230
 
221
231
  /** @override */
222
232
  stream(processor, op, args, requestId) {
223
- const rid = requestId || utils.getUuid();
233
+ // TINKERPOP-2847: Use lower case to prevent string comparison issues.
234
+ const rid = (requestId || utils.getUuid()).toLowerCase();
224
235
 
225
236
  const readableStream = new Stream.Readable({
226
237
  objectMode: true,
@@ -334,6 +345,8 @@ class Connection extends EventEmitter {
334
345
  return;
335
346
  }
336
347
 
348
+ // TINKERPOP-2847: Use lower case to prevent string comparison issues.
349
+ response.requestId = response.requestId.toLowerCase();
337
350
  const handler = this._responseHandlers[response.requestId];
338
351
 
339
352
  if (!handler) {
@@ -467,7 +480,7 @@ module.exports = Connection;
467
480
  <br class="clear">
468
481
 
469
482
  <footer>
470
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
483
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
471
484
  </footer>
472
485
 
473
486
  <script> prettyPrint(); </script>
@@ -76,6 +76,10 @@ class DriverRemoteConnection extends RemoteConnection {
76
76
  * @param {GraphSONWriter} [options.writer] The writer to use.
77
77
  * @param {Authenticator} [options.authenticator] The authentication handler to use.
78
78
  * @param {Object} [options.headers] An associative array containing the additional header key/values for the initial request.
79
+ * @param {Boolean} [options.enableUserAgentOnConnect] Determines if a user agent will be sent during connection handshake. Defaults to: true
80
+ * @param {Boolean} [options.pingEnabled] Setup ping interval. Defaults to: true.
81
+ * @param {Number} [options.pingInterval] Ping request interval in ms if ping enabled. Defaults to: 60000.
82
+ * @param {Number} [options.pongTimeout] Timeout of pong response in ms after sending a ping. Defaults to: 30000.
79
83
  * @constructor
80
84
  */
81
85
  constructor(url, options = {}) {
@@ -174,7 +178,7 @@ module.exports = DriverRemoteConnection;
174
178
  <br class="clear">
175
179
 
176
180
  <footer>
177
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
181
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
178
182
  </footer>
179
183
 
180
184
  <script> prettyPrint(); </script>
@@ -189,7 +189,7 @@ module.exports = { RemoteConnection, RemoteStrategy, RemoteTraversal };
189
189
  <br class="clear">
190
190
 
191
191
  <footer>
192
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
192
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
193
193
  </footer>
194
194
 
195
195
  <script> prettyPrint(); </script>
@@ -89,7 +89,7 @@ module.exports = ResponseError;
89
89
  <br class="clear">
90
90
 
91
91
  <footer>
92
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
92
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
93
93
  </footer>
94
94
 
95
95
  <script> prettyPrint(); </script>
@@ -134,7 +134,7 @@ module.exports = ResultSet;
134
134
  <br class="clear">
135
135
 
136
136
  <footer>
137
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
137
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
138
138
  </footer>
139
139
 
140
140
  <script> prettyPrint(); </script>
package/doc/global.html CHANGED
@@ -417,7 +417,7 @@ See org.apache.tinkerpop.gremlin.structure.io.binary.DataType Java class.
417
417
 
418
418
  <dt class="tag-source">Source:</dt>
419
419
  <dd class="tag-source"><ul class="dummy"><li>
420
- <a href="driver_client.js.html">driver/client.js</a>, <a href="driver_client.js.html#line75">line 75</a>
420
+ <a href="driver_client.js.html">driver/client.js</a>, <a href="driver_client.js.html#line80">line 80</a>
421
421
  </li></ul></dd>
422
422
 
423
423
 
@@ -453,7 +453,7 @@ See org.apache.tinkerpop.gremlin.structure.io.binary.DataType Java class.
453
453
  <br class="clear">
454
454
 
455
455
  <footer>
456
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
456
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
457
457
  </footer>
458
458
 
459
459
  <script> prettyPrint(); </script>
package/doc/index.html CHANGED
@@ -176,7 +176,7 @@ for early testing purposes only. These releases are not suitable for production.
176
176
  <br class="clear">
177
177
 
178
178
  <footer>
179
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
179
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
180
180
  </footer>
181
181
 
182
182
  <script> prettyPrint(); </script>
@@ -292,7 +292,7 @@
292
292
  <br class="clear">
293
293
 
294
294
  <footer>
295
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
295
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
296
296
  </footer>
297
297
 
298
298
  <script> prettyPrint(); </script>
@@ -119,7 +119,7 @@ module.exports = AnonymousTraversalSource;
119
119
  <br class="clear">
120
120
 
121
121
  <footer>
122
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
122
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
123
123
  </footer>
124
124
 
125
125
  <script> prettyPrint(); </script>
@@ -166,7 +166,7 @@ module.exports = Bytecode;
166
166
  <br class="clear">
167
167
 
168
168
  <footer>
169
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
169
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
170
170
  </footer>
171
171
 
172
172
  <script> prettyPrint(); </script>
@@ -1589,7 +1589,7 @@ module.exports = {
1589
1589
  <br class="clear">
1590
1590
 
1591
1591
  <footer>
1592
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
1592
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
1593
1593
  </footer>
1594
1594
 
1595
1595
  <script> prettyPrint(); </script>
@@ -134,7 +134,7 @@ module.exports = {
134
134
  <br class="clear">
135
135
 
136
136
  <footer>
137
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
137
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
138
138
  </footer>
139
139
 
140
140
  <script> prettyPrint(); </script>
@@ -163,7 +163,7 @@ module.exports = Translator;
163
163
  <br class="clear">
164
164
 
165
165
  <footer>
166
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
166
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
167
167
  </footer>
168
168
 
169
169
  <script> prettyPrint(); </script>
@@ -395,7 +395,7 @@ module.exports = {
395
395
  <br class="clear">
396
396
 
397
397
  <footer>
398
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Tue Jul 26 2022 16:12:54 GMT-0400 (Eastern Daylight Time)
398
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Thu Jan 26 2023 15:50:35 GMT-0800 (Pacific Standard Time)
399
399
  </footer>
400
400
 
401
401
  <script> prettyPrint(); </script>