dce-reactkit 3.7.20 → 3.7.21
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/package.json
CHANGED
|
@@ -123,27 +123,12 @@ const visitServerEndpoint = async (
|
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// Process params (encode objects)
|
|
127
|
-
let params: {
|
|
128
|
-
[key: string]: any,
|
|
129
|
-
} | undefined;
|
|
130
|
-
if (opts.params) {
|
|
131
|
-
params = {};
|
|
132
|
-
Object.entries(opts.params).forEach(([key, value]) => {
|
|
133
|
-
if (typeof value === 'object') {
|
|
134
|
-
(params as any)[key] = JSON.stringify(value);
|
|
135
|
-
} else {
|
|
136
|
-
(params as any)[key] = value;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
126
|
// Send the request
|
|
142
127
|
const sendRequest = await getSendRequest();
|
|
143
128
|
const response = await sendRequest({
|
|
144
129
|
path: opts.path,
|
|
145
130
|
method: opts.method ?? 'GET',
|
|
146
|
-
params,
|
|
131
|
+
params: opts.params,
|
|
147
132
|
});
|
|
148
133
|
|
|
149
134
|
// Check for failure
|