epicenter-libs 3.23.2 → 3.23.3

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/browser/{AckExtension-263b8630.js → AckExtension-2171c7cf.js} +3 -3
  3. package/dist/{module/AckExtension-d846f748.js.map → browser/AckExtension-2171c7cf.js.map} +1 -1
  4. package/dist/{module/ReloadExtension-fe0c7815.js → browser/ReloadExtension-5abe7eca.js} +3 -3
  5. package/dist/{module/ReloadExtension-fe0c7815.js.map → browser/ReloadExtension-5abe7eca.js.map} +1 -1
  6. package/dist/browser/{cometd-9f5a5308.js → cometd-7165bc34.js} +2 -2
  7. package/dist/browser/{cometd-9f5a5308.js.map → cometd-7165bc34.js.map} +1 -1
  8. package/dist/browser/{epicenter-2edde226.js → epicenter-afe27bba.js} +12 -9
  9. package/dist/browser/epicenter-afe27bba.js.map +1 -0
  10. package/dist/browser/epicenter.js +1 -1
  11. package/dist/cjs/{AckExtension-bacc5faf.js → AckExtension-1c90a7b2.js} +3 -3
  12. package/dist/cjs/{AckExtension-bacc5faf.js.map → AckExtension-1c90a7b2.js.map} +1 -1
  13. package/dist/cjs/{ReloadExtension-77012f25.js → ReloadExtension-33ce01a1.js} +3 -3
  14. package/dist/cjs/{ReloadExtension-77012f25.js.map → ReloadExtension-33ce01a1.js.map} +1 -1
  15. package/dist/cjs/{cometd-22110d8c.js → cometd-fa842498.js} +2 -2
  16. package/dist/cjs/{cometd-22110d8c.js.map → cometd-fa842498.js.map} +1 -1
  17. package/dist/cjs/{epicenter-df8a7174.js → epicenter-34397f3f.js} +12 -9
  18. package/dist/cjs/epicenter-34397f3f.js.map +1 -0
  19. package/dist/cjs/epicenter.js +1 -1
  20. package/dist/epicenter.js +8 -5
  21. package/dist/epicenter.js.map +1 -1
  22. package/dist/epicenter.min.js +1 -1
  23. package/dist/epicenter.min.js.map +1 -1
  24. package/dist/module/{AckExtension-d846f748.js → AckExtension-e3099151.js} +3 -3
  25. package/dist/{browser/AckExtension-263b8630.js.map → module/AckExtension-e3099151.js.map} +1 -1
  26. package/dist/{browser/ReloadExtension-3a311aaf.js → module/ReloadExtension-120e26e2.js} +3 -3
  27. package/dist/{browser/ReloadExtension-3a311aaf.js.map → module/ReloadExtension-120e26e2.js.map} +1 -1
  28. package/dist/module/{cometd-cc43bd43.js → cometd-71037296.js} +2 -2
  29. package/dist/module/{cometd-cc43bd43.js.map → cometd-71037296.js.map} +1 -1
  30. package/dist/module/{epicenter-b93d398b.js → epicenter-be727030.js} +12 -9
  31. package/dist/module/epicenter-be727030.js.map +1 -0
  32. package/dist/module/epicenter.js +1 -1
  33. package/dist/types/adapters/cometd.d.ts +1 -1
  34. package/dist/types/adapters/daily.d.ts +1 -0
  35. package/package.json +1 -1
  36. package/src/adapters/cometd.ts +2 -2
  37. package/src/adapters/daily.ts +3 -0
  38. package/dist/browser/epicenter-2edde226.js.map +0 -1
  39. package/dist/cjs/epicenter-df8a7174.js.map +0 -1
  40. package/dist/module/epicenter-b93d398b.js.map +0 -1
