@holo-js/flux 0.2.6 → 0.3.0

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 (2) hide show
  1. package/dist/index.mjs +1 -10
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -274,9 +274,6 @@ function hasExplicitHoloWebSocketConnectorOptions(options) {
274
274
  return typeof options.key !== "undefined" || typeof options.host !== "undefined" || typeof options.port !== "undefined" || typeof options.path !== "undefined" || typeof options.scheme !== "undefined" || typeof options.authEndpoint !== "undefined";
275
275
  }
276
276
  async function resolveHoloWebSocketConnectorOptions(options, globals) {
277
- if (!canDiscoverHoloWebSocketConnectorOptions(globals)) {
278
- return options;
279
- }
280
277
  try {
281
278
  const response = await globals.fetch(options.configEndpoint ?? "/broadcasting/config", {
282
279
  headers: {
@@ -350,13 +347,7 @@ function createHoloWebSocketConnector(options = {}) {
350
347
  }
351
348
  };
352
349
  const authorizeSubscription = async (state) => {
353
- if (state.kind === "public") {
354
- return Object.freeze({});
355
- }
356
- const endpoint = resolvedOptions?.authEndpoint;
357
- if (!endpoint) {
358
- return Object.freeze({});
359
- }
350
+ const endpoint = resolvedOptions.authEndpoint;
360
351
  const globals = globalThis;
361
352
  if (!globals.fetch) {
362
353
  throw new Error("[@holo-js/flux] Private channel authorization requires fetch support in this runtime.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holo-js/flux",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "description": "Holo-JS Framework - framework-agnostic realtime client skeleton for broadcast and presence",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  "test": "vitest --run"
24
24
  },
25
25
  "dependencies": {
26
- "@holo-js/broadcast": "^0.2.6"
26
+ "@holo-js/broadcast": "^0.3.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.10.2",