@encatch/api-sdk 0.0.10 → 0.0.11-beta.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.cjs +1 -6
- package/dist/index.js +1 -6
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -266,13 +266,8 @@ var _EncatchApiSDK = class _EncatchApiSDK {
|
|
|
266
266
|
this._error = error instanceof Error ? error.message : "An unknown error occurred";
|
|
267
267
|
this._log(message, this._error);
|
|
268
268
|
}
|
|
269
|
-
_log(
|
|
269
|
+
_log(_message, _data) {
|
|
270
270
|
if (this.enableLogging) {
|
|
271
|
-
if (data) {
|
|
272
|
-
console.log(`[EncatchApiSDK] ${message}`, data);
|
|
273
|
-
} else {
|
|
274
|
-
console.log(`[EncatchApiSDK] ${message}`);
|
|
275
|
-
}
|
|
276
271
|
}
|
|
277
272
|
}
|
|
278
273
|
};
|
package/dist/index.js
CHANGED
|
@@ -232,13 +232,8 @@ var _EncatchApiSDK = class _EncatchApiSDK {
|
|
|
232
232
|
this._error = error instanceof Error ? error.message : "An unknown error occurred";
|
|
233
233
|
this._log(message, this._error);
|
|
234
234
|
}
|
|
235
|
-
_log(
|
|
235
|
+
_log(_message, _data) {
|
|
236
236
|
if (this.enableLogging) {
|
|
237
|
-
if (data) {
|
|
238
|
-
console.log(`[EncatchApiSDK] ${message}`, data);
|
|
239
|
-
} else {
|
|
240
|
-
console.log(`[EncatchApiSDK] ${message}`);
|
|
241
|
-
}
|
|
242
237
|
}
|
|
243
238
|
}
|
|
244
239
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encatch/api-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
"pako": "^2.1.0",
|
|
21
21
|
"ts-case-convert": "^2.1.0",
|
|
22
22
|
"zod": "^4.1.8",
|
|
23
|
-
"@encatch/schema": "0.1.
|
|
23
|
+
"@encatch/schema": "0.1.38-beta.2"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"dev": "vite",
|
|
27
27
|
"build": "tsup",
|
|
28
28
|
"preview": "vite preview",
|
|
29
|
+
"clean": "rm -rf dist",
|
|
29
30
|
"test": "vitest",
|
|
30
31
|
"test:run": "vitest run",
|
|
31
32
|
"test:ui": "vitest --ui",
|