@aeriajs/common 0.0.93 → 0.0.95
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/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/http.mjs +1 -1
- package/package.json +2 -2
package/dist/http.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type RequestConfig = {
|
|
|
9
9
|
}>;
|
|
10
10
|
responseTransformer?: typeof defaultResponseTransformer;
|
|
11
11
|
};
|
|
12
|
-
export declare const defaultRequestTransformer: (url: string, payload:
|
|
12
|
+
export declare const defaultRequestTransformer: (url: string, payload: any, params: RequestParams) => Promise<{
|
|
13
13
|
url: string;
|
|
14
14
|
params: RequestParams;
|
|
15
15
|
}>;
|
package/dist/http.js
CHANGED
package/dist/http.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export const defaultRequestTransformer = async (url, payload, params) => {
|
|
|
4
4
|
url,
|
|
5
5
|
params
|
|
6
6
|
};
|
|
7
|
-
if (
|
|
7
|
+
if (payload) {
|
|
8
8
|
if (params.method === "GET" || params.method === "HEAD") {
|
|
9
9
|
request2.url += `?${new URLSearchParams(payload)}`;
|
|
10
10
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.95",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"bson": "^6.5.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@aeriajs/types": "^0.0.
|
|
34
|
+
"@aeriajs/types": "^0.0.81",
|
|
35
35
|
"bson": "^6.5.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|