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

ts-retrofit

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-retrofit - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

3

lib/baseService.js

@@ -101,3 +101,4 @@ "use strict";

const pathParams = meta[methodName].pathParams;
let url = [endpoint, basePath, path].join("");
const isAbsoluteURL = /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(path);
let url = isAbsoluteURL ? path : [endpoint, basePath, path].join("");
for (const pos in pathParams) {

@@ -104,0 +105,0 @@ if (pathParams[pos]) {

{
"name": "ts-retrofit",
"version": "1.5.0",
"version": "1.5.1",
"description": "A declarative and axios based retrofit implementation for JavaScript and TypeScript.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/nullcc/ts-retrofit",

@@ -172,2 +172,3 @@ # ts-retrofit

| Part Parameters | @Part | Specifying field map in method parameter, only effective when method has been decorated by @Multipart | Method Parameter | @Part("name") |
| Response | @ResponseType | Specifying the response type in axios config| Method | @ResponseType("stream") |

@@ -174,0 +175,0 @@ ## Test

@@ -8,3 +8,3 @@ # ts-retrofit

| -----------|----------|-----------|-------|
| ![Statements](https://img.shields.io/badge/Coverage-98.97%25-brightgreen.svg "Make me better!") | ![Branches](https://img.shields.io/badge/Coverage-83.15%25-yellow.svg "Make me better!") | ![Functions](https://img.shields.io/badge/Coverage-98.63%25-brightgreen.svg "Make me better!") | ![Lines](https://img.shields.io/badge/Coverage-98.97%25-brightgreen.svg "Make me better!") |
| ![Statements](https://img.shields.io/badge/Coverage-98.99%25-brightgreen.svg "Make me better!") | ![Branches](https://img.shields.io/badge/Coverage-83.87%25-yellow.svg "Make me better!") | ![Functions](https://img.shields.io/badge/Coverage-98.67%25-brightgreen.svg "Make me better!") | ![Lines](https://img.shields.io/badge/Coverage-98.99%25-brightgreen.svg "Make me better!") |

@@ -173,2 +173,3 @@ > A declarative and axios based retrofit implementation for JavaScript and TypeScript.

| Part Parameters | @Part | Specifying field map in method parameter, only effective when method has been decorated by @Multipart | Method Parameter | @Part("name") |
| Response | @ResponseType | Specifying the response type in axios config| Method | @ResponseType("stream") |

@@ -175,0 +176,0 @@ ## Test

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