querysub 0.296.0 → 0.297.0

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": "querysub",
3
- "version": "0.296.0",
3
+ "version": "0.297.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -101,7 +101,7 @@ export function doRegisterNodeForMachineCleanup() {
101
101
  async function registerNodeForMachineCleanup(nodeId: string) {
102
102
  let currentPath = path.resolve(".").replaceAll("\\", "/");
103
103
  let array = currentPath.split("/");
104
- if (array.at(-1) === "git" && array.at(-2) === SERVICE_FOLDER_NAME) {
104
+ if (array.at(-1) === "git" && array.at(-3) === SERVICE_FOLDER_NAME) {
105
105
  let nodeIdPath = array.slice(0, -1).join("/") + "/" + SERVICE_NODE_FILE_NAME;
106
106
  console.log(green(`Registering node for machine cleanup at ${nodeIdPath}`));
107
107
  await fs.promises.writeFile(nodeIdPath, nodeId);