@@ -2881,7 +2881,7 @@ class CometdAdapter {
2881
2881
  constructor() {
2882
2882
  _defineProperty(this, "url", '');
2883
2883
 
2884
- _defineProperty(this, "initialization", false);
2884
+ _defineProperty(this, "initialization", undefined);
2885
2885
 
2886
2886
  _defineProperty(this, "subscriptions", new Map());
2887
2887
 
@@ -2905,9 +2905,9 @@ class CometdAdapter {
2905
2905
  if (!enabled) throw new EpicenterError('Push Channels are not enabled on this project');
2906
2906
  const {
2907
2907
  CometD
2908
- } = await import('./cometd-9f5a5308.js').then(function (n) { return n.c; });
2909
- const AckExtension = (await import('./AckExtension-263b8630.js').then(function (n) { return n.A; })).default;
2910
- const ReloadExtension = (await import('./ReloadExtension-3a311aaf.js').then(function (n) { return n.R; })).default;
2908
+ } = await import('./cometd-7165bc34.js').then(function (n) { return n.c; });
2909
+ const AckExtension = (await import('./AckExtension-2171c7cf.js').then(function (n) { return n.A; })).default;
2910
+ const ReloadExtension = (await import('./ReloadExtension-5abe7eca.js').then(function (n) { return n.R; })).default;
2911
2911
  this.cometd = new CometD();
2912
2912
  const {
2913
2913
  apiProtocol,
@@ -2988,7 +2988,7 @@ class CometdAdapter {
2988
2988
 
2989
2989
  async init() {
2990
2990
  if (!this.initialization) {
2991
- this.initialization = await this.startup();
2991
+ this.initialization = this.startup();
2992
2992
  }
2993
2993
 
2994
2994
  return this.initialization;
@@ -7746,11 +7746,14 @@ async function createToken(room_name, optionals = {}) {
7746
7746
  exp,
7747
7747
  enable_recording,
7748
7748
  disableRateLimitHandling,
7749
+ selfSign = true,
7749
7750
  ...routingOptions
7750
7751
  } = optionals;
7751
7752
 
7752
7753
  const callAPI = async () => {
7753
- return await new Router().post('/daily/v1/meetingToken', {
7754
+ return await new Router().withSearchParams({
7755
+ selfSign
7756
+ }).post('/daily/v1/meetingToken', {
7754
7757
  body: {
7755
7758
  properties: {
7756
7759
  room_name,
@@ -7919,9 +7922,9 @@ var utilities = /*#__PURE__*/Object.freeze({
7919
7922
  });
7920
7923
 
7921
7924
  /* yes, this string template literal is weird;
7922
- * it's cause rollup does not recogize 3.23.1 as an individual token otherwise */
7925
+ * it's cause rollup does not recogize 3.23.2 as an individual token otherwise */
7923
7926
 
7924
- const version = "Epicenter (v".concat('3.23.1', ") for Browsers | Build Date: 2023-07-20T21:39:23.842Z");
7927
+ const version = "Epicenter (v".concat('3.23.2', ") for Browsers | Build Date: 2023-10-04T22:17:55.296Z");
7925
7928
  const UNAUTHORIZED = 401;
7926
7929
  const FORBIDDEN = 403;
7927
7930
  errorManager.registerHandler(error => error.code === 'COMETD_RECONNECTED', async error => {
@@ -7975,4 +7978,4 @@ errorManager.registerHandler(error => error.status === UNAUTHORIZED && error.cod
7975
7978
  });
7976
7979
 
7977
7980
  export { video as A, vonage as B, world as C, somebody as D, daily as E, Fault as F, matchmaker as G, Channel as H, video$1 as I, vonage$1 as J, PUSH_CATEGORY as P, RITUAL as R, SCOPE_BOUNDARY as S, commonjsGlobal as a, ROLE as b, createCommonjsModule as c, config as d, errorManager as e, Router as f, account as g, admin as h, asset as i, consensus as j, email as k, authentication as l, chat as m, episode as n, group as o, leaderboard as p, presence as q, project as r, recaptcha as s, run as t, utilities as u, version as v, task as w, time as x, user as y, vault as z };
7978
- //# sourceMappingURL=epicenter-2edde226.js.map
7981
+ //# sourceMappingURL=epicenter-afe27bba.js.map