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
@@ -4008,7 +4008,7 @@ class CometdAdapter {
4008
4008
  constructor() {
4009
4009
  _defineProperty(this, "url", '');
4010
4010
 
4011
- _defineProperty(this, "initialization", false);
4011
+ _defineProperty(this, "initialization", undefined);
4012
4012
 
4013
4013
  _defineProperty(this, "subscriptions", new Map());
4014
4014
 
@@ -4032,9 +4032,9 @@ class CometdAdapter {
4032
4032
  if (!enabled) throw new EpicenterError('Push Channels are not enabled on this project');
4033
4033
  const {
4034
4034
  CometD
4035
- } = await import('./cometd-cc43bd43.js').then(function (n) { return n.c; });
4036
- const AckExtension = (await import('./AckExtension-d846f748.js').then(function (n) { return n.A; })).default;
4037
- const ReloadExtension = (await import('./ReloadExtension-fe0c7815.js').then(function (n) { return n.R; })).default;
4035
+ } = await import('./cometd-71037296.js').then(function (n) { return n.c; });
4036
+ const AckExtension = (await import('./AckExtension-e3099151.js').then(function (n) { return n.A; })).default;
4037
+ const ReloadExtension = (await import('./ReloadExtension-120e26e2.js').then(function (n) { return n.R; })).default;
4038
4038
  this.cometd = new CometD();
4039
4039
  const {
4040
4040
  apiProtocol,
@@ -4115,7 +4115,7 @@ class CometdAdapter {
4115
4115
 
4116
4116
  async init() {
4117
4117
  if (!this.initialization) {
4118
- this.initialization = await this.startup();
4118
+ this.initialization = this.startup();
4119
4119
  }
4120
4120
 
4121
4121
  return this.initialization;
@@ -8873,11 +8873,14 @@ async function createToken(room_name, optionals = {}) {
8873
8873
  exp,
8874
8874
  enable_recording,
8875
8875
  disableRateLimitHandling,
8876
+ selfSign = true,
8876
8877
  ...routingOptions
8877
8878
  } = optionals;
8878
8879
 
8879
8880
  const callAPI = async () => {
8880
- return await new Router().post('/daily/v1/meetingToken', {
8881
+ return await new Router().withSearchParams({
8882
+ selfSign
8883
+ }).post('/daily/v1/meetingToken', {
8881
8884
  body: {
8882
8885
  properties: {
8883
8886
  room_name,
@@ -9046,9 +9049,9 @@ var utilities = /*#__PURE__*/Object.freeze({
9046
9049
  });
9047
9050
 
9048
9051
  /* yes, this string template literal is weird;
9049
- * it's cause rollup does not recogize 3.23.1 as an individual token otherwise */
9052
+ * it's cause rollup does not recogize 3.23.2 as an individual token otherwise */
9050
9053
 
9051
- const version = "Epicenter (v".concat('3.23.1', ") for Module | Build Date: 2023-07-20T21:39:29.532Z");
9054
+ const version = "Epicenter (v".concat('3.23.2', ") for Module | Build Date: 2023-10-04T22:18:00.257Z");
9052
9055
  const UNAUTHORIZED = 401;
9053
9056
  const FORBIDDEN = 403;
9054
9057
  errorManager.registerHandler(error => error.code === 'COMETD_RECONNECTED', async error => {
@@ -9102,4 +9105,4 @@ errorManager.registerHandler(error => error.status === UNAUTHORIZED && error.cod
9102
9105
  });
9103
9106
 
9104
9107
  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 };
9105
- //# sourceMappingURL=epicenter-b93d398b.js.map
9108
+ //# sourceMappingURL=epicenter-be727030.js.map