@passly-nl/data 1.3.5 → 1.4.0
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.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/util/buildListQuery.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseService, QueryString, adapter, dto } from "@basmilius/http-client";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
|
|
4
|
-
//#region \0@oxc-project+runtime@0.
|
|
4
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/decorate.js
|
|
5
5
|
function __decorate(decorators, target, key, desc) {
|
|
6
6
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
7
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -7954,7 +7954,7 @@ AddressAdapter = __decorate([adapter], AddressAdapter);
|
|
|
7954
7954
|
//#region src/util/buildListQuery.ts
|
|
7955
7955
|
function buildListQuery_default(params, language = "nl") {
|
|
7956
7956
|
const query = QueryString.builder().append("language", language).append("offset", params.offset).append("limit", params.limit);
|
|
7957
|
-
if (params.search) query.append("
|
|
7957
|
+
if (params.search) query.append("q", params.search);
|
|
7958
7958
|
if (params.filters) {
|
|
7959
7959
|
for (const [key, value] of Object.entries(params.filters)) if (Array.isArray(value)) query.appendArray(`${key}[]`, value.map(serialize));
|
|
7960
7960
|
else if (value !== null && value !== void 0) {
|