@konversi/konversi-client 1.5.7 → 1.5.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/README.md +46 -46
- package/dist/index.d.mts +607 -507
- package/dist/index.d.ts +607 -507
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +28 -28
package/dist/index.js
CHANGED
|
@@ -4260,7 +4260,11 @@ function getAllCustomObjects(_0) {
|
|
|
4260
4260
|
url: `custom-entity/object/${schemaName}`,
|
|
4261
4261
|
params: queryParams
|
|
4262
4262
|
});
|
|
4263
|
-
|
|
4263
|
+
if (Array.isArray(response.data)) {
|
|
4264
|
+
return response.data;
|
|
4265
|
+
} else {
|
|
4266
|
+
return response.data.data;
|
|
4267
|
+
}
|
|
4264
4268
|
} catch (e) {
|
|
4265
4269
|
throw new KonversiError(e.message + ` ${(_a = e.response) == null ? void 0 : _a.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
4266
4270
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4222,7 +4222,11 @@ function getAllCustomObjects(_0) {
|
|
|
4222
4222
|
url: `custom-entity/object/${schemaName}`,
|
|
4223
4223
|
params: queryParams
|
|
4224
4224
|
});
|
|
4225
|
-
|
|
4225
|
+
if (Array.isArray(response.data)) {
|
|
4226
|
+
return response.data;
|
|
4227
|
+
} else {
|
|
4228
|
+
return response.data.data;
|
|
4229
|
+
}
|
|
4226
4230
|
} catch (e) {
|
|
4227
4231
|
throw new KonversiError(e.message + ` ${(_a = e.response) == null ? void 0 : _a.status} ${JSON.stringify((_b = e.response) == null ? void 0 : _b.data)}`, e);
|
|
4228
4232
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@konversi/konversi-client",
|
|
3
|
-
"version": "1.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
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af"
|
|
28
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@konversi/konversi-client",
|
|
3
|
+
"version": "1.5.10",
|
|
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
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af"
|
|
28
|
+
}
|