@meistrari/tela-sdk-js 2.4.0 → 2.4.1

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 CHANGED
@@ -24,7 +24,7 @@ const z__default = /*#__PURE__*/_interopDefaultCompat(z);
24
24
  const z__namespace = /*#__PURE__*/_interopNamespaceCompat(z);
25
25
  const Emittery__default = /*#__PURE__*/_interopDefaultCompat(Emittery);
26
26
 
27
- const version = "2.4.0";
27
+ const version = "2.4.1";
28
28
 
29
29
  var __defProp$7 = Object.defineProperty;
30
30
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -824,7 +824,8 @@ class BaseClient {
824
824
  return headers;
825
825
  }
826
826
  getUserAgent() {
827
- return `tela-sdk-node/${version}`;
827
+ const serviceName = typeof process !== "undefined" && process?.env?.SERVICE_NAME ? `@${process.env.SERVICE_NAME}` : "";
828
+ return `tela-sdk-node:${version}${serviceName}`;
828
829
  }
829
830
  get(path, opts) {
830
831
  return this.methodRequest("GET", path, opts);
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import * as z from 'zod';
4
4
  import z__default, { z as z$1, ZodError } from 'zod';
5
5
  import Emittery from 'emittery';
6
6
 
7
- const version = "2.4.0";
7
+ const version = "2.4.1";
8
8
 
9
9
  var __defProp$7 = Object.defineProperty;
10
10
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -804,7 +804,8 @@ class BaseClient {
804
804
  return headers;
805
805
  }
806
806
  getUserAgent() {
807
- return `tela-sdk-node/${version}`;
807
+ const serviceName = typeof process !== "undefined" && process?.env?.SERVICE_NAME ? `@${process.env.SERVICE_NAME}` : "";
808
+ return `tela-sdk-node:${version}${serviceName}`;
808
809
  }
809
810
  get(path, opts) {
810
811
  return this.methodRequest("GET", path, opts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-sdk-js",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/meistrari/tela-sdk-js.git"