@apicase/adapter-xhr
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -67,3 +67,3 @@ 'use strict'; | ||
const res = Object.assign({}, from, to); | ||
if (to.url && from.url) { | ||
if (to.url !== undefined && from.url !== undefined) { | ||
res.url = to.url[0] === '/' ? to.url : [from.url, to.url].join('/'); | ||
@@ -70,0 +70,0 @@ } |
@@ -65,3 +65,3 @@ const pathToRegexp = require('path-to-regexp') | ||
const res = Object.assign({}, from, to) | ||
if (to.url && from.url) { | ||
if (to.url !== undefined && from.url !== undefined) { | ||
res.url = to.url[0] === '/' ? to.url : [from.url, to.url].join('/') | ||
@@ -68,0 +68,0 @@ } |
{ | ||
"name": "@apicase/adapter-xhr", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "XHR adapter for apicase-core", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs.js", |
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
8259