Skip to content

Commit d6583ad

Browse files
committed
Updated to latest stateful plan schema. Fixed nvm resource global version formatting
1 parent 3ac2b20 commit d6583ad

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

package-lock.json

Lines changed: 15 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"ajv-formats": "^2.1.1",
2424
"semver": "^7.6.0",
2525
"codify-plugin-test": "0.0.5",
26-
"codify-plugin-lib": "1.0.73",
27-
"codify-schemas": "1.0.42",
26+
"codify-plugin-lib": "1.0.75",
27+
"codify-schemas": "1.0.44",
2828
"chalk": "^5.3.0",
2929
"debug": "^4.3.4"
3030
},

src/resources/node/nvm/global-parameter.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ export class NvmGlobalParameter extends StatefulParameter<NvmConfig, string>{
5252
const version = output.split('\n')
5353
.find((l) => l.includes('default'))
5454

55-
console.log(version);
56-
5755
return version
5856
?.trim()
5957
?.replace('default', '') // Remove word default
6058
?.replace(/\(.*\)/g, '') // Remove brackets and anything inside
61-
?.replaceAll(/\r*->v/g, '') ?? null; // Replace characters ->v and spaces
59+
?.replaceAll(/[ \->*]/g, '') ?? null; // Replace characters ->v and spaces
6260
}
6361
}

0 commit comments

Comments
 (0)