@mastra/mssql 0.0.0-main-test-05-11-2025-2-20251105233020 → 0.0.0-main-test-05-11-2025-2-20251106020936
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/CHANGELOG.md +3 -3
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +5 -5
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
|
-
|
|
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() === "") {
|