Comparing version 0.14.5 to 0.14.6
@@ -0,0 +0,0 @@ import { BaseConfig } from './getConfig'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -19,3 +19,2 @@ import { BaseConfig } from '../getConfig'; | ||
write(template: Template): void; | ||
remove(filePath: string, callback: () => void): void; | ||
watch(input: string, callback: () => void): void; | ||
@@ -22,0 +21,0 @@ } |
@@ -34,4 +34,3 @@ "use strict"; | ||
Build.prototype.run = function (config, io) { | ||
var template = buildTemplate_1.default(config); | ||
io.remove(template.filePath, function () { return io.write(template); }); | ||
io.write(buildTemplate_1.default(config)); | ||
}; | ||
@@ -38,0 +37,0 @@ return Build; |
@@ -0,0 +0,0 @@ export interface Command { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import minimist from 'minimist'; |
@@ -6,3 +6,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fs_1 = __importDefault(require("fs")); | ||
var minimist_1 = __importDefault(require("minimist")); | ||
@@ -20,7 +19,3 @@ var getConfig_1 = __importDefault(require("../getConfig")); | ||
var getBuildCommandFactory = function (config) { | ||
return build_1.CommandToBuild.getFactory(config, { | ||
write: writeRouteFile_1.default, | ||
watch: watchInputDir_1.default, | ||
remove: function (filePath, callback) { return fs_1.default.unlink(filePath, callback); } | ||
}); | ||
return build_1.CommandToBuild.getFactory(config, { write: writeRouteFile_1.default, watch: watchInputDir_1.default }); | ||
}; | ||
@@ -27,0 +22,0 @@ exports.run = function (args) { |
import { Command } from './command'; | ||
export declare const version: Command; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
declare const _default: (input: string, callback: (...args: any) => void) => void; | ||
export default _default; | ||
//# sourceMappingURL=watchInputDir.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Method } from './parseInterface'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ declare const _default: (input: string, trailingSlash: boolean) => { |
@@ -55,4 +55,4 @@ "use strict"; | ||
} | ||
valFn = "" + indent + valName + ": (val" + valCount + ": " + valType + ") => ({\n<% next %>\n" + indent + "})"; | ||
newUrl = url + "/${val" + valCount + "}"; | ||
valFn = "" + indent + valName.replace(/\./g, '_') + ": (val" + valCount + ": " + valType + ") => ({\n<% next %>\n" + indent + "})"; | ||
newUrl = url + "/${val" + valCount + "}" + valName.replace(/^[^.]+/, ''); | ||
valCount += 1; | ||
@@ -59,0 +59,0 @@ } |
@@ -0,0 +0,0 @@ export interface BaseConfig { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'PATCH' | 'OPTIONS'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { LowerHttpMethod, AspidaMethodParams } from './'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Template } from './buildTemplate'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "aspida", | ||
"version": "0.14.5", | ||
"version": "0.14.6", | ||
"description": "TypeScript friendly HTTP client wrapper for the browser and node.js", | ||
@@ -28,4 +28,4 @@ "author": "m-mitsuhide <m.mitsuhide@amatelus.com>", | ||
"chokidar": "^3.3.1", | ||
"minimist": "^1.2.4" | ||
"minimist": "^1.2.5" | ||
} | ||
} |
@@ -1,5 +0,9 @@ | ||
| aspida | [aspida-mock] | [openapi2aspida] | [pathpida] | [@aspida/axios] | [@aspida/ky] | [@aspida/fetch] | | ||
| ------ | ------------- | ---------------- | ---------- | --------------- | ------------ | --------------- | | ||
| aspida | [aspida-mock] | [openapi2aspida] | [pathpida] | | ||
| ------ | ------------- | ---------------- | ---------- | | ||
| [@aspida/axios] | [@aspida/ky] | [@aspida/fetch] | [@aspida/node-fetch] | | ||
| --------------- | ------------ | --------------- | -------------------- | | ||
<br /> | ||
@@ -49,3 +53,3 @@ <br /> | ||
- FormData / URLSearchParams content can also specify the type | ||
- HTTP client supports axios / ky / ky-universal / fetch | ||
- HTTP client supports axios / ky / ky-universal / fetch / node-fetch | ||
- Path definition is the same naming convention as Nuxt.js pages | ||
@@ -196,2 +200,3 @@ | ||
- **[aspida-fetch](https://github.com/aspidajs/aspida/tree/develop/packages/aspida-fetch#readme)** | ||
- **[aspida-node-fetch](https://github.com/aspidajs/aspida/tree/develop/packages/aspida-node-fetch#readme)** | ||
@@ -224,3 +229,3 @@ ## Tips | ||
aspida leaves GET parameter serialization to standard HTTP client behavior | ||
aspida leaves GET parameter serialization to standard HTTP client behavior | ||
If you want to serialize manually, you can use config object of HTTP client | ||
@@ -231,8 +236,10 @@ | ||
```typescript | ||
import axios from 'axios' | ||
import qs from 'qs' | ||
import axios from "axios" | ||
import qs from "qs" | ||
import aspida from "@aspida/axios" | ||
import api from "../apis/$api" | ||
;(async () => { | ||
const client = api(aspida(axios, { paramsSerializer: (params) => qs.stringify(params, { indices: false }) })) | ||
const client = api( | ||
aspida(axios, { paramsSerializer: params => qs.stringify(params, { indices: false }) }) | ||
) | ||
@@ -368,1 +375,2 @@ const users = await client.v1.users.$get({ | ||
[@aspida/fetch]: https://github.com/aspidajs/aspida/tree/master/packages/aspida-fetch | ||
[@aspida/node-fetch]: https://github.com/aspidajs/aspida/tree/master/packages/aspida-node-fetch |
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
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
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
65473
372
5
740
Updatedminimist@^1.2.5