akeyless-client-commons 1.1.14 → 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,8 +1208,9 @@ 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, {
1212
- path: "/connect",
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, {
1213
+ path: "/api/data-socket/connect",
1213
1214
  transports: [
1214
1215
  "websocket"
1215
1216
  ]
@@ -986,8 +986,9 @@ var SocketService = /*#__PURE__*/ function() {
986
986
  value: function initSocket() {
987
987
  var _this = this;
988
988
  if (!this.socket) {
989
- this.socket = io(dataSocketDomain, {
990
- path: "/connect",
989
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
990
+ this.socket = io(socketUrl, {
991
+ path: "/api/data-socket/connect",
991
992
  transports: [
992
993
  "websocket"
993
994
  ]
@@ -2314,8 +2314,9 @@ 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, {
2318
- path: "/connect",
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, {
2319
+ path: "/api/data-socket/connect",
2319
2320
  transports: [
2320
2321
  "websocket"
2321
2322
  ]
@@ -1950,8 +1950,9 @@ var SocketService = /*#__PURE__*/ function() {
1950
1950
  value: function initSocket() {
1951
1951
  var _this = this;
1952
1952
  if (!this.socket) {
1953
- this.socket = io(dataSocketDomain, {
1954
- path: "/connect",
1953
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
1954
+ this.socket = io(socketUrl, {
1955
+ path: "/api/data-socket/connect",
1955
1956
  transports: [
1956
1957
  "websocket"
1957
1958
  ]
@@ -659,8 +659,9 @@ 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, {
663
- path: "/connect",
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, {
664
+ path: "/api/data-socket/connect",
664
665
  transports: [
665
666
  "websocket"
666
667
  ]
@@ -565,8 +565,9 @@ var SocketService = /*#__PURE__*/ function() {
565
565
  value: function initSocket() {
566
566
  var _this = this;
567
567
  if (!this.socket) {
568
- this.socket = io(dataSocketDomain, {
569
- path: "/connect",
568
+ var socketUrl = isLocal ? "http://localhost:9009" : mode === "qa" ? "https://akeyless-online.xyz" : "https://akeyless-online.info";
569
+ this.socket = io(socketUrl, {
570
+ path: "/api/data-socket/connect",
570
571
  transports: [
571
572
  "websocket"
572
573
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.14",
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",