gremlin 3.8.0 → 3.8.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 (85) hide show
  1. package/.prettierrc.js +1 -1
  2. package/NOTICE +1 -1
  3. package/doc/AnonymousTraversalSource.html +69 -69
  4. package/doc/Authenticator.html +2 -2
  5. package/doc/Bytecode.html +87 -87
  6. package/doc/CardinalityValue.html +2 -2
  7. package/doc/Client.html +2 -2
  8. package/doc/Connection.html +2 -2
  9. package/doc/DriverRemoteConnection.html +2 -2
  10. package/doc/EdgeLabelVerificationStrategy.html +3 -3
  11. package/doc/Graph.html +2 -2
  12. package/doc/GraphSON2Reader.html +2 -2
  13. package/doc/GraphSON2Writer.html +2 -2
  14. package/doc/GraphSON3Reader.html +2 -2
  15. package/doc/GraphSON3Writer.html +2 -2
  16. package/doc/GraphTraversal.html +337 -337
  17. package/doc/GraphTraversalSource.html +278 -278
  18. package/doc/HaltedTraverserStrategy.html +2 -2
  19. package/doc/MatchAlgorithmStrategy.html +2 -2
  20. package/doc/P.html +110 -110
  21. package/doc/PartitionStrategy.html +2 -2
  22. package/doc/Path.html +3 -3
  23. package/doc/PlainTextSaslAuthenticator.html +2 -2
  24. package/doc/ProductiveByStrategy.html +6 -3
  25. package/doc/RemoteConnection.html +2 -2
  26. package/doc/RemoteStrategy.html +2 -2
  27. package/doc/RemoteTraversal.html +2 -2
  28. package/doc/ReservedKeysVerificationStrategy.html +3 -3
  29. package/doc/ResponseError.html +2 -2
  30. package/doc/ResultSet.html +2 -2
  31. package/doc/SaslAuthenticator.html +2 -2
  32. package/doc/SaslMechanismBase.html +2 -2
  33. package/doc/SaslMechanismPlain.html +2 -2
  34. package/doc/SeedStrategy.html +2 -2
  35. package/doc/SubgraphStrategy.html +2 -2
  36. package/doc/TextP.html +101 -101
  37. package/doc/Transaction.html +2 -2
  38. package/doc/Translator.html +2 -2
  39. package/doc/TraversalStrategies.html +2 -2
  40. package/doc/TraversalStrategy.html +2 -2
  41. package/doc/TypeSerializer.html +2 -2
  42. package/doc/driver_auth_authenticator.js.html +2 -2
  43. package/doc/driver_auth_mechanisms_sasl-mechanism-base.js.html +2 -2
  44. package/doc/driver_auth_mechanisms_sasl-mechanism-plain.js.html +2 -2
  45. package/doc/driver_auth_plain-text-sasl-authenticator.js.html +2 -2
  46. package/doc/driver_auth_sasl-authenticator.js.html +2 -2
  47. package/doc/driver_client.js.html +2 -2
  48. package/doc/driver_connection.js.html +2 -2
  49. package/doc/driver_driver-remote-connection.js.html +2 -2
  50. package/doc/driver_remote-connection.js.html +2 -2
  51. package/doc/driver_response-error.js.html +2 -2
  52. package/doc/driver_result-set.js.html +2 -2
  53. package/doc/global.html +3 -3
  54. package/doc/index.html +2 -2
  55. package/doc/module.exports.html +2 -2
  56. package/doc/process_anonymous-traversal.js.html +2 -2
  57. package/doc/process_bytecode.js.html +2 -2
  58. package/doc/process_graph-traversal.js.html +2 -2
  59. package/doc/process_transaction.js.html +2 -2
  60. package/doc/process_translator.js.html +2 -2
  61. package/doc/process_traversal-strategy.js.html +6 -2
  62. package/doc/process_traversal.js.html +30 -7
  63. package/doc/structure_graph.js.html +15 -2
  64. package/doc/structure_io_binary_internals_DataType.js.html +2 -2
  65. package/doc/structure_io_binary_internals_GraphBinaryReader.js.html +2 -2
  66. package/doc/structure_io_binary_internals_GraphBinaryWriter.js.html +2 -2
  67. package/doc/structure_io_graph-serializer.js.html +2 -2
  68. package/doc/structure_io_type-serializers.js.html +11 -3
  69. package/doc/utils.js.html +3 -3
  70. package/docker-compose.yml +13 -3
  71. package/eslint.config.mjs +143 -0
  72. package/index.js +1 -1
  73. package/lib/process/traversal-strategy.js +4 -0
  74. package/lib/process/traversal.js +28 -5
  75. package/lib/structure/graph.js +13 -0
  76. package/lib/structure/io/binary/internals/OffsetDateTimeSerializer.js +9 -0
  77. package/lib/structure/io/type-serializers.js +9 -1
  78. package/lib/utils.js +1 -1
  79. package/package.json +19 -17
  80. package/.eslintrc.js +0 -154
  81. package/Gruntfile.js +0 -35
  82. package/doc/DataType.js.html +0 -150
  83. package/doc/GraphBinaryReader.js.html +0 -132
  84. package/doc/GraphBinaryWriter.js.html +0 -135
  85. package/licenses/chai +0 -21
