Socket
Socket
Sign inDemoInstall

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.2.0 to 0.3.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.3.0](https://github.com/aspidajs/aspida/compare/v0.2.0...v0.3.0) (2019-10-12)
### Features
* **cli:** correspond endpoint extension ([d3f8aeb](https://github.com/aspidajs/aspida/commit/d3f8aeb))
### [0.2.0](https://github.com/aspidajs/aspida/compare/v0.1.2...v0.2.0) (2019-10-10)

@@ -7,0 +14,0 @@

10

dist/buildRouteFile.js

@@ -118,4 +118,8 @@ "use strict";

var target = path_1.default.posix.join(mockDir, file);
var valFn = "" + indent + file.split('.')[0] + ": {\n<% next %>\n" + indent + "}";
var newUrl = url + "/" + file.split('.')[0];
var valFn = "" + indent + file
.replace(/\.ts$/, '')
.split('.')
.map(function (f, i) { return (i > 0 ? "" + f.charAt(0).toUpperCase() + f.slice(1) : f); })
.join('') + ": {\n<% next %>\n" + indent + "}";
var newUrl = url + "/" + file.replace(/\.ts$/, '');
if (file.startsWith('_')) {

@@ -128,3 +132,3 @@ valFn = "" + indent + file.split('.')[0] + ": (val" + valCount + ": number | string) => ({\n<% next %>\n" + indent + "})";

var importName = "Methods" + imports.length;
imports.push("import { Methods as " + importName + " } from '" + importBasePath + "/" + file.replace('.ts', '') + "'");
imports.push("import { Methods as " + importName + " } from '" + importBasePath + "/" + file.replace(/\.ts$/, '') + "'");
props.push(valFn.replace('<% next %>', createMethods(target, indent, importName, newUrl)));

@@ -131,0 +135,0 @@ }

{
"name": "aspida",
"version": "0.2.0",
"version": "0.3.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

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