@hubspot/app-functions-dev-server
Advanced tools
Comparing version 0.8.18 to 0.8.19
@@ -49,2 +49,5 @@ "use strict"; | ||
const url = new URL(requestUri); | ||
if (allowedUrls && !allowedUrls.includes(url.origin)) { | ||
logger.warn(`'${url.origin}' is not in the 'allowedUrls' list in the application configuration file. Uploading the project in it's current state may result in request failures.`); | ||
} | ||
const localMapping = localDevUrlMapping[url.origin] || localDevUrlMapping[`${url.origin}/`]; | ||
@@ -54,5 +57,2 @@ if (!localMapping) { | ||
} | ||
if (allowedUrls && !allowedUrls.includes(url.origin)) { | ||
logger.warn(`'${url.origin}' is not in the 'allowedUrls' list in the application configuration file. Uploading the project in it's current state may result in request failures.`); | ||
} | ||
const parsedLocalMapping = new URL(localMapping); | ||
@@ -59,0 +59,0 @@ url.host = parsedLocalMapping.host; |
{ | ||
"name": "@hubspot/app-functions-dev-server", | ||
"version": "0.8.18", | ||
"version": "0.8.19", | ||
"description": "A tool for testing HubSpot private app functions locally", | ||
@@ -49,3 +49,3 @@ "engines": { | ||
}, | ||
"gitHead": "d924c3162f175d778889bab358648e629d88b025" | ||
"gitHead": "778d75e8553ed10fdbfd082a7fa895e5305f4ea3" | ||
} |