@quenty/permissionprovider 14.1.0 → 14.2.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.
- package/CHANGELOG.md +11 -0
- package/package.json +3 -3
- package/src/Client/PermissionServiceClient.lua +11 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [14.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/permissionprovider@14.1.0...@quenty/permissionprovider@14.2.0) (2024-03-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Update avatar editor stuff ([16d10a8](https://github.com/Quenty/NevermoreEngine/commit/16d10a876c90d3b43d69b5f66e217e4c3749296b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [14.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/permissionprovider@14.0.0...@quenty/permissionprovider@14.1.0) (2024-03-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/permissionprovider
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/permissionprovider",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.2.0",
|
|
4
4
|
"description": "Permission provider for Roblox, including authenticating against group membership",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@quenty/maid": "^3.1.0",
|
|
33
33
|
"@quenty/playerutils": "^8.1.0",
|
|
34
34
|
"@quenty/promise": "^10.1.0",
|
|
35
|
-
"@quenty/remoting": "^12.
|
|
35
|
+
"@quenty/remoting": "^12.2.0",
|
|
36
36
|
"@quenty/rx": "^13.1.0",
|
|
37
37
|
"@quenty/servicebag": "^11.1.0",
|
|
38
38
|
"@quenty/table": "^3.4.0"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ab3631a54c4e8d448b4229c7e422a9c7f43c0dd7"
|
|
44
44
|
}
|
|
@@ -14,15 +14,20 @@ local require = require(script.Parent.loader).load(script)
|
|
|
14
14
|
local PermissionProviderConstants = require("PermissionProviderConstants")
|
|
15
15
|
local PermissionProviderClient = require("PermissionProviderClient")
|
|
16
16
|
local Promise = require("Promise")
|
|
17
|
+
local Maid = require("Maid")
|
|
17
18
|
|
|
18
19
|
local PermissionServiceClient = {}
|
|
19
20
|
PermissionServiceClient.ServiceName = "PermissionServiceClient"
|
|
20
21
|
|
|
21
22
|
--[=[
|
|
22
23
|
Initializes the permission service on the client. Should be done via [ServiceBag].
|
|
23
|
-
@param
|
|
24
|
+
@param serviceBag ServiceBag
|
|
24
25
|
]=]
|
|
25
|
-
function PermissionServiceClient:Init(
|
|
26
|
+
function PermissionServiceClient:Init(serviceBag)
|
|
27
|
+
assert(not self._serviceBag, "Already initialized")
|
|
28
|
+
self._serviceBag = assert(serviceBag, "no serviceBag")
|
|
29
|
+
self._maid = Maid.new()
|
|
30
|
+
|
|
26
31
|
self._providerPromise = Promise.resolved(PermissionProviderClient.new(PermissionProviderConstants.DEFAULT_REMOTE_FUNCTION_NAME))
|
|
27
32
|
end
|
|
28
33
|
|
|
@@ -49,4 +54,8 @@ function PermissionServiceClient:PromisePermissionProvider()
|
|
|
49
54
|
return self._providerPromise
|
|
50
55
|
end
|
|
51
56
|
|
|
57
|
+
function PermissionServiceClient:Destroy()
|
|
58
|
+
self._maid:DoCleaning()
|
|
59
|
+
end
|
|
60
|
+
|
|
52
61
|
return PermissionServiceClient
|