@veridia/node-sdk 1.0.7 → 1.0.8

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.
@@ -173,13 +173,13 @@ class VeridiaClient {
173
173
  scheduleFlushIfNeeded(service, buffer) {
174
174
  if (buffer.length >= this.maxBufferSize) {
175
175
  this.flush().catch((error) => {
176
- this.logger?.error(service, 'automatic flush failed', { error });
176
+ this.logger?.error('flush', 'automatic flush failed', { error });
177
177
  });
178
178
  }
179
179
  else if (!this.flushTimer) {
180
180
  this.flushTimer = setTimeout(() => {
181
181
  this.flush().catch((error) => {
182
- this.logger?.error(service, 'automatic flush failed', { error });
182
+ this.logger?.error('flush', 'automatic flush failed', { error });
183
183
  });
184
184
  }, this.maxBufferTimeMs);
185
185
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.7";
1
+ export declare const SDK_VERSION = "1.0.8";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.0.7';
4
+ exports.SDK_VERSION = '1.0.8';
5
5
  //# sourceMappingURL=version.js.map
@@ -173,13 +173,13 @@ class VeridiaClient {
173
173
  scheduleFlushIfNeeded(service, buffer) {
174
174
  if (buffer.length >= this.maxBufferSize) {
175
175
  this.flush().catch((error) => {
176
- this.logger?.error(service, 'automatic flush failed', { error });
176
+ this.logger?.error('flush', 'automatic flush failed', { error });
177
177
  });
178
178
  }
179
179
  else if (!this.flushTimer) {
180
180
  this.flushTimer = setTimeout(() => {
181
181
  this.flush().catch((error) => {
182
- this.logger?.error(service, 'automatic flush failed', { error });
182
+ this.logger?.error('flush', 'automatic flush failed', { error });
183
183
  });
184
184
  }, this.maxBufferTimeMs);
185
185
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.7";
1
+ export declare const SDK_VERSION = "1.0.8";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '1.0.7';
4
+ exports.SDK_VERSION = '1.0.8';
5
5
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veridia/node-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -31,6 +31,7 @@
31
31
  "@types/node": "^24.9.2",
32
32
  "@typescript-eslint/eslint-plugin": "^8.46.2",
33
33
  "@typescript-eslint/parser": "^8.46.2",
34
+ "@vitest/coverage-v8": "^4.0.6",
34
35
  "eslint": "^9.38.0",
35
36
  "eslint-plugin-prettier": "^5.5.4",
36
37
  "husky": "^8.0.0",