@rbxts/humanoid-stat-manager 1.0.25 → 1.0.26

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/client.luau CHANGED
@@ -51,9 +51,9 @@ observeCharacters(function(char, player)
51
51
  end)
52
52
  RunService.Heartbeat:Connect(update)
53
53
  --* @internal
54
- local HumanoidStatManager = {}
54
+ local HumanoidStatManagerClient = {}
55
55
  do
56
- local _container = HumanoidStatManager
56
+ local _container = HumanoidStatManagerClient
57
57
  local function init()
58
58
  -- This only exists to suggest/enforce initial requiring of the module.
59
59
  end
@@ -71,12 +71,12 @@ remote.OnClientEvent:Connect(function(action, ...)
71
71
  local args = { ... }
72
72
  if action == "Add" then
73
73
  local modifier = args[1]
74
- HumanoidStatManager.addModifier(modifier)
74
+ HumanoidStatManagerClient.addModifier(modifier)
75
75
  elseif action == "Remove" then
76
76
  local id = args[1]
77
77
  removeModifier(id)
78
78
  end
79
79
  end)
80
80
  return {
81
- HumanoidStatManager = HumanoidStatManager,
81
+ HumanoidStatManagerClient = HumanoidStatManagerClient,
82
82
  }
package/out/index.d.ts CHANGED
@@ -1,6 +1,2 @@
1
- import { HumanoidStatManager as HumanoidStatManagerServer } from './server';
2
- import { HumanoidStatManager as HumanoidStatManagerClient } from './client';
3
- export declare namespace HumanoidStatManager {
4
- const Server: typeof HumanoidStatManagerServer;
5
- const Client: typeof HumanoidStatManagerClient;
6
- }
1
+ export * from './server';
2
+ export * from './client';
package/out/init.luau CHANGED
@@ -1,18 +1,10 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
- local RunService = game:GetService("RunService")
4
- local HumanoidStatManager = {}
5
- do
6
- local _container = HumanoidStatManager
7
- local Server = if RunService:IsServer() then TS.Promise.new(function(resolve)
8
- resolve(TS.import(script, script, "server"))
9
- end):expect().HumanoidStatManager else nil
10
- _container.Server = Server
11
- local Client = if RunService:IsClient() then TS.Promise.new(function(resolve)
12
- resolve(TS.import(script, script, "client"))
13
- end):expect().HumanoidStatManager else nil
14
- _container.Client = Client
3
+ local exports = {}
4
+ for _k, _v in TS.import(script, script, "server") or {} do
5
+ exports[_k] = _v
15
6
  end
16
- return {
17
- HumanoidStatManager = HumanoidStatManager,
18
- }
7
+ for _k, _v in TS.import(script, script, "client") or {} do
8
+ exports[_k] = _v
9
+ end
10
+ return exports
package/out/server.luau CHANGED
@@ -31,9 +31,9 @@ RunService.Heartbeat:Connect(function()
31
31
  end
32
32
  end)
33
33
  --* @internal
34
- local HumanoidStatManager = {}
34
+ local HumanoidStatManagerServer = {}
35
35
  do
36
- local _container = HumanoidStatManager
36
+ local _container = HumanoidStatManagerServer
37
37
  local function init()
38
38
  -- This only exists to suggest/enforce initial requiring of the module.
39
39
  end
@@ -91,5 +91,5 @@ do
91
91
  _container.addModifier = addModifier
92
92
  end
93
93
  return {
94
- HumanoidStatManager = HumanoidStatManager,
94
+ HumanoidStatManagerServer = HumanoidStatManagerServer,
95
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/humanoid-stat-manager",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {