@auxilium/datalynk-client 1.2.6 → 1.2.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.
package/dist/index.js CHANGED
@@ -1710,7 +1710,7 @@ function takeWhile(predicate, inclusive) {
1710
1710
  });
1711
1711
  }
1712
1712
  async function getTheme(spoke, scope) {
1713
- let theme = await fetch(`https://${spoke}.auxiliumgroup.com/api/js/auxilium/dijits/templates/login/${spoke}/theme.json`).then((res) => res.json()).catch(() => null);
1713
+ let theme = await fetch(`https://${spoke}.auxiliumgroup.com/static/js/auxilium/dijits/templates/login/${spoke}/theme.json`).then((res) => res.json()).catch(() => null);
1714
1714
  if (scope && theme != null && theme[scope]) theme = { ...theme, ...theme[scope] };
1715
1715
  return {
1716
1716
  found: !!theme,
@@ -3230,9 +3230,8 @@ class Socket {
3230
3230
  this.api = api;
3231
3231
  this.options = options;
3232
3232
  if (!options.url && options.url !== false) {
3233
- const url = new URL(this.api.url.replace("http", "ws"));
3234
- url.port = "9390";
3235
- this.options.url = url.origin;
3233
+ const origin = new URL(this.api.url).origin;
3234
+ this.options.url = origin.replace("http", "ws").replace(/:\d+/g, "") + `:9390`;
3236
3235
  }
3237
3236
  if (this.options.url !== false)
3238
3237
  api.token$.pipe(filter((u) => u !== void 0), distinctUntilChanged()).subscribe(() => this.connect());
@@ -3244,7 +3243,7 @@ class Socket {
3244
3243
  *
3245
3244
  *
3246
3245
  *
3247
- *
3246
+ *
3248
3247
  * @return {Unsubscribe} Function to unsubscribe callback
3249
3248
  */
3250
3249
  addListener(fn, reconnect) {
@@ -3355,7 +3354,7 @@ class Superuser {
3355
3354
  } });
3356
3355
  }
3357
3356
  }
3358
- const version = "1.2.6";
3357
+ const version = "1.2.8";
3359
3358
  class WebRtc {
3360
3359
  constructor(api) {
3361
3360
  __publicField(this, "ice");
package/dist/index.mjs CHANGED
@@ -1708,7 +1708,7 @@ function takeWhile(predicate, inclusive) {
1708
1708
  });
1709
1709
  }
1710
1710
  async function getTheme(spoke, scope) {
1711
- let theme = await fetch(`https://${spoke}.auxiliumgroup.com/api/js/auxilium/dijits/templates/login/${spoke}/theme.json`).then((res) => res.json()).catch(() => null);
1711
+ let theme = await fetch(`https://${spoke}.auxiliumgroup.com/static/js/auxilium/dijits/templates/login/${spoke}/theme.json`).then((res) => res.json()).catch(() => null);
1712
1712
  if (scope && theme != null && theme[scope]) theme = { ...theme, ...theme[scope] };
1713
1713
  return {
1714
1714
  found: !!theme,
@@ -3228,9 +3228,8 @@ class Socket {
3228
3228
  this.api = api;
3229
3229
  this.options = options;
3230
3230
  if (!options.url && options.url !== false) {
3231
- const url = new URL(this.api.url.replace("http", "ws"));
3232
- url.port = "9390";
3233
- this.options.url = url.origin;
3231
+ const origin = new URL(this.api.url).origin;
3232
+ this.options.url = origin.replace("http", "ws").replace(/:\d+/g, "") + `:9390`;
3234
3233
  }
3235
3234
  if (this.options.url !== false)
3236
3235
  api.token$.pipe(filter((u) => u !== void 0), distinctUntilChanged()).subscribe(() => this.connect());
@@ -3242,7 +3241,7 @@ class Socket {
3242
3241
  *
3243
3242
  *
3244
3243
  *
3245
- *
3244
+ *
3246
3245
  * @return {Unsubscribe} Function to unsubscribe callback
3247
3246
  */
3248
3247
  addListener(fn, reconnect) {
@@ -3353,7 +3352,7 @@ class Superuser {
3353
3352
  } });
3354
3353
  }
3355
3354
  }
3356
- const version = "1.2.6";
3355
+ const version = "1.2.8";
3357
3356
  class WebRtc {
3358
3357
  constructor(api) {
3359
3358
  __publicField(this, "ice");
@@ -1 +1 @@
1
- {"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../src/socket.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE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;IACH,KAAK;IASL;;;OAGG;IACH,OAAO,CAAC,OAAO,GAAE,MAAW;IAgC5B;;;;OAIG;IACH,IAAI,CAAC,OAAO,EAAE,GAAG;IAKjB;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,EAAE,cAAc,CAAC,gBAAgB,CAAC,GAAG,WAAW;CAUlH"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@auxilium/datalynk-client",
3
3
  "description": "Datalynk client library",
4
4
  "repository": "https://gitlab.auxiliumgroup.com/auxilium/datalynk/datalynk-client",
5
- "version": "1.2.6",
5
+ "version": "1.2.8",
6
6
  "author": "Zak Timson <zaktimson@gmail.com>",
7
7
  "private": false,
8
8
  "main": "./dist/index.cjs",