@metarisc/metarisc-js 0.0.1-alpha.102 → 0.0.1-alpha.103

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/collection.js CHANGED
@@ -17,9 +17,10 @@ class Collection {
17
17
  if (this.config.method === 'POST') {
18
18
  return this.client.request({
19
19
  method: 'POST',
20
- endpoint: this.config.endpoint,
20
+ endpoint: 'search/' + this.config.endpoint,
21
21
  headers: this.config.headers,
22
- body: { ...this.config.data, ...paginationParams }
22
+ body: this.config.data,
23
+ params: paginationParams
23
24
  });
24
25
  }
25
26
  return this.client.request({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metarisc/metarisc-js",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/index.d.ts",
5
- "version": "0.0.1-alpha.102",
5
+ "version": "0.0.1-alpha.103",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
package/src/collection.ts CHANGED
@@ -43,9 +43,10 @@ export class Collection<T>
43
43
  if (this.config.method === 'POST') {
44
44
  return this.client.request({
45
45
  method: 'POST',
46
- endpoint: this.config.endpoint,
46
+ endpoint: 'search/' + this.config.endpoint,
47
47
  headers: this.config.headers,
48
- body: { ...this.config.data, ...paginationParams }
48
+ body: this.config.data,
49
+ params: paginationParams
49
50
  });
50
51
  }
51
52