@quenty/servicebag 3.4.1-canary.4c04014.0 → 4.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,7 +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
- ## [3.4.1-canary.4c04014.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@3.4.0...@quenty/servicebag@3.4.1-canary.4c04014.0) (2022-01-17)
6
+ # [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@3.5.0...@quenty/servicebag@4.0.0) (2022-03-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * ServiceBag:HasService allows for serviceType definitions that are instances ([cf772a9](https://github.com/Quenty/NevermoreEngine/commit/cf772a9dfc17178dc90fb26c9e5a091f84d00a90))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/servicebag@3.4.0...@quenty/servicebag@3.5.0) (2022-01-17)
7
18
 
8
19
 
9
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/servicebag",
3
- "version": "3.4.1-canary.4c04014.0",
3
+ "version": "4.0.0",
4
4
  "description": "Service providing mechanisms for Nevermore",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,12 +26,12 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/baseobject": "3.4.1-canary.4c04014.0",
30
- "@quenty/loader": "3.3.1-canary.4c04014.0",
31
- "@quenty/signal": "2.1.0"
29
+ "@quenty/baseobject": "^4.0.0",
30
+ "@quenty/loader": "^4.0.0",
31
+ "@quenty/signal": "^2.1.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "4c040145693283525ba3f4c793cead7abee28fb2"
36
+ "gitHead": "dd428cab58282c975a4c082957dc8f58e3186905"
37
37
  }
@@ -115,6 +115,10 @@ end
115
115
  @return boolean
116
116
  ]=]
117
117
  function ServiceBag:HasService(serviceType)
118
+ if typeof(serviceType) == "Instance" then
119
+ serviceType = require(serviceType)
120
+ end
121
+
118
122
  if self._services[serviceType] then
119
123
  return true
120
124
  else