@threadbase-sh/streamer 1.54.0 → 1.54.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/dist/index.js CHANGED
@@ -3966,14 +3966,15 @@ var FULL_CAPABILITIES = [
3966
3966
  "session:control",
3967
3967
  "fs:browse",
3968
3968
  "fs:upload",
3969
- "notifications"
3969
+ "notifications",
3970
+ "admin"
3970
3971
  ];
3971
3972
  var READ_ONLY_CAPABILITIES = ["history:read"];
3972
3973
  function capabilitiesForPreset(preset) {
3973
3974
  return preset === "read-only" ? [...READ_ONLY_CAPABILITIES] : [...FULL_CAPABILITIES];
3974
3975
  }
3975
3976
  function legacyPrincipal() {
3976
- return { kind: "legacy", capabilities: [...FULL_CAPABILITIES, "admin"] };
3977
+ return { kind: "legacy", capabilities: [...FULL_CAPABILITIES] };
3977
3978
  }
3978
3979
  function hasCapability(principal, required) {
3979
3980
  return principal.capabilities.includes(required);