Skip to content

Commit

Permalink
⬆️ (package.json): update package version to 4.28.1
Browse files Browse the repository at this point in the history
♻️ (liquibase.ts): refactor Liquibase class constructor to set default values for config properties if not provided
  • Loading branch information
jandroav committed Jun 20, 2024
1 parent fb7ab6c commit e28ee18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquibase",
"version": "4.28.0",
"version": "4.28.1",
"description": "Node.js wrapper for Liquibase",
"bin": {
"node-liquibase": "dist/cli.js"
Expand Down
8 changes: 8 additions & 0 deletions src/liquibase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ export class Liquibase {
* ```
*/
constructor(private config: LiquibaseConfig) {
const defaults: LiquibaseConfig = {
liquibase: FileHelper.bundledLiquibasePath,
changeLogFile: '',
url: '',
username: '',
password: ''
};
this.config = Object.assign({}, defaults, config);
this.commandHandler = new CommandHandler(this.config);
}

Expand Down

0 comments on commit e28ee18

Please sign in to comment.