nexushub-commands 2.0.6 → 2.0.8

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.
@@ -65,7 +65,7 @@ class ParserSharedCommandsService {
65
65
  if (methodStartIndex !== -1) {
66
66
  for (let i = methodStartIndex + 1; i < lines.length; i++) {
67
67
  const line = lines[i];
68
- if (line.trim() === '}') {
68
+ if (line === '\t}') {
69
69
  methodEndIndex = i;
70
70
  break;
71
71
  }
@@ -209,4 +209,3 @@ class ParserSharedCommandsService {
209
209
  }
210
210
  }
211
211
  exports.ParserSharedCommandsService = ParserSharedCommandsService;
212
- fs.writeFileSync('test.ts', ParserSharedCommandsService.transformCommand(fs.readFileSync('../escort/src/commands/shared/models/PickActiveModels.srdcmd.ts', 'utf-8')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -71,7 +71,7 @@ export class ParserSharedCommandsService {
71
71
  if (methodStartIndex !== -1) {
72
72
  for (let i = methodStartIndex + 1; i < lines.length; i++) {
73
73
  const line = lines[i]
74
- if (line.trim() === '}') {
74
+ if (line === '\t}') {
75
75
  methodEndIndex = i
76
76
  break
77
77
  }
@@ -227,5 +227,3 @@ export class ParserSharedCommandsService {
227
227
  return results
228
228
  }
229
229
  }
230
-
231
- fs.writeFileSync('test.ts', ParserSharedCommandsService.transformCommand(fs.readFileSync('../escort/src/commands/shared/models/PickActiveModels.srdcmd.ts', 'utf-8')))