Comparing version 0.15.1 to 0.15.2
@@ -57,8 +57,9 @@ "use strict"; | ||
if (file.startsWith('_')) { | ||
var _a = __read(basename.split('@'), 2), valName = _a[0], _b = _a[1], valType = _b === void 0 ? 'number | string' : _b; | ||
var _a = __read(basename.split('@'), 2), valName_1 = _a[0], _b = _a[1], valType = _b === void 0 ? 'number | string' : _b; | ||
if (/^[A-Z]/.test(valType)) { | ||
valType = "ApiTypes." + valType; | ||
} | ||
valFn = "" + indent + valName.replace(/\./g, '_') + ": (val" + valCount + ": " + valType + ") => ({\n<% next %>\n" + indent + "})"; | ||
newUrl = url + "/${val" + valCount + "}" + valName.replace(/^[^.]+/, ''); | ||
var duplicatedNames = dirList.filter(function (d) { return d.startsWith(valName_1); }); | ||
valFn = "" + indent + valName_1.replace(/\./g, '_') + (duplicatedNames.length > 1 ? "_" + duplicatedNames.indexOf(file) : '') + ": (val" + valCount + ": " + valType + ") => ({\n<% next %>\n" + indent + "})"; | ||
newUrl = url + "/${val" + valCount + "}" + valName_1.replace(/^[^.]+/, ''); | ||
valCount += 1; | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "aspida", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"description": "TypeScript friendly HTTP client wrapper for the browser and node.js", | ||
@@ -5,0 +5,0 @@ "author": "m-mitsuhide <m.mitsuhide@amatelus.com>", |
@@ -193,3 +193,6 @@ | aspida | [aspida-mock] | [openapi2aspida] | [pathpida] | | ||
``` | ||
### Read more posts by DEV Community | ||
**[aspida - DEV Community](https://dev.to/t/aspida)** | ||
### Learn more about HTTP clients | ||
@@ -196,0 +199,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65865
748
375