@quenty/cmdrservice 13.22.0 → 13.22.2-canary.547.11ae689.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,29 @@
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.22.2-canary.547.11ae689.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cmdrservice@13.22.0...@quenty/cmdrservice@13.22.2-canary.547.11ae689.0) (2025-04-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
12
+ * Bump package versions for republishing ([ba47c62](https://github.com/Quenty/NevermoreEngine/commit/ba47c62e32170bf74377b0c658c60b84306dc294))
13
+
14
+
15
+
16
+
17
+
18
+ ## [13.22.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cmdrservice@13.22.0...@quenty/cmdrservice@13.22.1) (2025-04-07)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
24
+
25
+
26
+
27
+
28
+
6
29
  # [13.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/cmdrservice@13.21.4...@quenty/cmdrservice@13.22.0) (2025-04-02)
7
30
 
8
31
  **Note:** Version bump only for package @quenty/cmdrservice
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2024 James Onnen (Quenty)
3
+ Copyright (c) 2014-2025 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/cmdrservice",
3
- "version": "13.22.0",
3
+ "version": "13.22.2-canary.547.11ae689.0",
4
4
  "description": "Bridge between cmdr and Nevermore services using servicebag",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,18 +25,18 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "^10.8.0",
29
- "@quenty/maid": "^3.4.0",
30
- "@quenty/permissionprovider": "^14.19.0",
31
- "@quenty/promise": "^10.10.1",
32
- "@quenty/remoting": "^12.18.0",
33
- "@quenty/servicebag": "^11.11.1",
34
- "@quenty/string": "^3.3.1",
35
- "@quenty/templateprovider": "^11.18.0",
28
+ "@quenty/loader": "10.8.2-canary.547.11ae689.0",
29
+ "@quenty/maid": "3.4.2-canary.547.11ae689.0",
30
+ "@quenty/permissionprovider": "14.19.2-canary.547.11ae689.0",
31
+ "@quenty/promise": "10.10.3-canary.547.11ae689.0",
32
+ "@quenty/remoting": "12.18.2-canary.547.11ae689.0",
33
+ "@quenty/servicebag": "11.11.3-canary.547.11ae689.0",
34
+ "@quenty/string": "3.3.3-canary.547.11ae689.0",
35
+ "@quenty/templateprovider": "11.18.2-canary.547.11ae689.0",
36
36
  "@quentystudios/cmdr": "^1.12.0-quenty.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "e8ea56930e65322fcffc05a1556d5df988068f0b"
41
+ "gitHead": "11ae6894c9c40c596e521dc1d2a71977af63752f"
42
42
  }
@@ -17,6 +17,7 @@ local Promise = require("Promise")
17
17
  local promiseChild = require("promiseChild")
18
18
  local PromiseUtils = require("PromiseUtils")
19
19
  local String = require("String")
20
+ local _ServiceBag = require("ServiceBag")
20
21
 
21
22
  local CmdrServiceClient = {}
22
23
  CmdrServiceClient.ServiceName = "CmdrServiceClient"
@@ -25,7 +26,7 @@ CmdrServiceClient.ServiceName = "CmdrServiceClient"
25
26
  Starts the cmdr service on the client. Should be done via [ServiceBag].
26
27
  @param serviceBag ServiceBag
27
28
  ]=]
28
- function CmdrServiceClient:Init(serviceBag)
29
+ function CmdrServiceClient:Init(serviceBag: _ServiceBag.ServiceBag)
29
30
  assert(not self._serviceBag, "Already initialized")
30
31
  self._serviceBag = assert(serviceBag, "No serviceBag")
31
32
  self._maid = Maid.new()
@@ -15,17 +15,18 @@ local CmdrTemplateProviderServer = require("CmdrTemplateProviderServer")
15
15
  local Promise = require("Promise")
16
16
  local Maid = require("Maid")
17
17
  local PermissionService = require("PermissionService")
18
+ local _ServiceBag = require("ServiceBag")
18
19
 
19
20
  local CmdrService = {}
20
21
  CmdrService.ServiceName = "CmdrService"
21
22
 
22
- local GLOBAL_REGISTRY = setmetatable({}, {__mode = "kv"})
23
+ local GLOBAL_REGISTRY = setmetatable({}, { __mode = "kv" })
23
24
 
24
25
  --[=[
25
26
  Initializes the CmdrService. Should be done via [ServiceBag].
26
27
  @param serviceBag ServiceBag
27
28
  ]=]
28
- function CmdrService:Init(serviceBag)
29
+ function CmdrService:Init(serviceBag: _ServiceBag.ServiceBag)
29
30
  assert(not self._serviceBag, "Already initialized")
30
31
  self._maid = Maid.new()
31
32
  self._serviceBag = assert(serviceBag, "No serviceBag")
@@ -152,15 +153,13 @@ function CmdrService:RegisterCommand(commandData, execute)
152
153
  end)
153
154
  end
154
155
 
155
-
156
-
157
156
  --[=[
158
157
  Private function used by the execution template to retrieve the execution function.
159
158
  @param cmdrCommandId string
160
159
  @param ... any
161
160
  @private
162
161
  ]=]
163
- function CmdrService:__executeCommand(cmdrCommandId, ...)
162
+ function CmdrService:__executeCommand(cmdrCommandId: string, ...)
164
163
  assert(type(cmdrCommandId) == "string", "Bad cmdrCommandId")
165
164
  assert(self._promiseCmdr, "CmdrService is not initialized yet")
166
165
 
@@ -179,7 +178,7 @@ end
179
178
  @return CmdrService
180
179
  @private
181
180
  ]=]
182
- function CmdrService:__getServiceFromId(cmdrServiceId)
181
+ function CmdrService:__getServiceFromId(cmdrServiceId: string)
183
182
  assert(type(cmdrServiceId) == "string", "Bad cmdrServiceId")
184
183
 
185
184
  return GLOBAL_REGISTRY[cmdrServiceId]
@@ -25,7 +25,7 @@ serviceBag:GetService(require("CmdrService")):RegisterCommand({
25
25
  },
26
26
  };
27
27
  }, function(_context, players)
28
- for _, player in pairs(players) do
28
+ for _, player in players do
29
29
  local humanoid = player.Character and player.Character:FindFirstChildWhichIsA("Humanoid")
30
30
  local humanoidRootPart = humanoid and humanoid.RootPart
31
31
  if humanoidRootPart then