@mastra/elasticsearch 1.4.4 → 1.4.5

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.
@@ -3,7 +3,7 @@ name: mastra-elasticsearch
3
3
  description: Documentation for @mastra/elasticsearch. Use when working with @mastra/elasticsearch APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/elasticsearch"
6
- version: "1.4.4"
6
+ version: "1.4.5"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.4",
2
+ "version": "1.4.5",
3
3
  "package": "@mastra/elasticsearch",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ let _mastra_core_vector_filter = require("@mastra/core/vector/filter");
7
7
  let _mastra_core_agent = require("@mastra/core/agent");
8
8
  let _mastra_core_evals = require("@mastra/core/evals");
9
9
  //#region package.json
10
- var version = "1.4.4";
10
+ var version = "1.4.5";
11
11
  //#endregion
12
12
  //#region src/vector/filter.ts
13
13
  /**
@@ -2023,12 +2023,13 @@ var ScoresElasticSearch = class extends _mastra_core_storage.ScoresStorage {
2023
2023
  }
2024
2024
  const now = /* @__PURE__ */ new Date();
2025
2025
  const id = crypto.randomUUID();
2026
- const { key, processedRecord } = processRecord(_mastra_core_storage.TABLE_SCORERS, {
2026
+ const scoreWithId = {
2027
2027
  ...validatedScore,
2028
2028
  id,
2029
2029
  createdAt: now,
2030
2030
  updatedAt: now
2031
- });
2031
+ };
2032
+ const { key, processedRecord } = processRecord(_mastra_core_storage.TABLE_SCORERS, scoreWithId);
2032
2033
  try {
2033
2034
  await this.db.set({
2034
2035
  tableName: _mastra_core_storage.TABLE_SCORERS,