@mastra/mssql 0.0.0-main-test-05-11-2025-2-20251106011400 → 0.0.0-main-test-05-11-2025-2-20251106022801

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.
package/dist/index.js CHANGED
@@ -2937,7 +2937,10 @@ var MSSQLStore = class extends MastraStorage {
2937
2937
  isConnected = null;
2938
2938
  stores;
2939
2939
  constructor(config) {
2940
- super({ name: "MSSQLStore" });
2940
+ if (!config.id || typeof config.id !== "string" || config.id.trim() === "") {
2941
+ throw new Error("MSSQLStore: id must be provided and cannot be empty.");
2942
+ }
2943
+ super({ id: config.id, name: "MSSQLStore" });
2941
2944
  try {
2942
2945
  if ("connectionString" in config) {
2943
2946
  if (!config.connectionString || typeof config.connectionString !== "string" || config.connectionString.trim() === "") {