@rbxts/replion 1.0.5 → 1.0.7
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/README.md +1 -1
- package/package.json +1 -1
- package/src/Client.lua +3 -2
- package/src/Server.lua +3 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/Client.lua
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
--!strict
|
|
2
|
-
local
|
|
2
|
+
local isTypeScriptEnv = script.Parent.Name == 'src';
|
|
3
|
+
local dependencies = if isTypeScriptEnv then script.Parent.Parent.Parent else script.Parent.Parent;
|
|
3
4
|
local Shared = require(script.Parent.Shared);
|
|
4
|
-
local Signal = require(
|
|
5
|
+
local Signal = require(isTypeScriptEnv and dependencies['sleitnick-signal'] or dependencies.Signal);
|
|
5
6
|
|
|
6
7
|
type Observer = (newValue: any, oldValue: any) -> ();
|
|
7
8
|
|
package/src/Server.lua
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
--!strict
|
|
2
2
|
local Players = game:GetService('Players');
|
|
3
3
|
|
|
4
|
-
local
|
|
4
|
+
local isTypeScriptEnv = script.Parent.Name == 'src';
|
|
5
|
+
local dependencies = if isTypeScriptEnv then script.Parent.Parent.Parent else script.Parent.Parent;
|
|
5
6
|
local Shared = require(script.Parent.Shared);
|
|
6
|
-
local Sift = require(
|
|
7
|
+
local Sift = require(isTypeScriptEnv and dependencies.sift.out or dependencies.Sift);
|
|
7
8
|
|
|
8
9
|
type ServerConfig = {
|
|
9
10
|
channel: string;
|