@ragestudio/scylla-odm 0.22.2 → 0.22.3

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 (153) hide show
  1. package/batch/index.d.ts +3 -3
  2. package/batch/index.d.ts.map +1 -1
  3. package/client.d.ts +6 -5
  4. package/client.d.ts.map +1 -1
  5. package/client.js +7 -7
  6. package/client.js.map +1 -1
  7. package/cql_gen/create_table.d.ts +1 -1
  8. package/cql_gen/create_table.d.ts.map +1 -1
  9. package/document/index.d.ts +3 -3
  10. package/document/index.d.ts.map +1 -1
  11. package/driver/LICENSE.txt +177 -0
  12. package/driver/NOTICE.txt +67 -0
  13. package/driver/auth/index.d.ts +37 -0
  14. package/driver/auth/index.js +37 -0
  15. package/driver/auth/no-auth-provider.js +73 -0
  16. package/driver/auth/plain-text-auth-provider.js +81 -0
  17. package/driver/auth/provider.js +77 -0
  18. package/driver/client-options.js +442 -0
  19. package/driver/client.js +1267 -0
  20. package/driver/concurrent/index.d.ts +49 -0
  21. package/driver/concurrent/index.js +366 -0
  22. package/driver/connection.js +1034 -0
  23. package/driver/control-connection.js +1282 -0
  24. package/driver/encoder.js +2316 -0
  25. package/driver/errors.js +223 -0
  26. package/driver/execution-options.js +612 -0
  27. package/driver/execution-profile.js +274 -0
  28. package/driver/host-connection-pool.js +587 -0
  29. package/driver/host.js +699 -0
  30. package/driver/index.d.ts +387 -0
  31. package/driver/index.js +81 -0
  32. package/driver/mapping/cache.js +214 -0
  33. package/driver/mapping/doc-info-adapter.js +171 -0
  34. package/driver/mapping/index.d.ts +219 -0
  35. package/driver/mapping/index.js +57 -0
  36. package/driver/mapping/mapper.js +225 -0
  37. package/driver/mapping/mapping-handler.js +641 -0
  38. package/driver/mapping/model-batch-item.js +215 -0
  39. package/driver/mapping/model-batch-mapper.js +141 -0
  40. package/driver/mapping/model-mapper.js +315 -0
  41. package/driver/mapping/model-mapping-info.js +225 -0
  42. package/driver/mapping/object-selector.js +417 -0
  43. package/driver/mapping/q.js +156 -0
  44. package/driver/mapping/query-generator.js +556 -0
  45. package/driver/mapping/result-mapper.js +123 -0
  46. package/driver/mapping/result.js +139 -0
  47. package/driver/mapping/table-mappings.js +133 -0
  48. package/driver/mapping/tree.js +160 -0
  49. package/driver/metadata/aggregate.js +79 -0
  50. package/driver/metadata/client-state.js +119 -0
  51. package/driver/metadata/data-collection.js +182 -0
  52. package/driver/metadata/event-debouncer.js +174 -0
  53. package/driver/metadata/index.d.ts +276 -0
  54. package/driver/metadata/index.js +1156 -0
  55. package/driver/metadata/materialized-view.js +49 -0
  56. package/driver/metadata/schema-function.js +98 -0
  57. package/driver/metadata/schema-index.js +166 -0
  58. package/driver/metadata/schema-parser.js +1399 -0
  59. package/driver/metadata/table-metadata.js +77 -0
  60. package/driver/operation-state.js +206 -0
  61. package/driver/policies/address-resolution.js +145 -0
  62. package/driver/policies/index.d.ts +241 -0
  63. package/driver/policies/index.js +110 -0
  64. package/driver/policies/load-balancing.js +970 -0
  65. package/driver/policies/reconnection.js +166 -0
  66. package/driver/policies/retry.js +326 -0
  67. package/driver/policies/speculative-execution.js +150 -0
  68. package/driver/policies/timestamp-generation.js +176 -0
  69. package/driver/prepare-handler.js +347 -0
  70. package/driver/promise-utils.js +191 -0
  71. package/driver/readers.js +624 -0
  72. package/driver/request-execution.js +644 -0
  73. package/driver/request-handler.js +332 -0
  74. package/driver/requests.js +618 -0
  75. package/driver/stream-id-stack.js +209 -0
  76. package/driver/streams.js +745 -0
  77. package/driver/token.js +325 -0
  78. package/driver/tokenizer.js +631 -0
  79. package/driver/types/big-decimal.js +282 -0
  80. package/driver/types/duration.js +576 -0
  81. package/driver/types/index.d.ts +486 -0
  82. package/driver/types/index.js +733 -0
  83. package/driver/types/inet-address.js +262 -0
  84. package/driver/types/integer.js +818 -0
  85. package/driver/types/local-date.js +280 -0
  86. package/driver/types/local-time.js +299 -0
  87. package/driver/types/mutable-long.js +385 -0
  88. package/driver/types/protocol-version.js +391 -0
  89. package/driver/types/result-set.js +287 -0
  90. package/driver/types/result-stream.js +164 -0
  91. package/driver/types/row.js +85 -0
  92. package/driver/types/time-uuid.js +414 -0
  93. package/driver/types/tuple.js +103 -0
  94. package/driver/types/uuid.js +160 -0
  95. package/driver/types/vector.js +130 -0
  96. package/driver/types/version-number.js +153 -0
  97. package/driver/utils.js +1485 -0
  98. package/driver/writers.js +350 -0
  99. package/global.d.ts +1 -1
  100. package/global.d.ts.map +1 -1
  101. package/index.d.ts +6 -6
  102. package/index.d.ts.map +1 -1
  103. package/index.js +6 -6
  104. package/index.js.map +1 -1
  105. package/migrate/index.d.ts +1 -1
  106. package/migrate/index.d.ts.map +1 -1
  107. package/migrate/index.js +1 -1
  108. package/migrate/index.js.map +1 -1
  109. package/model/index.d.ts +6 -6
  110. package/model/index.d.ts.map +1 -1
  111. package/model/index.js +10 -10
  112. package/model/index.js.map +1 -1
  113. package/operations/countAll.d.ts +1 -1
  114. package/operations/countAll.d.ts.map +1 -1
  115. package/operations/delete.d.ts +3 -4
  116. package/operations/delete.d.ts.map +1 -1
  117. package/operations/delete.js +1 -1
  118. package/operations/delete.js.map +1 -1
  119. package/operations/find.d.ts +2 -2
  120. package/operations/find.d.ts.map +1 -1
  121. package/operations/find.js +1 -1
  122. package/operations/find.js.map +1 -1
  123. package/operations/findOne.d.ts +2 -2
  124. package/operations/findOne.d.ts.map +1 -1
  125. package/operations/findOne.js +1 -1
  126. package/operations/findOne.js.map +1 -1
  127. package/operations/insert.d.ts +3 -3
  128. package/operations/insert.d.ts.map +1 -1
  129. package/operations/insert.js +2 -2
  130. package/operations/insert.js.map +1 -1
  131. package/operations/sync.d.ts +1 -1
  132. package/operations/sync.d.ts.map +1 -1
  133. package/operations/sync.js +1 -1
  134. package/operations/sync.js.map +1 -1
  135. package/operations/tableExists.d.ts +1 -1
  136. package/operations/tableExists.d.ts.map +1 -1
  137. package/operations/update.d.ts +3 -3
  138. package/operations/update.d.ts.map +1 -1
  139. package/operations/update.js +2 -2
  140. package/operations/update.js.map +1 -1
  141. package/package.json +4 -12
  142. package/schema/index.d.ts +1 -1
  143. package/schema/index.d.ts.map +1 -1
  144. package/types.d.ts +4 -4
  145. package/types.d.ts.map +1 -1
  146. package/utils/queryParser.d.ts +1 -1
  147. package/utils/queryParser.d.ts.map +1 -1
  148. package/utils/queryParser.js +1 -1
  149. package/utils/queryParser.js.map +1 -1
  150. package/utils/typeChecker.d.ts +1 -1
  151. package/utils/typeChecker.d.ts.map +1 -1
  152. package/utils/typeChecker.js +1 -1
  153. package/utils/typeChecker.js.map +1 -1
