@konversi/konversi-client 1.2.4 → 1.2.5

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.js CHANGED
@@ -242,7 +242,10 @@ function updateCustomObject(schemaName, id, newData) {
242
242
  const response = yield axiosAPI_default.request({
243
243
  method: "put",
244
244
  url: `custom-entity/${schemaName}/${id}`,
245
- data: newData
245
+ headers: {
246
+ "Content-Type": "application/json"
247
+ },
248
+ data: JSON.stringify(newData)
246
249
  });
247
250
  return response.data;
248
251
  });
package/dist/index.mjs CHANGED
@@ -211,7 +211,10 @@ function updateCustomObject(schemaName, id, newData) {
211
211
  const response = yield axiosAPI_default.request({
212
212
  method: "put",
213
213
  url: `custom-entity/${schemaName}/${id}`,
214
- data: newData
214
+ headers: {
215
+ "Content-Type": "application/json"
216
+ },
217
+ data: JSON.stringify(newData)
215
218
  });
216
219
  return response.data;
217
220
  });
package/index.ts CHANGED
@@ -23,7 +23,10 @@ async function updateCustomObject(schemaName: string, id: string, newData: any)
23
23
  const response = await axiosAPI.request({
24
24
  method: 'put',
25
25
  url: `custom-entity/${schemaName}/${id}`,
26
- data: newData
26
+ headers: {
27
+ 'Content-Type': 'application/json'
28
+ },
29
+ data: JSON.stringify(newData)
27
30
  })
28
31
  return response.data;
29
32
  }
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@konversi/konversi-client",
3
- "version": "1.2.4",
4
- "main": "dist/index.js",
5
- "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
7
- "keywords": [],
8
- "author": "",
9
- "license": "ISC",
10
- "dependencies": {
11
- "axios": "^1.6.8",
12
- "ts-node": "^10.9.2"
13
- },
14
- "description": "",
15
- "devDependencies": {
16
- "tsup": "^8.2.4",
17
- "typescript": "^5.4.5"
18
- },
19
- "scripts": {
20
- "test": "echo \"Error: no test specified\" && exit 1",
21
- "build": "tsup index.ts --format cjs,esm --dts",
22
- "lint": "tsc"
23
- }
24
- }
1
+ {
2
+ "name": "@konversi/konversi-client",
3
+ "version": "1.2.5",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "tsup index.ts --format cjs,esm --dts",
10
+ "lint": "tsc"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "axios": "^1.6.8",
17
+ "ts-node": "^10.9.2"
18
+ },
19
+ "description": "",
20
+ "devDependencies": {
21
+ "tsup": "^8.2.4",
22
+ "typescript": "^5.4.5"
23
+ }
24
+ }