@quenty/templateprovider 11.4.0 → 11.4.1-canary.497.2df557a.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,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.4.1-canary.497.2df557a.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/templateprovider@11.4.0...@quenty/templateprovider@11.4.1-canary.497.2df557a.0) (2024-09-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Rename stragglers ([25c8512](https://github.com/Quenty/NevermoreEngine/commit/25c85124769eb0c92ad4d4c51bc950d9c319c994))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [11.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/templateprovider@11.3.0...@quenty/templateprovider@11.4.0) (2024-09-12)
|
|
7
18
|
|
|
8
19
|
**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": "11.4.0",
|
|
3
|
+
"version": "11.4.1-canary.497.2df557a.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": "
|
|
29
|
-
"@quenty/insertserviceutils": "
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/maid": "
|
|
32
|
-
"@quenty/promise": "
|
|
33
|
-
"@quenty/string": "
|
|
28
|
+
"@quenty/baseobject": "10.4.1-canary.497.2df557a.0",
|
|
29
|
+
"@quenty/insertserviceutils": "10.4.1-canary.497.2df557a.0",
|
|
30
|
+
"@quenty/loader": "10.4.1-canary.497.2df557a.0",
|
|
31
|
+
"@quenty/maid": "3.3.0",
|
|
32
|
+
"@quenty/promise": "10.4.1-canary.497.2df557a.0",
|
|
33
|
+
"@quenty/string": "3.2.1-canary.497.2df557a.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "2df557a9a5463c2c7beb257ff9f7786ac8ad746a"
|
|
39
39
|
}
|
|
@@ -72,8 +72,7 @@ end
|
|
|
72
72
|
|
|
73
73
|
function ModuleProvider:_addToRegistery(moduleScript)
|
|
74
74
|
if self._registry[moduleScript.Name] then
|
|
75
|
-
error(("[ModuleProvider._addToRegistery] - Duplicate %q in registery")
|
|
76
|
-
:format(moduleScript.Name))
|
|
75
|
+
error(string.format("[ModuleProvider._addToRegistery] - Duplicate %q in registery", moduleScript.Name))
|
|
77
76
|
end
|
|
78
77
|
|
|
79
78
|
if not moduleScript.Parent:FindFirstChild("loader") then
|
|
@@ -87,15 +86,13 @@ function ModuleProvider:_addToRegistery(moduleScript)
|
|
|
87
86
|
xpcall(function()
|
|
88
87
|
_module = require(moduleScript)
|
|
89
88
|
end, function(err)
|
|
90
|
-
error(("[ModuleProvider._addToRegistery] - Failed to load %q due to %q")
|
|
91
|
-
:format(moduleScript:GetFullName(), tostring(err)))
|
|
89
|
+
error(string.format("[ModuleProvider._addToRegistery] - Failed to load %q due to %q", moduleScript:GetFullName(), tostring(err)))
|
|
92
90
|
end)
|
|
93
91
|
|
|
94
92
|
if self._checkModule then
|
|
95
93
|
local ok, err = self._checkModule(_module, moduleScript)
|
|
96
94
|
if not ok then
|
|
97
|
-
error(("[ModuleProvider] - Bad module %q - %q")
|
|
98
|
-
:format(moduleScript:GetFullName(), tostring(err)))
|
|
95
|
+
error(string.format("[ModuleProvider] - Bad module %q - %q", moduleScript:GetFullName(), tostring(err)))
|
|
99
96
|
end
|
|
100
97
|
end
|
|
101
98
|
|
|
@@ -16,7 +16,7 @@ function TemplateContainerUtils.reparentFromWorkspaceIfNeeded(parent, name)
|
|
|
16
16
|
local parentedContainer = parent:FindFirstChild(name)
|
|
17
17
|
if workspaceContainer then
|
|
18
18
|
if parentedContainer then
|
|
19
|
-
error(("Duplicate container in %q and %q"
|
|
19
|
+
error(string.format("Duplicate container in %q and %q",
|
|
20
20
|
workspaceContainer:GetFullName(),
|
|
21
21
|
parentedContainer:GetFullName()))
|
|
22
22
|
end
|
|
@@ -30,8 +30,7 @@ function TemplateContainerUtils.reparentFromWorkspaceIfNeeded(parent, name)
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
if not parentedContainer then
|
|
33
|
-
error(("No template container with name %q in %q")
|
|
34
|
-
:format(parent:GetFullName(), name))
|
|
33
|
+
error(string.format("No template container with name %q in %q", parent:GetFullName(), name))
|
|
35
34
|
end
|
|
36
35
|
|
|
37
36
|
return parentedContainer
|
|
@@ -141,8 +141,7 @@ function TemplateProvider:PromiseClone(templateName)
|
|
|
141
141
|
|
|
142
142
|
task.delay(5, function()
|
|
143
143
|
if promise:IsPending() then
|
|
144
|
-
warn(("[TemplateProvider.PromiseClone] - May fail to replicate template %q from cloud. %s")
|
|
145
|
-
:format(templateName, self:_getReplicationHint()))
|
|
144
|
+
warn(string.format("[TemplateProvider.PromiseClone] - May fail to replicate template %q from cloud. %s", templateName, self:_getReplicationHint()))
|
|
146
145
|
end
|
|
147
146
|
end)
|
|
148
147
|
end
|
|
@@ -181,7 +180,7 @@ function TemplateProvider:Clone(templateName)
|
|
|
181
180
|
|
|
182
181
|
local template = self._registry[templateName]
|
|
183
182
|
if not template then
|
|
184
|
-
error(("[TemplateProvider.Clone] - Cannot provide %q"
|
|
183
|
+
error(string.format("[TemplateProvider.Clone] - Cannot provide %q", tostring(templateName)))
|
|
185
184
|
return nil
|
|
186
185
|
end
|
|
187
186
|
|
|
@@ -370,8 +369,7 @@ end
|
|
|
370
369
|
function TemplateProvider:_addToRegistery(child)
|
|
371
370
|
local childName = child.Name
|
|
372
371
|
-- if self._registry[childName] then
|
|
373
|
-
-- warn(("[TemplateProvider._addToRegistery] - Duplicate %q in registery. Overridding")
|
|
374
|
-
-- :format(childName))
|
|
372
|
+
-- warn(string.format("[TemplateProvider._addToRegistery] - Duplicate %q in registery. Overridding", childName))
|
|
375
373
|
-- end
|
|
376
374
|
|
|
377
375
|
self._registry[childName] = child
|