@quenty/templateprovider 4.0.0 → 4.1.1-canary.256.8cd6f5a.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,25 @@
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
+ ## [4.1.1-canary.256.8cd6f5a.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/templateprovider@4.1.0...@quenty/templateprovider@4.1.1-canary.256.8cd6f5a.0) (2022-03-27)
7
+
8
+ **Note:** Version bump only for package @quenty/templateprovider
9
+
10
+
11
+
12
+
13
+
14
+ # [4.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/templateprovider@4.0.0...@quenty/templateprovider@4.1.0) (2022-03-10)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Make ModuleProvider work with loader ([97361ba](https://github.com/Quenty/NevermoreEngine/commit/97361ba14b02f4a911846147980d3099a028ddc4))
20
+
21
+
22
+
23
+
24
+
6
25
  # [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/templateprovider@3.8.0...@quenty/templateprovider@4.0.0) (2022-03-06)
7
26
 
8
27
  **Note:** Version bump only for package @quenty/templateprovider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/templateprovider",
3
- "version": "4.0.0",
3
+ "version": "4.1.1-canary.256.8cd6f5a.0",
4
4
  "description": "Base of a template retrieval system",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,15 +25,15 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^4.0.0",
29
- "@quenty/insertserviceutils": "^4.0.0",
30
- "@quenty/loader": "^4.0.0",
31
- "@quenty/maid": "^2.1.0",
32
- "@quenty/promise": "^4.0.0",
33
- "@quenty/string": "^2.2.1"
28
+ "@quenty/baseobject": "4.1.1-canary.256.8cd6f5a.0",
29
+ "@quenty/insertserviceutils": "4.1.1-canary.256.8cd6f5a.0",
30
+ "@quenty/loader": "4.0.1-canary.256.8cd6f5a.0",
31
+ "@quenty/maid": "2.2.1-canary.256.8cd6f5a.0",
32
+ "@quenty/promise": "4.1.1-canary.256.8cd6f5a.0",
33
+ "@quenty/string": "2.2.2-canary.256.8cd6f5a.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "dd428cab58282c975a4c082957dc8f58e3186905"
38
+ "gitHead": "8cd6f5a870e3e400eb53d147873062111e6ae8ed"
39
39
  }
@@ -75,6 +75,13 @@ function ModuleProvider:_addToRegistery(moduleScript)
75
75
  :format(moduleScript.Name))
76
76
  end
77
77
 
78
+ if not moduleScript.Parent:FindFirstChild("loader") then
79
+ local fakeLoader = script.Parent.ModuleProviderFakeLoader:Clone()
80
+ fakeLoader.Name = "loader"
81
+ fakeLoader.Archivable = false
82
+ fakeLoader.Parent = moduleScript.Parent
83
+ end
84
+
78
85
  local _module
79
86
  xpcall(function()
80
87
  _module = require(moduleScript)
@@ -0,0 +1,16 @@
1
+ --[=[
2
+ Creates a service that provides modules from a parent module, either by name, or by list!
3
+ @class ModuleProviderFakeLoader
4
+ ]=]
5
+
6
+ local function load(script)
7
+ local moduleProvider = script:FindFirstAncestorWhichIsA("ModuleScript")
8
+ assert(moduleProvider, "No moduleProvider")
9
+
10
+ local loader = require(moduleProvider.Parent.loader)
11
+ return loader.load(moduleProvider)
12
+ end
13
+
14
+ return {
15
+ load = load
16
+ }