@apia/api 3.0.30 → 3.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -465,7 +465,7 @@ function makeApiaUrl(props) {
|
|
|
465
465
|
if (props?.queryString && props.queryString.includes("timestamp=") || queryString?.includes("timestamp=")) {
|
|
466
466
|
timestamp = "";
|
|
467
467
|
}
|
|
468
|
-
const contextWord = CONTEXT.
|
|
468
|
+
const contextWord = CONTEXT.replace(/^\/?(.+?)\/?$/, "$1");
|
|
469
469
|
actualAjaxUrl = actualAjaxUrl.match(
|
|
470
470
|
new RegExp(`^(?:(?:/?${contextWord})?/)?(.+)$`)
|
|
471
471
|
)?.[1];
|