Skip to content

Commit

Permalink
fix(java): 🐛 fixed api credential interpolation issue (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
WasiqB authored Feb 16, 2025
1 parent 122f046 commit 38dfdf6
Show file tree
Hide file tree
Showing 3 changed files with 484 additions and 430 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package io.github.boykaframework.builders;

import static io.github.boykaframework.utils.StringUtils.interpolate;

import java.util.Map;

import io.github.boykaframework.enums.ContentType;
Expand Down Expand Up @@ -50,4 +52,22 @@ public class ApiRequest {
@Singular
private Map<String, String> queryParams;
private String userName;

/**
* Gets the password after interpolation.
*
* @return API Password
*/
public String getPassword () {
return interpolate (this.password);
}

/**
* Gets the username after interpolation.
*
* @return API Username
*/
public String getUserName () {
return interpolate (this.userName);
}
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,33 @@
"@release-it-plugins/lerna-changelog": "^7.0.0",
"@stylistic/eslint-plugin-js": "^3.1.0",
"@stylistic/eslint-plugin-ts": "^3.1.0",
"@types/node": "^22.13.1",
"@typescript-eslint/eslint-plugin": "^8.23.0",
"@typescript-eslint/parser": "^8.23.0",
"@types/node": "^22.13.4",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"commitlint": "^19.7.1",
"eslint": "^9.20.0",
"eslint": "^9.20.1",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^10.0.1",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-import-resolver-typescript": "^3.8.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-react": "^7.37.4",
"globals": "^15.14.0",
"globals": "^15.15.0",
"husky": "^9.1.7",
"js-yaml": "^4.1.0",
"lerna": "8.1.9",
"lerna-changelog": "^2.2.0",
"lerna-version": "^6.6.2",
"lint-staged": "^15.4.3",
"lodash": "^4.17.21",
"nx": "^20.4.2",
"prettier": "^3.5.0",
"nx": "^20.4.4",
"prettier": "^3.5.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"release-it": "^17.11.0",
"ts-node": "^10.9.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.23.0"
"typescript-eslint": "^8.24.0"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down Expand Up @@ -99,5 +99,5 @@
"pnpm format"
]
},
"packageManager": "pnpm@9.15.4"
"packageManager": "pnpm@10.4.0"
}
Loading

0 comments on commit 38dfdf6

Please sign in to comment.