breeze-entity-generator
Advanced tools
Comparing version 1.4.0 to 1.4.1
{{#enumTypes}}export enum {{shortName}} { | ||
{{#each values}} {{this}} = {{lookup ../ordinals @index}}, | ||
{{#each values}} {{this}} = {{#with (lookup ../ordinals @index)}}{{#if length}}"{{this}}"{{else}}{{this}}{{/if}}{{/with}}, | ||
{{/each}} | ||
@@ -4,0 +4,0 @@ } |
{ | ||
"name": "breeze-entity-generator", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Generate TypeScript modules for entities from Breeze metadata", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -129,2 +129,3 @@ # Breeze Entity Generator | ||
1.3.4 - Fix class name of RegistrationHelper; Fix include path to base complex type | ||
1.4.0 - Add property comments indicating type, maxlength, key, and fk | ||
1.4.0 - Add property comments indicating type, maxlength, key, and fk | ||
1.4.1 - Add handling for string or number enums, based on how they are defined in metadata.enumTypes |
@@ -158,3 +158,3 @@ var fs = require('fs'); | ||
if (config.useEnumTypes) { | ||
if (config.useEnumTypes && metadataStore.enumTypes) { | ||
metadataStore.enumModules = metadataStore.enumTypes.map(function (enumType) { | ||
@@ -161,0 +161,0 @@ return { entityType: enumType, path: enumType.shortName, moduleName: fileNameCase("Enums", config) }; |
41608
131