@dbos-inc/create 3.4.21-preview.g025d3f7c69 → 3.5.5-preview

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/create",
3
- "version": "3.4.21-preview.g025d3f7c69",
3
+ "version": "3.5.5-preview",
4
4
  "description": "Tool for performing project initialization from template",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,7 +15,7 @@ const config = {
15
15
  `postgresql://${process.env.PGUSER || 'postgres'}:${process.env.PGPASSWORD || 'dbos'}@${process.env.PGHOST || 'localhost'}:${process.env.PGPORT || '5432'}/${process.env.PGDATABASE || 'dbos_typeorm'}`,
16
16
  };
17
17
 
18
- const dataSource = new TypeOrmDataSource('app-db', config, [DBOSHello]);
18
+ const dataSource = TypeOrmDataSource.createFromConfig('app-db', config, [DBOSHello]);
19
19
 
20
20
  export class Hello {
21
21
  // This transaction uses DBOS and TypeORM to perform database operations.