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