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.15.1 to 0.15.2

7

dist/createTemplateValues.js

@@ -57,8 +57,9 @@ "use strict";

if (file.startsWith('_')) {
var _a = __read(basename.split('@'), 2), valName = _a[0], _b = _a[1], valType = _b === void 0 ? 'number | string' : _b;
var _a = __read(basename.split('@'), 2), valName_1 = _a[0], _b = _a[1], valType = _b === void 0 ? 'number | string' : _b;
if (/^[A-Z]/.test(valType)) {
valType = "ApiTypes." + valType;
}
valFn = "" + indent + valName.replace(/\./g, '_') + ": (val" + valCount + ": " + valType + ") => ({\n<% next %>\n" + indent + "})";
newUrl = url + "/${val" + valCount + "}" + valName.replace(/^[^.]+/, '');
var duplicatedNames = dirList.filter(function (d) { return d.startsWith(valName_1); });
valFn = "" + indent + valName_1.replace(/\./g, '_') + (duplicatedNames.length > 1 ? "_" + duplicatedNames.indexOf(file) : '') + ": (val" + valCount + ": " + valType + ") => ({\n<% next %>\n" + indent + "})";
newUrl = url + "/${val" + valCount + "}" + valName_1.replace(/^[^.]+/, '');
valCount += 1;

@@ -65,0 +66,0 @@ }

{
"name": "aspida",
"version": "0.15.1",
"version": "0.15.2",
"description": "TypeScript friendly HTTP client wrapper for the browser and node.js",

@@ -5,0 +5,0 @@ "author": "m-mitsuhide <m.mitsuhide@amatelus.com>",

@@ -193,3 +193,6 @@ | aspida | [aspida-mock] | [openapi2aspida] | [pathpida] |

```
### Read more posts by DEV Community
**[aspida - DEV Community](https://dev.to/t/aspida)**
### Learn more about HTTP clients

@@ -196,0 +199,0 @@

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