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
|
@@ -4066,11 +4066,12 @@ class CometdAdapter {
|
|
|
4066
4066
|
const project = await get$d();
|
|
4067
4067
|
if (!project.channelEnabled) throw new EpicenterError('Push Channels are not enabled on this project');
|
|
4068
4068
|
const channelProtocol = ((_project$channelProto = project.channelProtocol) === null || _project$channelProto === void 0 ? void 0 : _project$channelProto.toLowerCase()) || DEFAULT_CHANNEL_PROTOCOL;
|
|
4069
|
+
const CometDImports = await Promise.resolve().then(function () { return require('./cometd-369eb10e.js'); }).then(function (n) { return n.cometd; });
|
|
4069
4070
|
const {
|
|
4070
4071
|
CometD
|
|
4071
|
-
} =
|
|
4072
|
-
const AckExtension = (await Promise.resolve().then(function () { return require('./AckExtension-
|
|
4073
|
-
const ReloadExtension = (await Promise.resolve().then(function () { return require('./ReloadExtension-
|
|
4072
|
+
} = CometDImports;
|
|
4073
|
+
const AckExtension = (await Promise.resolve().then(function () { return require('./AckExtension-f8c57030.js'); }).then(function (n) { return n.AckExtension; })).default;
|
|
4074
|
+
const ReloadExtension = (await Promise.resolve().then(function () { return require('./ReloadExtension-0d52f073.js'); }).then(function (n) { return n.ReloadExtension; })).default;
|
|
4074
4075
|
this.cometd = new CometD();
|
|
4075
4076
|
const {
|
|
4076
4077
|
apiProtocol,
|
|
@@ -7624,6 +7625,7 @@ async function getSessionWorlds(optionals = {}) {
|
|
|
7624
7625
|
* @param [optionals.populace[].minimum] The minimum number of users that required for this role
|
|
7625
7626
|
* @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
|
|
7626
7627
|
* @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
|
|
7628
|
+
* @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
|
|
7627
7629
|
* @returns promise that resolves to the world the user was assigned to
|
|
7628
7630
|
*/
|
|
7629
7631
|
|
|
@@ -7635,6 +7637,7 @@ async function selfAssign(optionals = {}) {
|
|
|
7635
7637
|
objective = OBJECTIVE.MINIMUM,
|
|
7636
7638
|
worldNameGenerator,
|
|
7637
7639
|
populace,
|
|
7640
|
+
allowChannel,
|
|
7638
7641
|
...routingOptions
|
|
7639
7642
|
} = optionals;
|
|
7640
7643
|
const session = identification.session;
|
|
@@ -7643,7 +7646,8 @@ async function selfAssign(optionals = {}) {
|
|
|
7643
7646
|
role,
|
|
7644
7647
|
objective,
|
|
7645
7648
|
worldNameGenerator,
|
|
7646
|
-
populace
|
|
7649
|
+
populace,
|
|
7650
|
+
allowChannel
|
|
7647
7651
|
},
|
|
7648
7652
|
...routingOptions
|
|
7649
7653
|
}).then(({
|
|
@@ -7676,6 +7680,7 @@ async function selfAssign(optionals = {}) {
|
|
|
7676
7680
|
* @param [optionals.populace[].minimum] The minimum number of users that required for this role
|
|
7677
7681
|
* @param [optionals.populace[].maximum] The maximum number of users that can be assigned to this role
|
|
7678
7682
|
* @param [optionals.populace[].marginal] The maximum number of users that can be assigned to this role when using objective MARGINAL
|
|
7683
|
+
* @param [optionals.allowChannel] Opt into push notifications for this resource. Applicable to projects with phylogeny >= SILENT
|
|
7679
7684
|
* @returns promise that resolves to the list of worlds created by the assignment
|
|
7680
7685
|
*/
|
|
7681
7686
|
|
|
@@ -7688,6 +7693,7 @@ async function autoAssignUsers(assignments, optionals = {}) {
|
|
|
7688
7693
|
worldNameGenerator,
|
|
7689
7694
|
keepEmptyWorlds,
|
|
7690
7695
|
populace,
|
|
7696
|
+
allowChannel,
|
|
7691
7697
|
...routingOptions
|
|
7692
7698
|
} = optionals;
|
|
7693
7699
|
const session = identification.session;
|
|
@@ -7698,7 +7704,8 @@ async function autoAssignUsers(assignments, optionals = {}) {
|
|
|
7698
7704
|
requireAllAssignments,
|
|
7699
7705
|
worldNameGenerator,
|
|
7700
7706
|
keepEmptyWorlds,
|
|
7701
|
-
populace
|
|
7707
|
+
populace,
|
|
7708
|
+
allowChannel
|
|
7702
7709
|
},
|
|
7703
7710
|
...routingOptions
|
|
7704
7711
|
}).then(({
|
|
@@ -9284,9 +9291,9 @@ var utilities = /*#__PURE__*/Object.freeze({
|
|
|
9284
9291
|
});
|
|
9285
9292
|
|
|
9286
9293
|
/* yes, this string template literal is weird;
|
|
9287
|
-
* it's cause rollup does not recogize 3.28.
|
|
9294
|
+
* it's cause rollup does not recogize 3.28.1 as an individual token otherwise */
|
|
9288
9295
|
|
|
9289
|
-
const version = "Epicenter (v".concat('3.28.
|
|
9296
|
+
const version = "Epicenter (v".concat('3.28.1', ") for Module | Build Date: 2024-10-18T18:24:22.884Z");
|
|
9290
9297
|
const UNAUTHORIZED = 401;
|
|
9291
9298
|
const FORBIDDEN = 403;
|
|
9292
9299
|
const DEFAULT_ERROR_HANDLERS = {};
|
|
@@ -9378,4 +9385,4 @@ exports.vonage = vonage;
|
|
|
9378
9385
|
exports.vonage$1 = vonage$1;
|
|
9379
9386
|
exports.wallet = wallet;
|
|
9380
9387
|
exports.world = world;
|
|
9381
|
-
//# sourceMappingURL=epicenter-
|
|
9388
|
+
//# sourceMappingURL=epicenter-54f0befe.js.map
|