@valkey/valkey-glide-darwin-x64 1.3.4 → 255.255.255

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 (45) hide show
  1. package/package.json +31 -95
  2. package/README.md +0 -106
  3. package/build-ts/index.d.ts +0 -14
  4. package/build-ts/index.js +0 -34
  5. package/build-ts/index.js.map +0 -1
  6. package/build-ts/src/BaseClient.d.ts +0 -5254
  7. package/build-ts/src/BaseClient.js +0 -6391
  8. package/build-ts/src/BaseClient.js.map +0 -1
  9. package/build-ts/src/Commands.d.ts +0 -1034
  10. package/build-ts/src/Commands.js +0 -2710
  11. package/build-ts/src/Commands.js.map +0 -1
  12. package/build-ts/src/Errors.d.ts +0 -21
  13. package/build-ts/src/Errors.js +0 -43
  14. package/build-ts/src/Errors.js.map +0 -1
  15. package/build-ts/src/GlideClient.d.ts +0 -832
  16. package/build-ts/src/GlideClient.js +0 -940
  17. package/build-ts/src/GlideClient.js.map +0 -1
  18. package/build-ts/src/GlideClusterClient.d.ts +0 -1323
  19. package/build-ts/src/GlideClusterClient.js +0 -1276
  20. package/build-ts/src/GlideClusterClient.js.map +0 -1
  21. package/build-ts/src/Logger.d.ts +0 -32
  22. package/build-ts/src/Logger.js +0 -68
  23. package/build-ts/src/Logger.js.map +0 -1
  24. package/build-ts/src/ProtobufMessage.d.ts +0 -2889
  25. package/build-ts/src/ProtobufMessage.js +0 -8785
  26. package/build-ts/src/ProtobufMessage.js.map +0 -1
  27. package/build-ts/src/Transaction.d.ts +0 -2963
  28. package/build-ts/src/Transaction.js +0 -3388
  29. package/build-ts/src/Transaction.js.map +0 -1
  30. package/build-ts/src/server-modules/GlideFt.d.ts +0 -412
  31. package/build-ts/src/server-modules/GlideFt.js +0 -664
  32. package/build-ts/src/server-modules/GlideFt.js.map +0 -1
  33. package/build-ts/src/server-modules/GlideFtOptions.d.ts +0 -244
  34. package/build-ts/src/server-modules/GlideFtOptions.js +0 -6
  35. package/build-ts/src/server-modules/GlideFtOptions.js.map +0 -1
  36. package/build-ts/src/server-modules/GlideJson.d.ts +0 -1335
  37. package/build-ts/src/server-modules/GlideJson.js +0 -1628
  38. package/build-ts/src/server-modules/GlideJson.js.map +0 -1
  39. package/index.ts +0 -15
  40. package/node_modules/glide-rs/glide-rs.darwin-x64.node +0 -0
  41. package/node_modules/glide-rs/index.d.ts +0 -71
  42. package/node_modules/glide-rs/index.js +0 -317
  43. package/node_modules/glide-rs/package.json +0 -65
  44. package/npm/glide/index.ts +0 -391
  45. package/npm/glide/package.json +0 -67
