@monkvision/network 4.3.8 → 4.3.10

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "4.3.7",
3
+ "version": "4.3.9",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs core package used to communicate with the API",
@@ -28,8 +28,8 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/common": "4.3.7",
32
- "@monkvision/sights": "4.3.7",
31
+ "@monkvision/common": "4.3.9",
32
+ "@monkvision/sights": "4.3.9",
33
33
  "jsonwebtoken": "^9.0.2",
34
34
  "jwt-decode": "^4.0.0",
35
35
  "ky": "^1.2.0",
@@ -42,12 +42,12 @@
42
42
  "react-router-dom": "^6.22.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@monkvision/eslint-config-base": "4.3.7",
46
- "@monkvision/eslint-config-typescript": "4.3.7",
47
- "@monkvision/jest-config": "4.3.7",
48
- "@monkvision/prettier-config": "4.3.7",
49
- "@monkvision/types": "4.3.7",
50
- "@monkvision/typescript-config": "4.3.7",
45
+ "@monkvision/eslint-config-base": "4.3.9",
46
+ "@monkvision/eslint-config-typescript": "4.3.9",
47
+ "@monkvision/jest-config": "4.3.9",
48
+ "@monkvision/prettier-config": "4.3.9",
49
+ "@monkvision/types": "4.3.9",
50
+ "@monkvision/typescript-config": "4.3.9",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -485,6 +485,7 @@ function mapApiInspectionPost(options) {
485
485
  }
486
486
  exports.mapApiInspectionPost = mapApiInspectionPost;
487
487
  function mapApiInspectionsUrlParamsGet(options) {
488
+ var _a, _b;
488
489
  var params = new URLSearchParams();
489
490
  var url = options.filters || options.pagination ? '?' : '';
490
491
  if (options.filters) {
@@ -499,11 +500,11 @@ function mapApiInspectionsUrlParamsGet(options) {
499
500
  params.append(key, value.toString());
500
501
  });
501
502
  }
502
- if (options.sort) {
503
- Object.entries(options.sort).forEach(function (_a) {
504
- var key = _a[0], value = _a[1];
505
- params.append(key, value.toString());
506
- });
503
+ if ((_a = options.sort) === null || _a === void 0 ? void 0 : _a.sortByProperty) {
504
+ params.append('order_by', options.sort.sortByProperty);
505
+ }
506
+ if ((_b = options.sort) === null || _b === void 0 ? void 0 : _b.sortOrder) {
507
+ params.append('pagination_order', options.sort.sortOrder.toString());
507
508
  }
508
509
  return "".concat(url).concat(params.toString());
509
510
  }
@@ -37,8 +37,8 @@ interface ApiPaginationParams {
37
37
  pagination_order?: SortOrder;
38
38
  }
39
39
  interface ApiCursors {
40
- before?: Pick<ApiPaginationParams, 'before'>;
41
- after?: Pick<ApiPaginationParams, 'after'>;
40
+ before?: string;
41
+ after?: string;
42
42
  next?: ApiPaginationParams;
43
43
  previous?: ApiPaginationParams;
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkvision/network",
3
- "version": "4.3.8",
3
+ "version": "4.3.10",
4
4
  "license": "BSD-3-Clause-Clear",
5
5
  "packageManager": "yarn@3.2.4",
6
6
  "description": "MonkJs core package used to communicate with the API",
@@ -28,8 +28,8 @@
28
28
  "lint:fix": "yarn run prettier:fix && yarn run eslint:fix"
29
29
  },
30
30
  "dependencies": {
31
- "@monkvision/common": "4.3.8",
32
- "@monkvision/sights": "4.3.8",
31
+ "@monkvision/common": "4.3.10",
32
+ "@monkvision/sights": "4.3.10",
33
33
  "jsonwebtoken": "^9.0.2",
34
34
  "jwt-decode": "^4.0.0",
35
35
  "ky": "^1.2.0",
@@ -42,12 +42,12 @@
42
42
  "react-router-dom": "^6.22.3"
43
43
  },
44
44
  "devDependencies": {
45
- "@monkvision/eslint-config-base": "4.3.8",
46
- "@monkvision/eslint-config-typescript": "4.3.8",
47
- "@monkvision/jest-config": "4.3.8",
48
- "@monkvision/prettier-config": "4.3.8",
49
- "@monkvision/types": "4.3.8",
50
- "@monkvision/typescript-config": "4.3.8",
45
+ "@monkvision/eslint-config-base": "4.3.10",
46
+ "@monkvision/eslint-config-typescript": "4.3.10",
47
+ "@monkvision/jest-config": "4.3.10",
48
+ "@monkvision/prettier-config": "4.3.10",
49
+ "@monkvision/types": "4.3.10",
50
+ "@monkvision/typescript-config": "4.3.10",
51
51
  "@types/jest": "^29.2.2",
52
52
  "@types/jsonwebtoken": "^9.0.5",
53
53
  "@types/node": "^18.11.9",
@@ -84,5 +84,5 @@
84
84
  "url": "https://github.com/monkvision/monkjs/issues"
85
85
  },
86
86
  "homepage": "https://github.com/monkvision/monkjs",
87
- "gitHead": "da13d3ab018d3f928b731beb587c0009a92435fb"
87
+ "gitHead": "c5ef74dd7e20333edbdda44364b15e1f83f7cafd"
88
88
  }