Hi,
I really found this npm package useful. I feel it will be more helpful if we can access the previous version in a JSON object.
Current JSON : const build = {
version: "1.3.12",
timestamp: "Wed Feb 02 2022 13:16:10 GMT+0530 (India Standard Time)",
message: null,
git: {
user: "Ramaraju-Sanjeevi",
branch: "main",
hash: "*****",
fullHash: "ddcf03752285a8082e4d12f65c00"
}
};
Desired JSON: const build = {
version: "1.3.12",
timestamp: "Wed Feb 02 2022 13:16:10 GMT+0530 (India Standard Time)",
message: null,
previousVersion: 1.3.11
git: {
user: "Ramaraju-Sanjeevi",
branch: "main",
hash: "*****",
fullHash: "ddcf03752285a8082e4d12f65c00"
}
};