@rbxts/humanoid-stat-manager 1.0.27 → 1.0.29

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,2 +1,3 @@
1
- export * from './server';
2
- export * from './client';
1
+ type MergedExports = typeof import('./server') & typeof import('./client');
2
+ declare const res: MergedExports;
3
+ export = res;
package/out/init.luau CHANGED
@@ -1,10 +1,13 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
- local exports = {}
4
- for _k, _v in TS.import(script, script, "server") or {} do
5
- exports[_k] = _v
3
+ local RunService = game:GetService("RunService")
4
+ local res = {}
5
+ local currentModule = if RunService:IsServer() then TS.Promise.new(function(resolve)
6
+ resolve(TS.import(script, script, "server"))
7
+ end):expect() else TS.Promise.new(function(resolve)
8
+ resolve(TS.import(script, script, "client"))
9
+ end):expect()
10
+ for i, v in pairs(currentModule) do
11
+ res[i] = v
6
12
  end
7
- for _k, _v in TS.import(script, script, "client") or {} do
8
- exports[_k] = _v
9
- end
10
- return exports
13
+ return res
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/humanoid-stat-manager",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {