akeyless-client-commons 1.1.15 → 1.1.16

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.
@@ -1208,7 +1208,8 @@ var SocketService = /*#__PURE__*/ function() {
1208
1208
  value: function initSocket() {
1209
1209
  var _this = this;
1210
1210
  if (!this.socket) {
1211
- this.socket = (0, import_socket.io)(dataSocketDomain, {
1211
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
1212
+ this.socket = (0, import_socket.io)(socketUrl, {
1212
1213
  path: "/api/data-socket/connect",
1213
1214
  transports: [
1214
1215
  "websocket"
@@ -986,7 +986,8 @@ var SocketService = /*#__PURE__*/ function() {
986
986
  value: function initSocket() {
987
987
  var _this = this;
988
988
  if (!this.socket) {
989
- this.socket = io(dataSocketDomain, {
989
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
990
+ this.socket = io(socketUrl, {
990
991
  path: "/api/data-socket/connect",
991
992
  transports: [
992
993
  "websocket"
@@ -2314,7 +2314,8 @@ var SocketService = /*#__PURE__*/ function() {
2314
2314
  value: function initSocket() {
2315
2315
  var _this = this;
2316
2316
  if (!this.socket) {
2317
- this.socket = (0, import_socket.io)(dataSocketDomain, {
2317
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
2318
+ this.socket = (0, import_socket.io)(socketUrl, {
2318
2319
  path: "/api/data-socket/connect",
2319
2320
  transports: [
2320
2321
  "websocket"
@@ -1950,7 +1950,8 @@ var SocketService = /*#__PURE__*/ function() {
1950
1950
  value: function initSocket() {
1951
1951
  var _this = this;
1952
1952
  if (!this.socket) {
1953
- this.socket = io(dataSocketDomain, {
1953
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
1954
+ this.socket = io(socketUrl, {
1954
1955
  path: "/api/data-socket/connect",
1955
1956
  transports: [
1956
1957
  "websocket"
@@ -659,7 +659,8 @@ var SocketService = /*#__PURE__*/ function() {
659
659
  value: function initSocket() {
660
660
  var _this = this;
661
661
  if (!this.socket) {
662
- this.socket = (0, import_socket.io)(dataSocketDomain, {
662
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
663
+ this.socket = (0, import_socket.io)(socketUrl, {
663
664
  path: "/api/data-socket/connect",
664
665
  transports: [
665
666
  "websocket"
@@ -565,7 +565,8 @@ var SocketService = /*#__PURE__*/ function() {
565
565
  value: function initSocket() {
566
566
  var _this = this;
567
567
  if (!this.socket) {
568
- this.socket = io(dataSocketDomain, {
568
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
569
+ this.socket = io(socketUrl, {
569
570
  path: "/api/data-socket/connect",
570
571
  transports: [
571
572
  "websocket"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",