Comparing version 0.2.0-alpha.0 to 0.2.0-alpha.3
@@ -48,4 +48,8 @@ const { DatabaseMapper } = require('./DatabaseMapper') | ||
this.connecting = true | ||
trace(`Connecting to ${this.props.driver} database`) | ||
await this.connectDb() | ||
if (!this.connectPromise) { | ||
trace(`Connecting to ${this.constructor.name}`) | ||
this.connectPromise = this.connectDb() | ||
} | ||
await this.connectPromise | ||
this.connectPromise = null | ||
this.connected = true | ||
@@ -52,0 +56,0 @@ this.connecting = false |
{ | ||
"name": "djorm", | ||
"version": "0.2.0-alpha.0", | ||
"version": "0.2.0-alpha.3", | ||
"description": "Django like ORM framework", | ||
@@ -44,3 +44,3 @@ "author": "Pavel Žák <pavel@zak.global>", | ||
}, | ||
"gitHead": "6b3e128d9788969f227cc7df3363fa89671e9371" | ||
"gitHead": "f212327aa63796952f152da5bfc81a15b658837b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92165
3179
26