@threadbase-sh/streamer 1.54.0 → 1.54.1
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/cli.cjs +3 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4019,14 +4019,15 @@ var FULL_CAPABILITIES = [
|
|
|
4019
4019
|
"session:control",
|
|
4020
4020
|
"fs:browse",
|
|
4021
4021
|
"fs:upload",
|
|
4022
|
-
"notifications"
|
|
4022
|
+
"notifications",
|
|
4023
|
+
"admin"
|
|
4023
4024
|
];
|
|
4024
4025
|
var READ_ONLY_CAPABILITIES = ["history:read"];
|
|
4025
4026
|
function capabilitiesForPreset(preset) {
|
|
4026
4027
|
return preset === "read-only" ? [...READ_ONLY_CAPABILITIES] : [...FULL_CAPABILITIES];
|
|
4027
4028
|
}
|
|
4028
4029
|
function legacyPrincipal() {
|
|
4029
|
-
return { kind: "legacy", capabilities: [...FULL_CAPABILITIES
|
|
4030
|
+
return { kind: "legacy", capabilities: [...FULL_CAPABILITIES] };
|
|
4030
4031
|
}
|
|
4031
4032
|
function hasCapability(principal, required) {
|
|
4032
4033
|
return principal.capabilities.includes(required);
|