epicenter-libs 3.28.0 → 3.28.2
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/CHANGELOG.md +26 -0
- package/dist/browser/{AckExtension-1fe508aa.js → AckExtension-4ccb1b3b.js} +3 -3
- package/dist/{module/AckExtension-755114ce.js.map → browser/AckExtension-4ccb1b3b.js.map} +1 -1
- package/dist/{module/ReloadExtension-22370c97.js → browser/ReloadExtension-26e320cf.js} +3 -3
- package/dist/{module/ReloadExtension-22370c97.js.map → browser/ReloadExtension-26e320cf.js.map} +1 -1
- package/dist/browser/{cometd-95666f77.js → cometd-009d1cc7.js} +2 -2
- package/dist/browser/{cometd-95666f77.js.map → cometd-009d1cc7.js.map} +1 -1
- package/dist/browser/{epicenter-53acd5e1.js → epicenter-ffc2b7a7.js} +15 -8
- package/dist/browser/epicenter-ffc2b7a7.js.map +1 -0
- package/dist/browser/epicenter.js +1 -1
- package/dist/cjs/{AckExtension-da9f05ef.js → AckExtension-f8c57030.js} +3 -3
- package/dist/cjs/{AckExtension-da9f05ef.js.map → AckExtension-f8c57030.js.map} +1 -1
- package/dist/cjs/{ReloadExtension-72077f71.js → ReloadExtension-0d52f073.js} +3 -3
- package/dist/cjs/{ReloadExtension-72077f71.js.map → ReloadExtension-0d52f073.js.map} +1 -1
- package/dist/cjs/{cometd-bb7d98a6.js → cometd-369eb10e.js} +2 -2
- package/dist/cjs/{cometd-bb7d98a6.js.map → cometd-369eb10e.js.map} +1 -1
- package/dist/cjs/{epicenter-52f23ee7.js → epicenter-54f0befe.js} +15 -8
- package/dist/cjs/epicenter-54f0befe.js.map +1 -0
- package/dist/cjs/epicenter.js +1 -1
- package/dist/epicenter.js +12 -5
- package/dist/epicenter.js.map +1 -1
- package/dist/epicenter.min.js +1 -1
- package/dist/epicenter.min.js.map +1 -1
- package/dist/module/{AckExtension-755114ce.js → AckExtension-cd7b3bcb.js} +3 -3
- package/dist/{browser/AckExtension-1fe508aa.js.map → module/AckExtension-cd7b3bcb.js.map} +1 -1
- package/dist/{browser/ReloadExtension-51e9dfea.js → module/ReloadExtension-da4ee10c.js} +3 -3
- package/dist/{browser/ReloadExtension-51e9dfea.js.map → module/ReloadExtension-da4ee10c.js.map} +1 -1
- package/dist/module/{cometd-8498d64f.js → cometd-c640d287.js} +2 -2
- package/dist/module/{cometd-8498d64f.js.map → cometd-c640d287.js.map} +1 -1
- package/dist/module/{epicenter-46d3b19d.js → epicenter-e4a6d235.js} +15 -8
- package/dist/module/epicenter-e4a6d235.js.map +1 -0
- package/dist/module/epicenter.js +1 -1
- package/dist/types/adapters/world.d.ts +4 -0
- package/package.json +1 -1
- package/src/adapters/cometd.ts +2 -2
- package/src/adapters/world.ts +34 -9
- package/dist/browser/epicenter-53acd5e1.js.map +0 -1
- package/dist/cjs/epicenter-52f23ee7.js.map +0 -1
- package/dist/module/epicenter-46d3b19d.js.map +0 -1
|
@@ -4056,11 +4056,12 @@ class CometdAdapter {
|
|
|
4056
4056
|
const project = await get$d();
|
|
4057
4057
|
if (!project.channelEnabled) throw new EpicenterError('Push Channels are not enabled on this project');
|
|
4058
4058
|
const channelProtocol = ((_project$channelProto = project.channelProtocol) === null || _project$channelProto === void 0 ? void 0 : _project$channelProto.toLowerCase()) || DEFAULT_CHANNEL_PROTOCOL;
|
|
4059
|
+
const CometDImports = await import('./cometd-c640d287.js').then(function (n) { return n.c; });
|
|
4059
4060
|
const {
|
|
4060
4061
|
CometD
|
|
4061
|
-
} =
|
|
4062
|
-
const AckExtension = (await import('./AckExtension-
|
|
4063
|
-
const ReloadExtension = (await import('./ReloadExtension-
|
|
4062
|
+
} = CometDImports;
|
|
4063
|
+
const AckExtension = (await import('./AckExtension-cd7b3bcb.js').then(function (n) { return n.A; })).default;
|
|
4064
|
+
const ReloadExtension = (await import('./ReloadExtension-da4ee10c.js').then(function (n) { return n.R; })).default;
|
|
4064
4065
|
this.cometd = new CometD();
|
|
4065
4066
|
const {
|
|
4066
4067
|
apiProtocol,
|
|
@@ -7614,6 +7615,7 @@ async function getSessionWorlds(optionals = {}) {
|
|
|
7614
7615
|
* @param [optionals.populace[].minimum] The minimum number of users that required for this role
|
|
7615
7616
|
* @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
|
|
7616
7617
|
* @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
|
|
7618
|
+
* @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
|
|
7617
7619
|
* @returns promise that resolves to the world the user was assigned to
|
|
7618
7620
|
*/
|
|
7619
7621
|
|
|
@@ -7625,6 +7627,7 @@ async function selfAssign(optionals = {}) {
|
|
|
7625
7627
|
objective = OBJECTIVE.MINIMUM,
|
|
7626
7628
|
worldNameGenerator,
|
|
7627
7629
|
populace,
|
|
7630
|
+
allowChannel,
|
|
7628
7631
|
...routingOptions
|
|
7629
7632
|
} = optionals;
|
|
7630
7633
|
const session = identification.session;
|
|
@@ -7633,7 +7636,8 @@ async function selfAssign(optionals = {}) {
|
|
|
7633
7636
|
role,
|
|
7634
7637
|
objective,
|
|
7635
7638
|
worldNameGenerator,
|
|
7636
|
-
populace
|
|
7639
|
+
populace,
|
|
7640
|
+
allowChannel
|
|
7637
7641
|
},
|
|
7638
7642
|
...routingOptions
|
|
7639
7643
|
}).then(({
|
|
@@ -7666,6 +7670,7 @@ async function selfAssign(optionals = {}) {
|
|
|
7666
7670
|
* @param [optionals.populace[].minimum] The minimum number of users that required for this role
|
|
7667
7671
|
* @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
|
|
7668
7672
|
* @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
|
|
7673
|
+
* @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
|
|
7669
7674
|
* @returns promise that resolves to the list of worlds created by the assignment
|
|
7670
7675
|
*/
|
|
7671
7676
|
|
|
@@ -7678,6 +7683,7 @@ async function autoAssignUsers(assignments, optionals = {}) {
|
|
|
7678
7683
|
worldNameGenerator,
|
|
7679
7684
|
keepEmptyWorlds,
|
|
7680
7685
|
populace,
|
|
7686
|
+
allowChannel,
|
|
7681
7687
|
...routingOptions
|
|
7682
7688
|
} = optionals;
|
|
7683
7689
|
const session = identification.session;
|
|
@@ -7688,7 +7694,8 @@ async function autoAssignUsers(assignments, optionals = {}) {
|
|
|
7688
7694
|
requireAllAssignments,
|
|
7689
7695
|
worldNameGenerator,
|
|
7690
7696
|
keepEmptyWorlds,
|
|
7691
|
-
populace
|
|
7697
|
+
populace,
|
|
7698
|
+
allowChannel
|
|
7692
7699
|
},
|
|
7693
7700
|
...routingOptions
|
|
7694
7701
|
}).then(({
|
|
@@ -9274,9 +9281,9 @@ var utilities = /*#__PURE__*/Object.freeze({
|
|
|
9274
9281
|
});
|
|
9275
9282
|
|
|
9276
9283
|
/* yes, this string template literal is weird;
|
|
9277
|
-
* it's cause rollup does not recogize 3.28.
|
|
9284
|
+
* it's cause rollup does not recogize 3.28.1 as an individual token otherwise */
|
|
9278
9285
|
|
|
9279
|
-
const version = "Epicenter (v".concat('3.28.
|
|
9286
|
+
const version = "Epicenter (v".concat('3.28.1', ") for Module | Build Date: 2024-10-18T18:24:22.884Z");
|
|
9280
9287
|
const UNAUTHORIZED = 401;
|
|
9281
9288
|
const FORBIDDEN = 403;
|
|
9282
9289
|
const DEFAULT_ERROR_HANDLERS = {};
|
|
@@ -9332,4 +9339,4 @@ DEFAULT_ERROR_HANDLERS.authInvalidated = errorManager.registerHandler(error => e
|
|
|
9332
9339
|
Object.freeze(DEFAULT_ERROR_HANDLERS);
|
|
9333
9340
|
|
|
9334
9341
|
export { video as A, vonage as B, world as C, DEFAULT_ERROR_HANDLERS as D, somebody as E, Fault as F, daily as G, matchmaker as H, wallet as I, Channel as J, video$1 as K, vonage$1 as L, 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 };
|
|
9335
|
-
//# sourceMappingURL=epicenter-
|
|
9342
|
+
//# sourceMappingURL=epicenter-e4a6d235.js.map
|