vstack-typescript-generator
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -6,2 +6,3 @@ 'use strict'; | ||
var pluralize = require('pluralize'); | ||
var camelcase = require('camelcase'); | ||
var primaryFilterRegex = /^(?:IPrimaryFilter)<Dmn.([\w]+)/; | ||
@@ -39,3 +40,2 @@ var primaryDtoFilterRegex = /^(?:IPrimaryRestFilter|BasePrimaryUndeletedFilter|BasePrimaryFilter|IPrimaryDtoFilter)<Dmn.([\w]+)/; | ||
exports.default = tsGenerator; | ||
; | ||
function generateEnum(cSharpEnum, options) { | ||
@@ -63,3 +63,3 @@ 'use strict'; | ||
var property = _a[_i]; | ||
var tsPropertyName = options && options.propertyNameResolver ? options.propertyNameResolver(property.name) : property.name; | ||
var tsPropertyName = camelcase(property.name); | ||
if (property.type.isNullable) { | ||
@@ -66,0 +66,0 @@ tsPropertyName += '?'; |
{ | ||
"name": "vstack-typescript-generator", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "", | ||
@@ -8,2 +8,3 @@ "main": "dist/src/index.js", | ||
"patch-release": "npm version patch && npm publish && git push --follow-tags", | ||
"minor-release": "npm version minor && npm publish && git push --follow-tags", | ||
"clean": "rimraf dist & rimraf bundles", | ||
@@ -22,15 +23,13 @@ "lint": "tslint \"src/**/*.ts\"", | ||
}, | ||
"author": "Vintage Software", | ||
"license": "MIT", | ||
"collaborators": [ | ||
{ | ||
"name": "Kevin Phelps", | ||
"email": "kphelps@vintagesoftware.com" | ||
} | ||
], | ||
"bugs": { | ||
"url": "https://github.com/vintage-software/vstack-typescript-generator/issues" | ||
}, | ||
"author": "Vintage Software", | ||
"contributors": [ | ||
"Kevin Phelps <kphelps@vintagesoftware.com> (https://kevinphelps.me/)" | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/vintage-software/vstack-typescript-generator#readme", | ||
"dependencies": { | ||
"camelcase": "^3.0.0", | ||
"pluralize": "1.2.1" | ||
@@ -37,0 +36,0 @@ }, |
Sorry, the diff of this file is not supported yet
35072
2
+ Addedcamelcase@^3.0.0
+ Addedcamelcase@3.0.0(transitive)