@valkey/valkey-glide 1.3.5-rc11 → 1.3.5-rc13

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.
@@ -4,8 +4,7 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.GlideFt = void 0;
7
- const BaseClient_1 = require("../BaseClient");
8
- const GlideClient_1 = require("../GlideClient");
7
+ const __1 = require("..");
9
8
  /** Module for Vector Search commands. */
10
9
  class GlideFt {
11
10
  /**
@@ -105,7 +104,7 @@ class GlideFt {
105
104
  }
106
105
  });
107
106
  return _handleCustomCommand(client, args, {
108
- decoder: BaseClient_1.Decoder.String,
107
+ decoder: __1.Decoder.String,
109
108
  });
110
109
  }
111
110
  /**
@@ -124,7 +123,7 @@ class GlideFt {
124
123
  static async dropindex(client, indexName) {
125
124
  const args = ["FT.DROPINDEX", indexName];
126
125
  return _handleCustomCommand(client, args, {
127
- decoder: BaseClient_1.Decoder.String,
126
+ decoder: __1.Decoder.String,
128
127
  });
129
128
  }
130
129
  /**
@@ -267,7 +266,7 @@ class GlideFt {
267
266
  */
268
267
  static async info(client, indexName, options) {
269
268
  const args = ["FT.INFO", indexName];
270
- return _handleCustomCommand(client, args, options).then(BaseClient_1.convertGlideRecordToRecord);
269
+ return _handleCustomCommand(client, args, options).then(__1.convertGlideRecordToRecord);
271
270
  }
272
271
  /**
273
272
  * Parse a query and return information about how that query was parsed.
@@ -405,7 +404,7 @@ class GlideFt {
405
404
  if (options) {
406
405
  args.push(..._addFtSearchOptions(options));
407
406
  }
408
- return _handleCustomCommand(client, args, options).then((v) => [v[0], (0, BaseClient_1.convertGlideRecordToRecord)(v[1])]);
407
+ return _handleCustomCommand(client, args, options).then((v) => [v[0], (0, __1.convertGlideRecordToRecord)(v[1])]);
409
408
  }
410
409
  /**
411
410
  * Runs an aggregate query and collects performance profiling information.
@@ -453,7 +452,7 @@ class GlideFt {
453
452
  if (options) {
454
453
  args.push(..._addFtAggregateOptions(options));
455
454
  }
456
- return _handleCustomCommand(client, args, options).then((v) => [v[0], (0, BaseClient_1.convertGlideRecordToRecord)(v[1])]);
455
+ return _handleCustomCommand(client, args, options).then((v) => [v[0], (0, __1.convertGlideRecordToRecord)(v[1])]);
457
456
  }
458
457
  /**
459
458
  * Adds an alias for an index. The new alias name can be used anywhere that an index name is required.
@@ -472,7 +471,7 @@ class GlideFt {
472
471
  static async aliasadd(client, indexName, alias) {
473
472
  const args = ["FT.ALIASADD", alias, indexName];
474
473
  return _handleCustomCommand(client, args, {
475
- decoder: BaseClient_1.Decoder.String,
474
+ decoder: __1.Decoder.String,
476
475
  });
477
476
  }
478
477
  /**
@@ -491,7 +490,7 @@ class GlideFt {
491
490
  static async aliasdel(client, alias) {
492
491
  const args = ["FT.ALIASDEL", alias];
493
492
  return _handleCustomCommand(client, args, {
494
- decoder: BaseClient_1.Decoder.String,
493
+ decoder: __1.Decoder.String,
495
494
  });
496
495
  }
497
496
  /**
@@ -511,7 +510,7 @@ class GlideFt {
511
510
  static async aliasupdate(client, alias, indexName) {
512
511
  const args = ["FT.ALIASUPDATE", alias, indexName];
513
512
  return _handleCustomCommand(client, args, {
514
- decoder: BaseClient_1.Decoder.String,
513
+ decoder: __1.Decoder.String,
515
514
  });
516
515
  }
517
516
  /**
@@ -622,7 +621,7 @@ function _addFtSearchOptions(options) {
622
621
  * @internal
623
622
  */
624
623
  async function _handleCustomCommand(client, args, decoderOption = {}) {
625
- return client instanceof GlideClient_1.GlideClient
624
+ return client instanceof __1.GlideClient
626
625
  ? client.customCommand(args, decoderOption)
627
626
  : client.customCommand(args, decoderOption);
628
627
  }
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
3
3
  */
4
- import { GlideRecord, GlideString } from "../BaseClient";
5
- import { SortOrder } from "../Commands";
4
+ import { GlideRecord, GlideString, SortOrder } from "..";
6
5
  interface BaseField {
7
6
  /** The name of the field. */
8
7
  name: GlideString;
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
3
3
  */
4
- import { BaseClient, DecoderOption, GlideString } from "../BaseClient";
5
- import { Batch, ClusterBatch } from "../Batch";
6
- import { ConditionalChange } from "../Commands";
4
+ import { BaseClient, Batch, ClusterBatch, ConditionalChange, DecoderOption, GlideString } from "..";
7
5
  export type ReturnTypeJson<T> = T | (T | null)[];
8
6
  export type UniversalReturnTypeJson<T> = T | T[];
9
7
  /**
@@ -4,7 +4,7 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.JsonBatch = exports.GlideJson = void 0;
7
- const GlideClient_1 = require("../GlideClient");
7
+ const __1 = require("..");
8
8
  /**
9
9
  * @internal
10
10
  */
@@ -36,7 +36,7 @@ function _jsonGetOptionsToArgs(options) {
36
36
  * @internal
37
37
  */
38
38
  function _executeCommand(client, args, options) {
39
- if (client instanceof GlideClient_1.GlideClient) {
39
+ if (client instanceof __1.GlideClient) {
40
40
  return client.customCommand(args, options);
41
41
  }
42
42
  else {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "build-ts/index.js",
5
5
  "module": "build-ts/index.js",
6
6
  "types": "build-ts/index.d.ts",
7
- "version": "1.3.5-rc11",
7
+ "version": "1.3.5-rc13",
8
8
  "exports": {
9
9
  ".": {
10
10
  "import": {
@@ -133,11 +133,11 @@
133
133
  }
134
134
  },
135
135
  "optionalDependencies": {
136
- "@valkey/valkey-glide-darwin-x64": "1.3.5-rc11",
137
- "@valkey/valkey-glide-darwin-arm64": "1.3.5-rc11",
138
- "@valkey/valkey-glide-linux-x64-gnu": "1.3.5-rc11",
139
- "@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-rc11",
140
- "@valkey/valkey-glide-linux-x64-musl": "1.3.5-rc11",
141
- "@valkey/valkey-glide-linux-arm64-musl": "1.3.5-rc11"
136
+ "@valkey/valkey-glide-darwin-x64": "1.3.5-rc13",
137
+ "@valkey/valkey-glide-darwin-arm64": "1.3.5-rc13",
138
+ "@valkey/valkey-glide-linux-x64-gnu": "1.3.5-rc13",
139
+ "@valkey/valkey-glide-linux-arm64-gnu": "1.3.5-rc13",
140
+ "@valkey/valkey-glide-linux-x64-musl": "1.3.5-rc13",
141
+ "@valkey/valkey-glide-linux-arm64-musl": "1.3.5-rc13"
142
142
  }
143
143
  }