masterrecord 0.3.44 → 0.3.45
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/context.js +4 -0
- package/package.json +1 -1
package/context.js
CHANGED
|
@@ -721,6 +721,8 @@ class context {
|
|
|
721
721
|
// Note: engine is already set in __mysqlInit
|
|
722
722
|
return this;
|
|
723
723
|
})();
|
|
724
|
+
// Prevent unhandled rejection crash — _ensureReady() will handle errors
|
|
725
|
+
this._initPromise.catch(() => {});
|
|
724
726
|
return this._initPromise;
|
|
725
727
|
}
|
|
726
728
|
|
|
@@ -740,6 +742,8 @@ class context {
|
|
|
740
742
|
// Note: engine is already set in __postgresInit
|
|
741
743
|
return this;
|
|
742
744
|
})();
|
|
745
|
+
// Prevent unhandled rejection crash — _ensureReady() will handle errors
|
|
746
|
+
this._initPromise.catch(() => {});
|
|
743
747
|
return this._initPromise;
|
|
744
748
|
}
|
|
745
749
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "masterrecord",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.45",
|
|
4
4
|
"description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
|
|
5
5
|
"main": "MasterRecord.js",
|
|
6
6
|
"bin": {
|