@readyfor/api-client-base 1.75.0-pr1466.5e1f1fb → 1.75.0-pr1466.af1e4d2
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.mjs +2 -2
- package/dist/requestUrl.d.ts +1 -1
- package/dist/requestUrl.js +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -142,10 +142,10 @@ const createVoidFetcher = (customRequestInit = {}, options = {}) => (input, requ
|
|
|
142
142
|
});
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/requestUrl.ts
|
|
145
|
-
|
|
145
|
+
const __internal__requestUrl = (rawPath, { path: pathParams = {}, query } = {}) => {
|
|
146
146
|
const config = store.getState();
|
|
147
147
|
const path = (config.hostName ? typeof config.hostName === "string" ? config.hostName : config.hostName(rawPath) : "") + Object.entries(pathParams).reduce((path, [key, value]) => path.replace(`{${key}}`, String(value)), rawPath);
|
|
148
148
|
return query ? `${path}?${qs.stringify(query)}` : path;
|
|
149
|
-
}
|
|
149
|
+
};
|
|
150
150
|
//#endregion
|
|
151
151
|
export { HTTPError, __internal__requestUrl, buildRequestInitWithDefaultConfig, createBlobFetcher, createFileOrBlobFetcher, createJsonFetcher, createStore, createTextFetcher, createVoidFetcher, errorStatusCode, errorTitle, getErrorStatus, getHttpErrorBody, getHttpErrorBodyReason, isHttpErrorWithStatus, isZodError, mergeHeadersInit, mergeRequestInit, schemaForType, setApiClientConfig, store, toHeadersInit };
|
package/dist/requestUrl.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ type UrlArgs = {
|
|
|
4
4
|
path?: UrlParams;
|
|
5
5
|
query?: UrlParams;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare const __internal__requestUrl: (rawPath: string, { path: pathParams, query }?: UrlArgs) => string;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { __internal__requestUrl };
|
package/dist/requestUrl.js
CHANGED
|
@@ -4,10 +4,10 @@ const require_apiClientConfigStore = require("./apiClientConfigStore.js");
|
|
|
4
4
|
let qs = require("qs");
|
|
5
5
|
qs = require_runtime.__toESM(qs);
|
|
6
6
|
//#region src/requestUrl.ts
|
|
7
|
-
|
|
7
|
+
const __internal__requestUrl = (rawPath, { path: pathParams = {}, query } = {}) => {
|
|
8
8
|
const config = require_apiClientConfigStore.store.getState();
|
|
9
9
|
const path = (config.hostName ? typeof config.hostName === "string" ? config.hostName : config.hostName(rawPath) : "") + Object.entries(pathParams).reduce((path, [key, value]) => path.replace(`{${key}}`, String(value)), rawPath);
|
|
10
10
|
return query ? `${path}?${qs.default.stringify(query)}` : path;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
//#endregion
|
|
13
13
|
exports.__internal__requestUrl = __internal__requestUrl;
|