@@ -1,391 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
5
- */
6
-
7
- import { GLIBC, MUSL, familySync } from "detect-libc";
8
- import { arch, platform } from "process";
9
-
10
- let globalObject = global as unknown;
11
-
12
- /* eslint-disable @typescript-eslint/no-require-imports */
13
- function loadNativeBinding() {
14
- let nativeBinding = null;
15
-
16
- switch (platform) {
17
- case "linux":
18
- switch (arch) {
19
- case "x64":
20
- switch (familySync()) {
21
- case GLIBC:
22
- nativeBinding = require("@scope/valkey-glide-linux-x64");
23
- break;
24
- case MUSL:
25
- nativeBinding = require("@scope/valkey-glide-linux-musl-x64");
26
- break;
27
- default:
28
- nativeBinding = require("@scope/valkey-glide-linux-x64");
29
- break;
30
- }
31
-
32
- break;
33
- case "arm64":
34
- switch (familySync()) {
35
- case GLIBC:
36
- nativeBinding = require("@scope/valkey-glide-linux-arm64");
37
- break;
38
- case MUSL:
39
- nativeBinding = require("@scope/valkey-glide-linux-musl-arm64");
40
- break;
41
- default:
42
- nativeBinding = require("@scope/valkey-glide-linux-arm64");
43
- break;
44
- }
45
-
46
- break;
47
- default:
48
- throw new Error(
49
- `Unsupported OS: ${platform}, architecture: ${arch}`,
50
- );
51
- }
52
-
53
- break;
54
- case "darwin":
55
- switch (arch) {
56
- case "arm64":
57
- nativeBinding = require("@scope/valkey-glide-darwin-arm64");
58
- break;
59
- case "x64":
60
- nativeBinding = require("@scope/valkey-glide-darwin-x64");
61
- break;
62
- default:
63
- throw new Error(
64
- `Unsupported OS: ${platform}, architecture: ${arch}`,
65
- );
66
- }
67
-
68
- break;
69
- default:
70
- throw new Error(
71
- `Unsupported OS: ${platform}, architecture: ${arch}`,
72
- );
73
- }
74
-
75
- if (!nativeBinding) {
76
- throw new Error(`Failed to load native binding`);
77
- }
78
-
79
- return nativeBinding;
80
- }
81
-
82
- function initialize() {
83
- const nativeBinding = loadNativeBinding();
84
- const {
85
- AggregationType,
86
- BaseScanOptions,
87
- ScanOptions,
88
- ZScanOptions,
89
- HScanOptions,
90
- BitEncoding,
91
- BitFieldGet,
92
- BitFieldIncrBy,
93
- BitFieldOffset,
94
- BitFieldOverflow,
95
- BitFieldSet,
96
- BitFieldSubCommands,
97
- BitOffset,
98
- BitOffsetMultiplier,
99
- BitOffsetOptions,
100
- BitOverflowControl,
101
- BitmapIndexType,
102
- BitwiseOperation,
103
- ConditionalChange,
104
- Decoder,
105
- DecoderOption,
106
- GeoAddOptions,
107
- CoordOrigin,
108
- MemberOrigin,
109
- SearchOrigin,
110
- GeoBoxShape,
111
- GeoCircleShape,
112
- GeoSearchShape,
113
- GeoSearchResultOptions,
114
- GeoSearchStoreResultOptions,
115
- SortOrder,
116
- GeoUnit,
117
- GeospatialData,
118
- GlideClient,
119
- GlideClusterClient,
120
- GlideClientConfiguration,
121
- GlideJson,
122
- JsonBatch,
123
- GlideFt,
124
- Field,
125
- TextField,
126
- TagField,
127
- NumericField,
128
- VectorField,
129
- VectorFieldAttributesFlat,
130
- VectorFieldAttributesHnsw,
131
- FtCreateOptions,
132
- FtSearchOptions,
133
- FtInfoReturnType,
134
- FtAggregateOptions,
135
- FtAggregateLimit,
136
- FtAggregateFilter,
137
- FtAggregateGroupBy,
138
- FtAggregateReducer,
139
- FtAggregateSortBy,
140
- FtAggregateSortProperty,
141
- FtAggregateApply,
142
- FtAggregateReturnType,
143
- FtSearchReturnType,
144
- GlideRecord,
145
- GlideString,
146
- JsonGetOptions,
147
- JsonArrPopOptions,
148
- SortedSetDataType,
149
- StreamEntryDataType,
150
- HashDataType,
151
- FunctionListOptions,
152
- FunctionListResponse,
153
- FunctionStatsSingleResponse,
154
- FunctionStatsFullResponse,
155
- FunctionRestorePolicy,
156
- SlotIdTypes,
157
- SlotKeyTypes,
158
- TimeUnit,
159
- RouteByAddress,
160
- RouteOption,
161
- Routes,
162
- RestoreOptions,
163
- SingleNodeRoute,
164
- PeriodicChecksManualInterval,
165
- PeriodicChecks,
166
- Logger,
167
- Limit,
168
- LolwutOptions,
169
- LPosOptions,
170
- ListDirection,
171
- ExpireOptions,
172
- FlushMode,
173
- InfoOptions,
174
- InsertPosition,
175
- SetOptions,
176
- ZAddOptions,
177
- InfBoundary,
178
- KeyWeight,
179
- Boundary,
180
- ProtocolVersion,
181
- RangeByIndex,
182
- RangeByScore,
183
- RangeByLex,
184
- ReadFrom,
185
- ServerCredentials,
186
- SortOptions,
187
- StreamGroupOptions,
188
- StreamTrimOptions,
189
- StreamAddOptions,
190
- StreamReadGroupOptions,
191
- StreamReadOptions,
192
- StreamClaimOptions,
193
- StreamPendingOptions,
194
- ClosingError,
195
- ConfigurationError,
196
- ExecAbortError,
197
- ValkeyError,
198
- GlideReturnType,
199
- StreamEntries,
200
- ReturnTypeXinfoStream,
201
- RequestError,
202
- TimeoutError,
203
- ConnectionError,
204
- ClusterTransaction,
205
- Transaction,
206
- PubSubMsg,
207
- ScoreFilter,
208
- SignedEncoding,
209
- UnsignedEncoding,
210
- UpdateByScore,
211
- createLeakedArray,
212
- createLeakedAttribute,
213
- createLeakedBigint,
214
- createLeakedDouble,
215
- createLeakedMap,
216
- createLeakedString,
217
- Script,
218
- ObjectType,
219
- ClusterScanCursor,
220
- AdvancedGlideClientConfiguration,
221
- AdvancedGlideClusterClientConfiguration,
222
- BaseClientConfiguration,
223
- GlideClusterClientConfiguration,
224
- LevelOptions,
225
- ReturnTypeRecord,
226
- ReturnTypeMap,
227
- ClusterResponse,
228
- ReturnTypeAttribute,
229
- ReturnTypeJson,
230
- UniversalReturnTypeJson,
231
- Score,
232
- ElementAndScore,
233
- } = nativeBinding;
234
-
235
- module.exports = {
236
- AggregationType,
237
- BaseScanOptions,
238
- ScanOptions,
239
- HScanOptions,
240
- ZScanOptions,
241
- BitEncoding,
242
- BitFieldGet,
243
- BitFieldIncrBy,
244
- BitFieldOffset,
245
- BitFieldOverflow,
246
- BitFieldSet,
247
- BitFieldSubCommands,
248
- BitOffset,
249
- BitOffsetMultiplier,
250
- BitOffsetOptions,
251
- BitOverflowControl,
252
- BitmapIndexType,
253
- BitwiseOperation,
254
- ConditionalChange,
255
- Decoder,
256
- DecoderOption,
257
- GeoAddOptions,
258
- GlideFt,
259
- Field,
260
- TextField,
261
- TagField,
262
- NumericField,
263
- VectorField,
264
- VectorFieldAttributesFlat,
265
- VectorFieldAttributesHnsw,
266
- FtCreateOptions,
267
- FtSearchOptions,
268
- FtInfoReturnType,
269
- FtAggregateOptions,
270
- FtAggregateLimit,
271
- FtAggregateFilter,
272
- FtAggregateGroupBy,
273
- FtAggregateReducer,
274
- FtAggregateSortBy,
275
- FtAggregateSortProperty,
276
- FtAggregateApply,
277
- FtAggregateReturnType,
278
- FtSearchReturnType,
279
- GlideRecord,
280
- GlideJson,
281
- JsonBatch,
282
- GlideString,
283
- JsonGetOptions,
284
- JsonArrPopOptions,
285
- SortedSetDataType,
286
- StreamEntryDataType,
287
- HashDataType,
288
- CoordOrigin,
289
- MemberOrigin,
290
- SearchOrigin,
291
- GeoBoxShape,
292
- GeoCircleShape,
293
- GeoSearchShape,
294
- GeoSearchResultOptions,
295
- GeoSearchStoreResultOptions,
296
- SortOrder,
297
- GeoUnit,
298
- GeospatialData,
299
- GlideClient,
300
- GlideClusterClient,
301
- GlideClientConfiguration,
302
- AdvancedGlideClientConfiguration,
303
- AdvancedGlideClusterClientConfiguration,
304
- FunctionListOptions,
305
- FunctionListResponse,
306
- FunctionStatsSingleResponse,
307
- FunctionStatsFullResponse,
308
- FunctionRestorePolicy,
309
- SlotIdTypes,
310
- SlotKeyTypes,
311
- StreamEntries,
312
- TimeUnit,
313
- ReturnTypeXinfoStream,
314
- RouteByAddress,
315
- RouteOption,
316
- Routes,
317
- RestoreOptions,
318
- SingleNodeRoute,
319
- PeriodicChecksManualInterval,
320
- PeriodicChecks,
321
- Logger,
322
- LolwutOptions,
323
- Limit,
324
- LPosOptions,
325
- ListDirection,
326
- ExpireOptions,
327
- FlushMode,
328
- InfoOptions,
329
- InsertPosition,
330
- SetOptions,
331
- ZAddOptions,
332
- InfBoundary,
333
- KeyWeight,
334
- Boundary,
335
- ProtocolVersion,
336
- RangeByIndex,
337
- RangeByScore,
338
- RangeByLex,
339
- ReadFrom,
340
- ServerCredentials,
341
- SortOptions,
342
- StreamGroupOptions,
343
- StreamTrimOptions,
344
- StreamAddOptions,
345
- StreamClaimOptions,
346
- StreamReadGroupOptions,
347
- StreamReadOptions,
348
- StreamPendingOptions,
349
- ClosingError,
350
- ConfigurationError,
351
- ExecAbortError,
352
- ValkeyError,
353
- GlideReturnType,
354
- RequestError,
355
- TimeoutError,
356
- ConnectionError,
357
- ClusterTransaction,
358
- Transaction,
359
- PubSubMsg,
360
- ScoreFilter,
361
- SignedEncoding,
362
- UnsignedEncoding,
363
- UpdateByScore,
364
- createLeakedArray,
365
- createLeakedAttribute,
366
- createLeakedBigint,
367
- createLeakedDouble,
368
- createLeakedMap,
369
- createLeakedString,
370
- Script,
371
- ObjectType,
372
- ClusterScanCursor,
373
- BaseClientConfiguration,
374
- GlideClusterClientConfiguration,
375
- LevelOptions,
376
- ReturnTypeRecord,
377
- ReturnTypeMap,
378
- ClusterResponse,
379
- ReturnTypeAttribute,
380
- ReturnTypeJson,
381
- UniversalReturnTypeJson,
382
- Score,
383
- ElementAndScore,
384
- };
385
-
386
- globalObject = Object.assign(global, nativeBinding);
387
- }
388
-
389
- initialize();
390
-
391
- export default globalObject;
@@ -1,67 +0,0 @@
1
- {
2
- "name": "${scope}${pkg_name}",
3
- "types": "build-ts/index.d.ts",
4
- "version": "${package_version}",
5
- "description": "General Language Independent Driver for the Enterprise (GLIDE) for Valkey",
6
- "main": "build-ts/index.js",
7
- "module": "build-ts/index.js",
8
- "type": "commonjs",
9
- "scripts": {
10
- "lint": "eslint .",
11
- "lint:fix": "eslint . --fix",
12
- "clean": "rm -rf build-ts/",
13
- "copy-declaration-files": "cp ../../build-ts/*.d.ts build-ts/ && cp ../../build-ts/src/*.d.ts build-ts/src/ && cp ../../build-ts/src/server-modules/*.d.ts build-ts/src/server-modules/",
14
- "build": "tsc && mkdir -p build-ts/src && mkdir -p build-ts/src/server-modules && npm run copy-declaration-files"
15
- },
16
- "files": [
17
- "/build-ts"
18
- ],
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/valkey-io/valkey-glide.git"
22
- },
23
- "keywords": [
24
- "valkey",
25
- "valkeyClient",
26
- "client",
27
- "valkey-glide"
28
- ],
29
- "author": "Valkey GLIDE Maintainers",
30
- "license": "Apache-2.0",
31
- "bugs": {
32
- "url": "https://github.com/valkey-io/valkey-glide/issues"
33
- },
34
- "homepage": "https://github.com/valkey-io/valkey-glide#readme",
35
- "devDependencies": {
36
- "@types/node": "^18.11.18",
37
- "@typescript-eslint/eslint-plugin": "^5.48.0",
38
- "@typescript-eslint/parser": "^5.48.0",
39
- "eslint": "^8.31.0",
40
- "typescript": "^4.9.4"
41
- },
42
- "optionalDependencies": {
43
- "${scope}valkey-glide-darwin-arm64": "${package_version}",
44
- "${scope}valkey-glide-darwin-x64": "${package_version}",
45
- "${scope}valkey-glide-linux-arm64": "${package_version}",
46
- "${scope}valkey-glide-linux-x64": "${package_version}",
47
- "${scope}valkey-glide-linux-musl-arm64": "${package_version}",
48
- "${scope}valkey-glide-linux-musl-x64": "${package_version}"
49
- },
50
- "eslintConfig": {
51
- "extends": [
52
- "eslint:recommended",
53
- "plugin:@typescript-eslint/recommended"
54
- ],
55
- "parser": "@typescript-eslint/parser",
56
- "plugins": [
57
- "@typescript-eslint"
58
- ],
59
- "ignorePatterns": [
60
- "build-ts/*"
61
- ],
62
- "root": true
63
- },
64
- "dependencies": {
65
- "detect-libc": "^2.0.3"
66
- }
67
- }