@anu8151/adonisjs-blueprint 0.4.8 → 0.4.9

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.
@@ -9,7 +9,8 @@ var EnumGenerator = class extends BaseGenerator {
9
9
  }));
10
10
  await this.generateStub("make/enum/main.stub", {
11
11
  entity,
12
- values
12
+ values,
13
+ valuesLines: values.map((v) => `${v.key} = '${v.value}'`).join(",\n ")
13
14
  });
14
15
  }
15
16
  };
@@ -4,7 +4,5 @@
4
4
  })
5
5
  }}}
6
6
  export enum {{ entity.className }} {
7
- @each(val in values)
8
- {{ val.key }} = '{{ val.value }}',
9
- @end
7
+ {{{ valuesLines }}}
10
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anu8151/adonisjs-blueprint",
3
3
  "description": "Blueprint for AdonisJS 7",
4
- "version": "0.4.8",
4
+ "version": "0.4.9",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -4,7 +4,5 @@
4
4
  })
5
5
  }}}
6
6
  export enum {{ entity.className }} {
7
- @each(val in values)
8
- {{ val.key }} = '{{ val.value }}',
9
- @end
7
+ {{{ valuesLines }}}
10
8
  }