Comparing version 0.15.0 to 0.15.1
@@ -32,4 +32,10 @@ "use strict"; | ||
return ''; | ||
var importName = "Methods" + imports.length; | ||
imports.push("import { Methods as " + importName + " } from '" + file.replace(/'/g, "\\'") + "'"); | ||
var importName = ''; | ||
if (methodsInterface.some(function (_a) { | ||
var props = _a.props; | ||
return Object.keys(props).length; | ||
})) { | ||
importName = "Methods" + imports.length; | ||
imports.push("import { Methods as " + importName + " } from '" + file.replace(/'/g, "\\'") + "'"); | ||
} | ||
return createMethodsString_1.default(methodsInterface, indent, importName, newUrl, trailingSlash); | ||
@@ -36,0 +42,0 @@ }; |
{ | ||
"name": "aspida", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "TypeScript friendly HTTP client wrapper for the browser and node.js", | ||
@@ -5,0 +5,0 @@ "author": "m-mitsuhide <m.mitsuhide@amatelus.com>", |
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
65373
747