package/batch/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type Client from "../client";
2
- import type { mapping } from "../driver/mapping";
3
- import type { types } from "../driver/types";
1
+ import type Client from "../client.js";
2
+ import type { mapping } from "../driver/mapping/index.js";
3
+ import type { types } from "../driver/types/index.js";
4
4
  type Long = types.Long;
5
5
  export type BatchExecutionOptions = {
6
6
  logged?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/batch/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAE5C,KAAK,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;AAEtB,MAAM,MAAM,qBAAqB,GAAG;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,qBAAa,KAAK;IACjB,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,OAAO,CAAS;IAExB,YAAY,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,OAAc,EAGjD;IAED,GAA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8 +1,9 @@
1
- import type { Client as T_CassandraClient, mapping as T_CassandraMapping } from "./driver";
2
- import type { ClientConfig } from "./types";
3
- import Model from "./model";
4
- import Logger from "./logger";
5
- import { Batch } from "./batch";
1
+ import type { Client as T_CassandraClient } from "./driver/index.js";
2
+ import type { mapping as T_CassandraMapping } from "./driver/mapping/index.js";
3
+ import type { ClientConfig } from "./types.js";
4
+ import Model from "./model/index.js";
5
+ import Logger from "./logger/index.js";
6
+ import { Batch } from "./batch/index.js";
6
7
  export declare class Client {
7
8
  constructor(config?: ClientConfig);
8
9
  config: ClientConfig;
package/client.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,IAAI,iBAAiB,EAE3B,OAAO,IAAI,kBAAkB,EAC7B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,MAAM,MAAM,UAAU,CAAA;AAK7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAc/B,qBAAa,MAAM;IAClB,YAAY,MAAM,GAAE,YAAiB,EAoCpC;IAED,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,iBAAiB,CAAA;IACzB,MAAM,EAAG,kBAAkB,CAAC,MAAM,CAAA;IAClC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAY;IAE3C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAE1C;IAED,MAAM,EAAE,MAAM,CAAe;IAEvB,UAAU,CAAC,OAAO,GAAE;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAO,iBA8BhD;IAED,KAAK,CAAC,MAAM,GAAE,OAAc,GAAG,KAAK,CAEnC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O,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwD/C;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAW9B;YAEa,gBAAgB;IA2BxB,gBAAgB,CAAC,CAAC,EACvB,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,aAAa,GAAE,MAAoB,GACjC,OAAO,CAAC,CAAC,CAAC,CAiCZ;IAED,OAAO,CAAC,gBAAgB;CAexB;eAEc,MAAM"}
package/client.js CHANGED
@@ -2,13 +2,13 @@
2
2
  import path from "node:path";
3
3
  //@ts-ignore
4
4
  import Cassandra from "./driver";
5
- import Model from "./model";
6
- import Logger from "./logger";
7
- import loadModels from "./utils/loadModels";
8
- import buildMapper from "./utils/buildMapper";
9
- import delay from "./utils/delay";
10
- import { Batch } from "./batch";
11
- import { migrateModel, promptMigration, executeMigration, promptResetMigration, executeResetMigration, } from "./migrate";
5
+ import Model from "./model/index.js";
6
+ import Logger from "./logger/index.js";
7
+ import loadModels from "./utils/loadModels.js";
8
+ import buildMapper from "./utils/buildMapper.js";
9
+ import delay from "./utils/delay.js";
10
+ import { Batch } from "./batch/index.js";
11
+ import { migrateModel, promptMigration, executeMigration, promptResetMigration, executeResetMigration, } from "./migrate/index.js";
12
12
  const DEFAULT_MAX_RETRIES = 3;
13
13
  const DEFAULT_RETRY_DELAY = 1000;
14
14
  const { SCYLLA_CONTACT_POINTS, SCYLLA_LOCAL_DATA_CENTER, SCYLLA_KEYSPACE } = process.env;
package/client.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAOA,YAAY;AACZ,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,YAAY;AACZ,OAAO,SAAS,MAAM,UAAU,CAAA;AAChC,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,OAAO,UAAU,M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,3 @@
1
- import type Model from "../model";
1
+ import type Model from "../model/index.js";
2
2
  export default function (model: Model): string;
3
3
  //# sourceMappingURL=create_table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create_table.d.ts","sourceRoot":"","sources":["../../src/cql_gen/create_table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAEjC,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CA+D7C"}
1
+ {"version":3,"file":"create_table.d.ts","sourceRoot":"","sources":["../../src/cql_gen/create_table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAE1C,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CA+D7C"}
@@ -1,9 +1,9 @@
1
- import type { Model } from "../model";
1
+ import type { Model } from "../model/index.js";
2
2
  export declare class Document<TDoc = any> {
3
3
  constructor(data: TDoc, model: Model<any, TDoc>);
4
4
  _model: Model<any, TDoc>;
5
- save(): Promise<import("../types").Doc<TDoc>[]>;
6
- delete(): Promise<import("../types").Doc<TDoc>[]>;
5
+ save(): Promise<import("../types.js").Doc<TDoc>[]>;
6
+ delete(): Promise<import("../types.js").Doc<TDoc>[]>;
7
7
  toRaw(): TDoc;
8
8
  isValid(): boolean;
9
9
  getChangedFields(original: Partial<TDoc>): (keyof TDoc)[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAGrC,qBAAa,QAAQ,CAAC,IAAI,GAAG,GAAG;IAC/B,YAAY,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,EAmB9C;IAED,MAAM,EAAG,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAEnB,IAAI,4CAUT;IAEK,MAAM,4CAMX;IAED,KAAK,IAAI,IAAI,CAmBZ;IAED,OAAO,IAAI,OAAO,CAOjB;IAED,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,CAWxD;CACD;eAEc,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAG9C,qBAAa,QAAQ,CAAC,IAAI,GAAG,GAAG;IAC/B,YAAY,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,EAmB9C;IAED,MAAM,EAAG,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAEnB,IAAI,+CAUT;IAEK,MAAM,+CAMX;IAED,KAAK,IAAI,IAAI,CAmBZ;IAED,OAAO,IAAI,OAAO,CAOjB;IAED,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,CAWxD;CACD;eAEc,QAAQ"}
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,67 @@
1
+ Apache Cassandra NodeJS Driver
2
+ Copyright 2013 The Apache Software Foundation
3
+
4
+ This product includes software developed at
5
+ The Apache Software Foundation (http://www.apache.org/).
6
+
7
+ Integer provided by The Closure Library from
8
+ https://github.com/google/closure-library/
9
+ under the Apache License 2.0.
10
+ Copyright (c) 2010 Google Inc.
11
+
12
+ This product originates, before git sha
13
+ acea0b9de8f3394b245261fe10693ff3c242958d, from software from DataStax and other
14
+ individual contributors. All work was previously copyrighted to DataStax.
15
+
16
+ Non-DataStax contributors are listed below. Those marked with asterisk have
17
+ explicitly consented to their contributions being donated to the ASF.
18
+
19
+ aaron-em Aaron Miller me@aaron-miller.me
20
+ adamfaulkner Adam Faulkner
21
+ adrianpike Adrian Pike adrian@adrianpike.com *
22
+ anoek Akita Noek akita@noek.net *
23
+ BenBrostoff Ben Brostoff
24
+ bitcloud Jan Schmidle jan@jschmidle.org *
25
+ BridgeAR Ruben Bridgewater ruben@bridgewater.de *
26
+ BryanDonovan Bryan Donovan *
27
+ brycebaril Bryce Baril bryce@ravenwall.com *
28
+ chmac Callum Macdonald *
29
+ connor4312 Connor Peet connor@peet.io
30
+ DanielSmedegaardBuus Daniel Smedegaard Buus danielbuus@gmail.com
31
+ dreaf
32
+ dsri
33
+ emeliawilkinson24 Emelia
34
+ emr Emre Akinci emre@emreakinci.com.tr *
35
+ Gaen Mikhail Gaenkov *
36
+ gd-rvemula Ravi Vemula
37
+ guyellis Guy Ellis wildfiction@gmail.com *
38
+ guzmo Andreas Törnström Andersson andreas.tornstrom.andersson@gmail.com *
39
+ gwicke Gabriel Wicke *
40
+ jbisso Jim Bisso *
41
+ jcrugzz Jarrett Cruger *
42
+ jkingsman Jack Kingsman *
43
+ jsdir jsdir
44
+ KishCom Andy Kish *
45
+ koriwi Kilian Gosewisch
46
+ leitethiagon Thiago Leite thiago.nunes.leite@avanade.com *
47
+ luccailliau Luc CAILLIAU
48
+ lukashavrlant Lukáš Havrlant lukas@havrlant.cz *
49
+ matchish Serhii Shliakhov husband.sergey@gmail.com *
50
+ MichaelErmer Michael Ermer
51
+ orourkedd Frankie O'Rourke
52
+ otopsy oToPSY
53
+ peterjroberts Peter Roberts *
54
+ ramikg Rami *
55
+ razvanz Razvan *
56
+ rsp Rafał Pocztarski
57
+ sbisbee Sam Bisbee sam@sbisbee.com
58
+ sfeinste Spruce Feinstein sprucefeinstein@gmail.com *
59
+ Shahor Alexandre Gaudencio *
60
+ shinyaohira Shinya Ohira shinya.ohira@gmail.com *
61
+ SoyYoRafa Rafael Fernández
62
+ stamhankar999 Sandeep Tamhankar *
63
+ suguru Suguru Namura
64
+ theRemix Jon Borgonia jon.borgonia@gmail.com *
65
+ thetsman Tatsiana Hetsman
66
+ tmitim Timothy Myung *
67
+ vineus Vincent de Lagabbe vineus@gmail.com *
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ export namespace auth {
20
+ interface Authenticator {
21
+ initialResponse(callback: Function): void
22
+
23
+ evaluateChallenge(challenge: Buffer, callback: Function): void
24
+
25
+ onAuthenticationSuccess(token?: Buffer): void
26
+ }
27
+
28
+ interface AuthProvider {
29
+ newAuthenticator(endpoint: string, name: string): Authenticator
30
+ }
31
+
32
+ class PlainTextAuthProvider implements AuthProvider {
33
+ constructor(username: string, password: string)
34
+
35
+ newAuthenticator(endpoint: string, name: string): Authenticator
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ /**
19
+ * DSE Authentication module.
20
+ * <p>
21
+ * Contains the classes used for connecting to a DSE cluster secured with DseAuthenticator.
22
+ * </p>
23
+ * @module auth
24
+ */
25
+
26
+ import { Authenticator, AuthProvider } from "./provider.js"
27
+ import { PlainTextAuthProvider } from "./plain-text-auth-provider.js"
28
+ import NoAuthProvider from "./no-auth-provider.js"
29
+
30
+ export { Authenticator, AuthProvider, NoAuthProvider, PlainTextAuthProvider }
31
+
32
+ export default {
33
+ Authenticator,
34
+ AuthProvider,
35
+ NoAuthProvider,
36
+ PlainTextAuthProvider,
37
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ import { AuthProvider, Authenticator } from "./provider.js"
20
+ import { PlainTextAuthenticator } from "./plain-text-auth-provider.js"
21
+ import errors from "../errors.js"
22
+
23
+ const dseAuthenticator = "com.datastax.bdp.cassandra.auth.DseAuthenticator"
24
+
25
+ /**
26
+ * Internal authentication provider that is used when no provider has been set by the user.
27
+ * @ignore
28
+ */
29
+ class NoAuthProvider extends AuthProvider {
30
+ newAuthenticator(endpoint, name) {
31
+ if (name === dseAuthenticator) {
32
+ // Try to use transitional mode
33
+ return new TransitionalModePlainTextAuthenticator()
34
+ }
35
+
36
+ // Use an authenticator that doesn't allow auth flow
37
+ return new NoAuthAuthenticator(endpoint)
38
+ }
39
+ }
40
+
41
+ /**
42
+ * An authenticator throws an error when authentication flow is started.
43
+ * @ignore
44
+ */
45
+ class NoAuthAuthenticator extends Authenticator {
46
+ constructor(endpoint) {
47
+ super()
48
+ this.endpoint = endpoint
49
+ }
50
+
51
+ initialResponse(callback) {
52
+ callback(
53
+ new errors.AuthenticationError(
54
+ `Host ${this.endpoint} requires authentication, but no authenticator found in the options`,
55
+ ),
56
+ )
57
+ }
58
+ }
59
+
60
+ /**
61
+ * Authenticator that accounts for DSE authentication configured with transitional mode: normal.
62
+ *
63
+ * In this situation, the client is allowed to connect without authentication, but DSE
64
+ * would still send an AUTHENTICATE response. This Authenticator handles this situation
65
+ * by sending back a dummy credential.
66
+ */
67
+ class TransitionalModePlainTextAuthenticator extends PlainTextAuthenticator {
68
+ constructor() {
69
+ super("", "")
70
+ }
71
+ }
72
+
73
+ export default NoAuthProvider
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ import util from "util"
19
+ import { AuthProvider, Authenticator } from "./provider.js"
20
+ import utils from "../utils.js"
21
+ /**
22
+ * Creates a new instance of the Authenticator provider
23
+ * @classdesc Provides plain text [Authenticator]{@link module:auth~Authenticator} instances to be used when
24
+ * connecting to a host.
25
+ * @extends module:auth~AuthProvider
26
+ * @example
27
+ * var authProvider = new cassandra.auth.PlainTextAuthProvider('my_user', 'p@ssword1!');
28
+ * //Set the auth provider in the clientOptions when creating the Client instance
29
+ * const client = new Client({ contactPoints: contactPoints, authProvider: authProvider });
30
+ * @param {String} username User name in plain text
31
+ * @param {String} password Password in plain text
32
+ * @alias module:auth~PlainTextAuthProvider
33
+ * @constructor
34
+ */
35
+ function PlainTextAuthProvider(username, password) {
36
+ this.username = username
37
+ this.password = password
38
+ }
39
+
40
+ util.inherits(PlainTextAuthProvider, AuthProvider)
41
+
42
+ /**
43
+ * Returns a new [Authenticator]{@link module:auth~Authenticator} instance to be used for plain text authentication.
44
+ * @override
45
+ * @returns {Authenticator}
46
+ */
47
+ PlainTextAuthProvider.prototype.newAuthenticator = function () {
48
+ return new PlainTextAuthenticator(this.username, this.password)
49
+ }
50
+
51
+ /**
52
+ * @ignore
53
+ */
54
+ function PlainTextAuthenticator(username, password) {
55
+ this.username = username
56
+ this.password = password
57
+ }
58
+
59
+ util.inherits(PlainTextAuthenticator, Authenticator)
60
+
61
+ PlainTextAuthenticator.prototype.initialResponse = function (callback) {
62
+ const initialToken = Buffer.concat([
63
+ utils.allocBufferFromArray([0]),
64
+ utils.allocBufferFromString(this.username, "utf8"),
65
+ utils.allocBufferFromArray([0]),
66
+ utils.allocBufferFromString(this.password, "utf8"),
67
+ ])
68
+ callback(null, initialToken)
69
+ }
70
+
71
+ PlainTextAuthenticator.prototype.evaluateChallenge = function (
72
+ challenge,
73
+ callback,
74
+ ) {
75
+ //noop
76
+ callback()
77
+ }
78
+
79
+ export { PlainTextAuthenticator, PlainTextAuthProvider }
80
+
81
+ export default { PlainTextAuthenticator, PlainTextAuthProvider }