@rbxts/humanoid-stat-manager 1.0.2 → 1.0.4

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Modifier } from './shared';
2
- export declare function init(): void;
3
2
  export declare namespace HumanoidStatManager {
3
+ function init(): void;
4
4
  function addModifier(char: Model, modifier: Omit<Modifier, 'id' | 'startTime'>): () => void;
5
5
  }
package/out/init.luau CHANGED
@@ -17,7 +17,7 @@ local clientHumanoid
17
17
  local remote
18
18
  local initialized = false
19
19
  local clientAddInternal, clientRemoveInternal
20
- local function init()
20
+ local function _init()
21
21
  if initialized then
22
22
  return nil
23
23
  end
@@ -101,6 +101,10 @@ local addModifierServer, addModifierClient
101
101
  local HumanoidStatManager = {}
102
102
  do
103
103
  local _container = HumanoidStatManager
104
+ local function init()
105
+ _init()
106
+ end
107
+ _container.init = init
104
108
  local function addModifier(char, modifier)
105
109
  init()
106
110
  if IS_SERVER then
@@ -172,6 +176,5 @@ function addModifierClient(char, modifier)
172
176
  end
173
177
  end
174
178
  return {
175
- init = init,
176
179
  HumanoidStatManager = HumanoidStatManager,
177
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/humanoid-stat-manager",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {