Skip to content

Commit

Permalink
fix: Update strongbox API name
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jun 16, 2023
1 parent fcb8084 commit 8da1c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wda-mac.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ class WDAMacProcess {
// TODO: hovewer it should do the job as a temporary transition trick
// TODO: to switch from a hardcoded file path to the strongbox usage.
try {
boxItem = await box.createItemWithContents(RECENT_MODULE_VERSION_ITEM_NAME, '1.5.4');
boxItem = await box.createItemWithValue(RECENT_MODULE_VERSION_ITEM_NAME, '1.5.4');
} catch (e) {
log.warn(`The actual module version cannot be persisted: ${e.message}`);
return;
}
} else {
log.info('There is no need to perform the project cleanup. A fresh install has been detected');
try {
await box.createItemWithContents(RECENT_MODULE_VERSION_ITEM_NAME, packageInfo.version);
await box.createItemWithValue(RECENT_MODULE_VERSION_ITEM_NAME, packageInfo.version);
} catch (e) {
log.warn(`The actual module version cannot be persisted: ${e.message}`);
}
Expand Down

0 comments on commit 8da1c9f

Please sign in to comment.