@rbxts/app-forge 0.4.1 → 0.4.3

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.
@@ -45,7 +45,7 @@ do
45
45
  self.props = _object
46
46
  self.name = name
47
47
  self.bind = bind
48
- self.state = self.bind:getValue()
48
+ self.state = if self.bind then self.bind:getValue() else nil
49
49
  end
50
50
  end
51
51
  return {
package/out/init.luau CHANGED
@@ -31,7 +31,13 @@ do
31
31
  self.rulesManager = RulesManager.new(self)
32
32
  end
33
33
  function AppForge:getBind(name)
34
- if not RunService:IsRunning() then
34
+ local _condition = not RunService:IsRunning()
35
+ if _condition then
36
+ local _binds = self.binds
37
+ local _name = name
38
+ _condition = not (_binds[_name] ~= nil)
39
+ end
40
+ if _condition then
35
41
  return nil
36
42
  end
37
43
  local _binds = self.binds
package/out/rules.luau CHANGED
@@ -52,6 +52,7 @@ do
52
52
  if not (n ~= "" and n) or n == name then
53
53
  return nil
54
54
  end
55
+ print(self.appManager.loaded)
55
56
  local _n = n
56
57
  local otherApp = AppRegistry[_n]
57
58
  local _result_1 = otherApp
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "An App Manager for react",
5
5
  "main": "out/init.lua",
6
6
  "packageManager": "bun@1.3.1",