@rbxts/app-forge 0.5.8 → 0.5.9
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/out/decorator.luau +1 -6
- package/out/init.luau +9 -9
- package/package.json +1 -1
package/out/decorator.luau
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
-- Services
|
|
4
|
-
local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services")).RunService
|
|
5
4
|
-- Packages
|
|
6
5
|
local pxScale = TS.import(script, TS.getModule(script, "@rbxts", "loners-pretty-vide-utils").out).px
|
|
7
6
|
-- Types
|
|
@@ -32,10 +31,6 @@ do
|
|
|
32
31
|
if not (name ~= "" and name) then
|
|
33
32
|
error("App name is required in Args constructor")
|
|
34
33
|
end
|
|
35
|
-
local source = forge:getSource(name)
|
|
36
|
-
if not source and RunService:IsRunning() then
|
|
37
|
-
error("FAILED TO GET BIND FOR APP!")
|
|
38
|
-
end
|
|
39
34
|
local px = pxScale
|
|
40
35
|
self.forge = forge
|
|
41
36
|
local _object = table.clone(props.props)
|
|
@@ -43,7 +38,7 @@ do
|
|
|
43
38
|
_object.px = px
|
|
44
39
|
self.props = _object
|
|
45
40
|
self.name = name
|
|
46
|
-
self.source =
|
|
41
|
+
self.source = forge:getSource(name)
|
|
47
42
|
end
|
|
48
43
|
end
|
|
49
44
|
return {
|
package/out/init.luau
CHANGED
|
@@ -44,19 +44,19 @@ do
|
|
|
44
44
|
if not self.rulesManager:applyRules(name, value) then
|
|
45
45
|
return nil
|
|
46
46
|
end
|
|
47
|
-
local _sources = self.sources
|
|
48
|
-
local _name = name
|
|
49
|
-
local source = _sources[_name]
|
|
50
|
-
if not source then
|
|
51
|
-
error(`App "{name}" has no source`)
|
|
52
|
-
end
|
|
53
47
|
local _value = value
|
|
54
48
|
if type(_value) == "function" then
|
|
55
|
-
local
|
|
56
|
-
local
|
|
49
|
+
local _sources = self.sources
|
|
50
|
+
local _name = name
|
|
57
51
|
local _value_1 = value
|
|
58
|
-
|
|
52
|
+
_sources[_name] = _value_1
|
|
59
53
|
else
|
|
54
|
+
local _sources = self.sources
|
|
55
|
+
local _name = name
|
|
56
|
+
local source = _sources[_name]
|
|
57
|
+
if not source then
|
|
58
|
+
error(`App "{name}" has no source`)
|
|
59
|
+
end
|
|
60
60
|
source(value)
|
|
61
61
|
end
|
|
62
62
|
end
|