@quenty/servicebag 11.5.0 → 11.5.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/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
+ ## [11.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@11.5.0...@quenty/servicebag@11.5.1) (2024-09-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Better error for serviceType ([e9a34f9](https://github.com/Quenty/NevermoreEngine/commit/e9a34f9e6f17bb6abd080fe23f88c2ab7b7bbe16))
12
+
13
+
14
+
15
+
16
+
6
17
  # [11.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@11.4.0...@quenty/servicebag@11.5.0) (2024-09-12)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/servicebag",
3
- "version": "11.5.0",
3
+ "version": "11.5.1",
4
4
  "description": "Service providing mechanisms for Nevermore",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
36
+ "gitHead": "a0dc70feb2e9ae87eccca4193951975ff59b7aae"
37
37
  }
@@ -100,7 +100,9 @@ function ServiceBag:GetService(serviceType)
100
100
  serviceType = require(serviceType)
101
101
  end
102
102
 
103
- assert(type(serviceType) == "table", "Bad serviceType definition")
103
+ if type(serviceType) ~= "table" then
104
+ error(string.format("Bad serviceType definition of type %s of type %s", tostring(serviceType), typeof(serviceType)))
105
+ end
104
106
 
105
107
  local service = self._services[serviceType]
106
108
  if service then