Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aspida

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspida - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

dist/buildTemplate.d.ts

12

CHANGELOG.md

@@ -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 @@

6

dist/cli.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc