@embracesql/express
Advanced tools
Comparing version 0.0.4 to 0.0.6
{ | ||
"name": "@embracesql/express", | ||
"version": "0.0.4", | ||
"version": "0.0.6", | ||
"description": "Serves EmbraceSQL via a reusable express application.", | ||
@@ -13,7 +13,7 @@ "type": "module", | ||
"dependencies": { | ||
"@embracesql/postgres": "^0.0.4", | ||
"@embracesql/shared": "^0.0.4", | ||
"@embracesql/postgres": "^0.0.6", | ||
"@embracesql/shared": "^0.0.6", | ||
"express": "^4.0.0" | ||
}, | ||
"gitHead": "343e5761ee3ff99619a2ba34c18139d0ef6240ad" | ||
"gitHead": "924be0edd5fb5b1941d1c9160198ddfda5b93b47" | ||
} |
@@ -11,5 +11,5 @@ /** | ||
generationBuffer.push(` | ||
export const EmbraceSQLExpressApp = async (postgresUrl: string) => { | ||
const database = await Database.connect(postgresUrl); | ||
const dispatcher = new OperationDispatcher(database); | ||
export const EmbraceSQLExpressApp = async (postgresUrl: string, database?: Database) => { | ||
const dispatchToDatabase = database ?? await Database.connect(postgresUrl); | ||
const dispatcher = new OperationDispatcher(dispatchToDatabase); | ||
return EmbraceSQLExpress(dispatcher); | ||
@@ -16,0 +16,0 @@ } |
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
3132
+ Added@embracesql/postgres@0.0.6(transitive)
+ Added@embracesql/shared@0.0.6(transitive)
- Removed@embracesql/postgres@0.0.4(transitive)
- Removed@embracesql/shared@0.0.4(transitive)
- Removedprettier@3.1.1(transitive)
Updated@embracesql/postgres@^0.0.6
Updated@embracesql/shared@^0.0.6