@quenty/permissionprovider 12.0.0 → 13.0.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
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
# [13.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/permissionprovider@12.0.0...@quenty/permissionprovider@13.0.0) (2024-02-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix bootstrap of test environments and loader samples ([441e4a9](https://github.com/Quenty/NevermoreEngine/commit/441e4a90d19fcc203da2fdedc08e532c20d52f99))
|
|
12
|
+
* Fix loader issues ([4f02c27](https://github.com/Quenty/NevermoreEngine/commit/4f02c27e96314724c58778e8c113c0d362e16ae4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [12.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/permissionprovider@11.0.0...@quenty/permissionprovider@12.0.0) (2024-02-13)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @quenty/permissionprovider
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-2024 James Onnen (Quenty)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/permissionprovider",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Permission provider for Roblox, including authenticating against group membership",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "^
|
|
29
|
-
"@quenty/brio": "^
|
|
30
|
-
"@quenty/grouputils": "^
|
|
31
|
-
"@quenty/loader": "^
|
|
28
|
+
"@quenty/baseobject": "^9.0.0",
|
|
29
|
+
"@quenty/brio": "^13.0.0",
|
|
30
|
+
"@quenty/grouputils": "^9.0.0",
|
|
31
|
+
"@quenty/loader": "^9.0.0",
|
|
32
32
|
"@quenty/maid": "^3.0.0",
|
|
33
|
-
"@quenty/playerutils": "^
|
|
34
|
-
"@quenty/promise": "^
|
|
35
|
-
"@quenty/remoting": "^
|
|
36
|
-
"@quenty/rx": "^
|
|
37
|
-
"@quenty/servicebag": "^
|
|
33
|
+
"@quenty/playerutils": "^7.0.0",
|
|
34
|
+
"@quenty/promise": "^9.0.0",
|
|
35
|
+
"@quenty/remoting": "^11.0.0",
|
|
36
|
+
"@quenty/rx": "^12.0.0",
|
|
37
|
+
"@quenty/servicebag": "^10.0.0",
|
|
38
38
|
"@quenty/table": "^3.4.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "f113de0adce246ebd8115adf49a80533ede329cc"
|
|
44
44
|
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
@class ClientMain
|
|
3
3
|
]]
|
|
4
|
+
local loader = game:GetService("ReplicatedStorage"):WaitForChild("permissionprovider"):WaitForChild("loader")
|
|
5
|
+
local require = require(loader).bootstrapGame(loader.Parent)
|
|
4
6
|
|
|
5
|
-
local
|
|
6
|
-
|
|
7
|
-
local packages = ReplicatedStorage:WaitForChild("Packages")
|
|
8
|
-
local serviceBag = require(packages:FindFirstChild("ServiceBag", true)).new()
|
|
9
|
-
|
|
10
|
-
serviceBag:GetService(require(packages.PermissionServiceClient))
|
|
7
|
+
local serviceBag = require("ServiceBag").new()
|
|
8
|
+
serviceBag:GetService(require("PermissionServiceClient"))
|
|
11
9
|
serviceBag:Init()
|
|
12
10
|
serviceBag:Start()
|
|
13
11
|
|
|
14
|
-
serviceBag:GetService(require(
|
|
12
|
+
serviceBag:GetService(require("PermissionServiceClient")):PromisePermissionProvider()
|
|
15
13
|
:Then(function(permissionProvider)
|
|
16
14
|
return permissionProvider:PromiseIsAdmin()
|
|
17
15
|
end)
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
@class ServerMain
|
|
3
3
|
]]
|
|
4
|
-
|
|
5
|
-
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
|
6
4
|
local ServerScriptService = game:GetService("ServerScriptService")
|
|
7
5
|
|
|
8
|
-
local
|
|
9
|
-
|
|
10
|
-
local clientFolder, serverFolder, sharedFolder = LoaderUtils.toWallyFormat(ServerScriptService.permissionprovider)
|
|
11
|
-
clientFolder.Parent = ReplicatedStorage
|
|
12
|
-
sharedFolder.Parent = ReplicatedStorage
|
|
13
|
-
serverFolder.Parent = ServerScriptService
|
|
6
|
+
local loader = ServerScriptService:FindFirstChild("LoaderUtils", true).Parent
|
|
7
|
+
local require = require(loader).bootstrapGame(ServerScriptService.permissionprovider)
|
|
14
8
|
|
|
15
|
-
local serviceBag = require(
|
|
16
|
-
serviceBag:GetService(require(
|
|
9
|
+
local serviceBag = require("ServiceBag").new()
|
|
10
|
+
serviceBag:GetService(require("PermissionService"))
|
|
17
11
|
|
|
18
12
|
serviceBag:Init()
|
|
19
13
|
serviceBag:Start()
|