@@ -1,132 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Source: GraphBinaryReader.js</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Source: GraphBinaryReader.js</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
- <section>
28
- <article>
29
- <pre class="prettyprint source linenums"><code>/*
30
- * Licensed to the Apache Software Foundation (ASF) under one
31
- * or more contributor license agreements. See the NOTICE file
32
- * distributed with this work for additional information
33
- * regarding copyright ownership. The ASF licenses this file
34
- * to you under the Apache License, Version 2.0 (the
35
- * "License"); you may not use this file except in compliance
36
- * with the License. You may obtain a copy of the License at
37
- *
38
- * http://www.apache.org/licenses/LICENSE-2.0
39
- *
40
- * Unless required by applicable law or agreed to in writing,
41
- * software distributed under the License is distributed on an
42
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
43
- * KIND, either express or implied. See the License for the
44
- * specific language governing permissions and limitations
45
- * under the License.
46
- */
47
-
48
- /**
49
- * @author Igor Ostapenko
50
- */
51
-
52
- import { Buffer } from 'buffer';
53
-
54
- /**
55
- * GraphBinary reader.
56
- */
57
- export default class GraphBinaryReader {
58
- constructor(ioc) {
59
- this.ioc = ioc;
60
- }
61
-
62
- readResponse(buffer) {
63
- if (buffer === undefined || buffer === null) {
64
- throw new Error('Buffer is missing.');
65
- }
66
- if (!(buffer instanceof Buffer)) {
67
- throw new Error('Not an instance of Buffer.');
68
- }
69
- if (buffer.length &lt; 1) {
70
- throw new Error('Buffer is empty.');
71
- }
72
-
73
- const response = { status: {}, result: {} };
74
- let cursor = buffer;
75
- let len;
76
-
77
- // {version} is a Byte representing the protocol version
78
- const version = cursor[0];
79
- if (version !== 0x81) {
80
- throw new Error(`Unsupported version '${version}'.`);
81
- }
82
- cursor = cursor.slice(1); // skip version
83
-
84
- // {request_id} is a nullable UUID
85
- ({ v: response.requestId, len } = this.ioc.uuidSerializer.deserialize(cursor, false, true));
86
- cursor = cursor.slice(len);
87
-
88
- // {status_code} is an Int
89
- ({ v: response.status.code, len } = this.ioc.intSerializer.deserialize(cursor, false));
90
- cursor = cursor.slice(len);
91
-
92
- // {status_message} is a nullable String
93
- ({ v: response.status.message, len } = this.ioc.stringSerializer.deserialize(cursor, false, true));
94
- cursor = cursor.slice(len);
95
-
96
- // {status_attributes} is a Map
97
- ({ v: response.status.attributes, len } = this.ioc.mapSerializer.deserialize(cursor, false));
98
- cursor = cursor.slice(len);
99
-
100
- // {result_meta} is a Map
101
- ({ v: response.result.meta, len } = this.ioc.mapSerializer.deserialize(cursor, false));
102
- cursor = cursor.slice(len);
103
-
104
- // {result_data} is a fully qualified typed value composed of {type_code}{type_info}{value_flag}{value}
105
- ({ v: response.result.data } = this.ioc.anySerializer.deserialize(cursor));
106
-
107
- return response;
108
- }
109
- }
110
- </code></pre>
111
- </article>
112
- </section>
113
-
114
-
115
-
116
-
117
- </div>
118
-
119
- <nav>
120
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module.exports.html">exports</a></li></ul><h3>Global</h3><ul><li><a href="global.html#DataType">DataType</a></li></ul>
121
- </nav>
122
-
123
- <br class="clear">
124
-
125
- <footer>
126
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Nov 10 2025 14:42:27 GMT-0800 (Pacific Standard Time)
127
- </footer>
128
-
129
- <script> prettyPrint(); </script>
130
- <script src="scripts/linenumber.js"> </script>
131
- </body>
132
- </html>
@@ -1,135 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Source: GraphBinaryWriter.js</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Source: GraphBinaryWriter.js</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
- <section>
28
- <article>
29
- <pre class="prettyprint source linenums"><code>/*
30
- * Licensed to the Apache Software Foundation (ASF) under one
31
- * or more contributor license agreements. See the NOTICE file
32
- * distributed with this work for additional information
33
- * regarding copyright ownership. The ASF licenses this file
34
- * to you under the Apache License, Version 2.0 (the
35
- * "License"); you may not use this file except in compliance
36
- * with the License. You may obtain a copy of the License at
37
- *
38
- * http://www.apache.org/licenses/LICENSE-2.0
39
- *
40
- * Unless required by applicable law or agreed to in writing,
41
- * software distributed under the License is distributed on an
42
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
43
- * KIND, either express or implied. See the License for the
44
- * specific language governing permissions and limitations
45
- * under the License.
46
- */
47
-
48
- /**
49
- * @author Igor Ostapenko
50
- */
51
-
52
- import { Buffer } from 'buffer';
53
-
54
- /**
55
- * GraphBinary writer.
56
- */
57
- export default class GraphBinaryWriter {
58
- constructor(ioc) {
59
- this.ioc = ioc;
60
- }
61
-
62
- writeRequest({ requestId, op, processor, args }) {
63
- const bufs = [
64
- // {version} 1 byte
65
- Buffer.from([0x81]),
66
- // {request_id} UUID
67
- this.ioc.uuidSerializer.serialize(requestId, false),
68
- // {op} String
69
- this.ioc.stringSerializer.serialize(op, false),
70
- // {processor} String
71
- this.ioc.stringSerializer.serialize(processor, false),
72
- // {args} Map
73
- this.ioc.mapSerializer.serialize(args, false),
74
- ];
75
- return Buffer.concat(bufs);
76
-
77
- /*// Detailed example for a quick reference:
78
- // {version}
79
- 0x81,
80
- // {request_id} UUID
81
- 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
82
- // {op} String
83
- 0x00,0x00,0x00,0x08, ...Buffer.from('bytecode'),
84
- // {processor} String
85
- 0x00,0x00,0x00,0x09, ...Buffer.from('traversal'),
86
- // {args} Map
87
- 0x00,0x00,0x00,0x02,
88
- // 1.
89
- // args.aliases key String
90
- 0x03,0x00, 0x00,0x00,0x00,0x07, ...Buffer.from('aliases'),
91
- // args.aliases value Map
92
- 0x0A,0x00, 0x00,0x00,0x00,0x01,
93
- // aliases.g key String
94
- 0x03,0x00, 0x00,0x00,0x00,0x01, ...Buffer.from('g'),
95
- // aliases.g value String
96
- 0x03,0x00, 0x00,0x00,0x00,0x01, ...Buffer.from('g'),
97
- // 2.
98
- // args.gremlin key String
99
- 0x03,0x00, 0x00,0x00,0x00,0x07, ...Buffer.from('gremlin'),
100
- // args.gremlin value Bytecode
101
- 0x15,0x00,
102
- // {steps_length}
103
- 0x00,0x00,0x00,0x01,
104
- // step 1 - {name} String
105
- 0x00,0x00,0x00,0x01, ...Buffer.from('V'),
106
- // step 1 - {values_length} Int
107
- 0x00,0x00,0x00,0x00,
108
- // {sources_length}
109
- 0x00,0x00,0x00,0x00,
110
- */
111
- }
112
- }
113
- </code></pre>
114
- </article>
115
- </section>
116
-
117
-
118
-
119
-
120
- </div>
121
-
122
- <nav>
123
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module.exports.html">exports</a></li></ul><h3>Global</h3><ul><li><a href="global.html#DataType">DataType</a></li></ul>
124
- </nav>
125
-
126
- <br class="clear">
127
-
128
- <footer>
129
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Nov 10 2025 14:42:27 GMT-0800 (Pacific Standard Time)
130
- </footer>
131
-
132
- <script> prettyPrint(); </script>
133
- <script src="scripts/linenumber.js"> </script>
134
- </body>
135
- </html>
package/licenses/chai DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Chai.js Assertion Library
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.