@tstdl/base 0.88.2 → 0.88.3
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.
|
@@ -15,7 +15,7 @@ import { encodeUtf8 } from '../../utils/encoding.js';
|
|
|
15
15
|
import { composeAsyncMiddleware } from '../../utils/middleware.js';
|
|
16
16
|
import { objectEntries } from '../../utils/object/object.js';
|
|
17
17
|
import { readableStreamFromPromise } from '../../utils/stream/readable-stream-from-promise.js';
|
|
18
|
-
import { isDefined, isObject, isUndefined } from '../../utils/type-guards.js';
|
|
18
|
+
import { isArray, isDefined, isObject, isUndefined } from '../../utils/type-guards.js';
|
|
19
19
|
import { buildUrl } from '../../utils/url-builder.js';
|
|
20
20
|
import { HttpHeaders } from '../http-headers.js';
|
|
21
21
|
import { HttpError, HttpErrorReason } from '../http.error.js';
|
|
@@ -284,7 +284,7 @@ function mapParameters(request, baseUrl) {
|
|
|
284
284
|
if (request.mapParametersToQuery) {
|
|
285
285
|
for (const entry of parameterEntries) {
|
|
286
286
|
const [parameter, value] = entry;
|
|
287
|
-
if (isUndefined(value) || isObject(value)) {
|
|
287
|
+
if (isUndefined(value) || (isObject(value) && !isArray(value))) {
|
|
288
288
|
continue;
|
|
289
289
|
}
|
|
290
290
|
for (const val of toArray(value)) {
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Client } from 'minio';
|
|
11
10
|
import { Readable } from 'node:stream';
|
|
11
|
+
import { Client } from 'minio';
|
|
12
12
|
import { Singleton } from '../../injector/decorators.js';
|
|
13
13
|
import { ObjectStorage } from '../../object-storage/index.js';
|
|
14
14
|
import { mapAsync } from '../../utils/async-iterable-helpers/map.js';
|
package/package.json
CHANGED
package/utils/object/object.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { filterAsync } from '../async-iterable-helpers/filter.js';
|
|
2
2
|
import { mapAsync } from '../async-iterable-helpers/map.js';
|
|
3
3
|
import { toArrayAsync } from '../async-iterable-helpers/to-array.js';
|
|
4
|
-
import {
|
|
4
|
+
import { isDefined, isObject, isSymbol, isUndefined } from '../type-guards.js';
|
|
5
5
|
export function hasOwnProperty(obj, key) {
|
|
6
6
|
return Object.hasOwn(obj, key);
|
|
7
7
|
}
|
|
@@ -90,7 +90,7 @@ export function deepObjectEntries(object, keepInnerObjects = false, prefix) {
|
|
|
90
90
|
: allEntries.map(([key, value]) => [`${prefix}${key}`, value]);
|
|
91
91
|
const entries = [];
|
|
92
92
|
for (const [key, value] of rawEntries) {
|
|
93
|
-
if (isObject(value)
|
|
93
|
+
if (isObject(value)) {
|
|
94
94
|
if (keepInnerObjects) {
|
|
95
95
|
entries.push([key, value]);
|
|
96
96
|
}
|