agency-lang 0.0.22 → 0.0.23

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.
@@ -48,7 +48,7 @@ export class AgencyGenerator extends BaseGenerator {
48
48
  processTypeAlias(node) {
49
49
  this.typeAliases[node.aliasName] = node.aliasedType;
50
50
  const aliasedTypeStr = this.aliasedTypeToString(node.aliasedType);
51
- return this.indentStr(`type ${node.aliasName} = ${aliasedTypeStr}\n`);
51
+ return this.indentStr(`type ${node.aliasName} = ${aliasedTypeStr}`);
52
52
  }
53
53
  processTypeHint(node) {
54
54
  this.typeHints[node.variableName] = node.variableType;
@@ -57,8 +57,8 @@ export class AgencyGenerator extends BaseGenerator {
57
57
  }
58
58
  // Assignment and literals
59
59
  processAssignment(node) {
60
- const varName = node.typeHint ?
61
- `${node.variableName}: ${variableTypeToString(node.typeHint, this.typeAliases)}`
60
+ const varName = node.typeHint
61
+ ? `${node.variableName}: ${variableTypeToString(node.typeHint, this.typeAliases)}`
62
62
  : node.variableName;
63
63
  if (node.value.type === "timeBlock") {
64
64
  const code = this.processTimeBlock(node.value);
@@ -332,7 +332,7 @@ export class AgencyGenerator extends BaseGenerator {
332
332
  }
333
333
  processAwaitStatement(node) {
334
334
  const code = this.processNode(node.expression);
335
- return this.indentStr(`await ${code.trim()}\n`);
335
+ return this.indentStr(`await ${code.trim()}`);
336
336
  }
337
337
  processNewLine(_node) {
338
338
  return "\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agency-lang",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "The Agency language",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -56,4 +56,4 @@
56
56
  "typescript": "^5.9.3",
57
57
  "vitest": "^4.0.16"
58
58
  }
59
- }
59
+ }