@shoutem/api-sdk
Advanced tools
Comparing version 1.1.8-beta3 to 1.1.8-beta4
@@ -61,3 +61,2 @@ 'use strict'; | ||
var apiSubdomainRegex = new RegExp('^([.a-z0-9]*?).*(localhost|' + baseApi + '|' + additionalEndpoints + ')', 'g'); | ||
console.log(apiSubdomainRegex); | ||
@@ -68,5 +67,9 @@ return function (request) { | ||
var requestHostname = requestUri.hostname(); | ||
console.log(request.url, requestHostname.match(apiSubdomainRegex)); | ||
console.log(authTokenEndpoint); | ||
console.log(authSessionEndpoint); | ||
var authRequired = requestHostname.match(apiSubdomainRegex); | ||
var returnValue = authRequired && request.url !== authTokenEndpoint && request.url !== authSessionEndpoint; | ||
console.log(authRequired, returnValue); | ||
return returnValue; | ||
@@ -100,3 +103,3 @@ }; | ||
function initializeFetchTokenInterceptor(config) { | ||
console.log('fti config', config); | ||
console.log('fti config2', config); | ||
var refreshToken = config.auth.token; | ||
@@ -103,0 +106,0 @@ var _config$url = config.url, |
{ | ||
"name": "@shoutem/api-sdk", | ||
"version": "1.1.8-beta3", | ||
"version": "1.1.8-beta4", | ||
"description": "Javascript SDK for Shoutem API using fetch", | ||
@@ -47,2 +47,2 @@ "main": "build/lib/index.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
30924
670