Comparing version 0.4.0 to 0.5.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [0.5.0](https://github.com/aspidajs/aspida/compare/v0.4.0...v0.5.0) (2019-10-19) | ||
### Features | ||
* **methods:** determine question flag of config ([8ba6336](https://github.com/aspidajs/aspida/commit/8ba6336)) | ||
### Refactors | ||
* template builder ([fcc20ee](https://github.com/aspidajs/aspida/commit/fcc20ee)) | ||
## [0.4.0](https://github.com/aspidajs/aspida/compare/v0.3.1...v0.4.0) (2019-10-13) | ||
@@ -7,0 +19,0 @@ |
@@ -10,3 +10,3 @@ "use strict"; | ||
var getInputs_1 = __importDefault(require("./getInputs")); | ||
var buildRouteFile_1 = __importDefault(require("./buildRouteFile")); | ||
var buildTemplate_1 = __importDefault(require("./buildTemplate")); | ||
var writeRouteFile_1 = __importDefault(require("./writeRouteFile")); | ||
@@ -26,7 +26,7 @@ var watchInputDir_1 = __importDefault(require("./watchInputDir")); | ||
getInputs_1.default(config.input).forEach(function (input) { | ||
var prevResult = buildRouteFile_1.default(input, argv.baseurl); | ||
var prevResult = buildTemplate_1.default(input, argv.baseurl); | ||
writeRouteFile_1.default(prevResult); | ||
if (argv.watch !== undefined) { | ||
watchInputDir_1.default(input, function () { | ||
var result = buildRouteFile_1.default(input, argv.baseurl); | ||
var result = buildTemplate_1.default(input, argv.baseurl); | ||
if (prevResult.text !== result.text || prevResult.filePath !== result.filePath) { | ||
@@ -33,0 +33,0 @@ fs_1.default.unlink(prevResult.filePath, function () { return writeRouteFile_1.default(result); }); |
@@ -6,7 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var buildRouteFile_1 = __importDefault(require("./buildRouteFile")); | ||
var buildTemplate_1 = __importDefault(require("./buildTemplate")); | ||
var writeRouteFile_1 = __importDefault(require("./writeRouteFile")); | ||
var input = './__tests__/apis'; | ||
var baseurl = 'https://example.com'; | ||
writeRouteFile_1.default(buildRouteFile_1.default(input, baseurl)); | ||
writeRouteFile_1.default(buildTemplate_1.default(input, baseurl)); | ||
//# sourceMappingURL=dev.js.map |
export declare type Config = { | ||
input?: string | string[]; | ||
target?: 'es6' | 'cjs'; | ||
outputExt?: 'js' | 'ts'; | ||
}; | ||
@@ -6,0 +4,0 @@ export declare const apiFileRegExp: RegExp; |
{ | ||
"name": "aspida", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Type safe HTTP client 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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
35161
45
312
1