ts-retrofit
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -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 |
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
56743
1000
179