rap-import-utils
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -215,2 +215,6 @@ "use strict"; | ||
} | ||
// when type is array and not define items type, the type value is ['array', 'null'] | ||
if (Array.isArray(type)) { | ||
return 'Array'; | ||
} | ||
return type === 'integer' ? 'Number' : type.substring(0, 1).toUpperCase() + type.substring(1); | ||
@@ -217,0 +221,0 @@ } |
@@ -207,2 +207,6 @@ import { parse } from 'protobufjs'; | ||
} | ||
// when type is array and not define items type, the type value is ['array', 'null'] | ||
if (Array.isArray(type)) { | ||
return 'Array'; | ||
} | ||
return type === 'integer' ? 'Number' : type.substring(0, 1).toUpperCase() + type.substring(1); | ||
@@ -209,0 +213,0 @@ } |
{ | ||
"name": "rap-import-utils", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "utils for rap import", | ||
@@ -12,3 +12,7 @@ "main": "dist/cjs/index.js", | ||
}, | ||
"keywords": ["rap", "YAPI", "protobuf"], | ||
"keywords": [ | ||
"rap", | ||
"YAPI", | ||
"protobuf" | ||
], | ||
"authors": [], | ||
@@ -15,0 +19,0 @@ "license": "MIT", |
29918
745