@rbxts/replion 1.0.2 → 1.0.3
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 +1 -1
- package/src/Server.lua +2 -2
- package/src/index.d.ts +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/src/Client.lua
CHANGED
|
@@ -97,7 +97,7 @@ function Client:_applyUpdates(updates: Shared.GenericDataTable)
|
|
|
97
97
|
anyChanged = true
|
|
98
98
|
local signal = self._signals[key];
|
|
99
99
|
if signal then
|
|
100
|
-
signal:Fire(self.data[key], self.data[key]); --
|
|
100
|
+
signal:Fire(self.data[key], self.data[key]); -- Warning: Sends improper 'old' argument due to shallow copy optimization.
|
|
101
101
|
end;
|
|
102
102
|
elseif self.data[key] ~= oldValue then
|
|
103
103
|
anyChanged = true;
|
package/src/Server.lua
CHANGED
|
@@ -55,7 +55,7 @@ type Replion = typeof(setmetatable({}, Server));
|
|
|
55
55
|
Server._activeReplions = {} :: { [Player]: { [string]: Replion } };
|
|
56
56
|
Server._globalReplions = {} :: { [string]: Replion };
|
|
57
57
|
|
|
58
|
-
-- This method is private because this it isn't able to give correct types for the found Replion, and that's unideal for public use.
|
|
58
|
+
-- Note: This method is private because this it isn't able to give correct types for the found Replion, and that's unideal for public use.
|
|
59
59
|
function Server._getPlayerReplion(player: Player, channel: string)
|
|
60
60
|
local playerReplions = Server._activeReplions[player];
|
|
61
61
|
if not playerReplions then return nil; end;
|
|
@@ -63,7 +63,7 @@ function Server._getPlayerReplion(player: Player, channel: string)
|
|
|
63
63
|
return playerReplions[channel];
|
|
64
64
|
end;
|
|
65
65
|
|
|
66
|
-
-- This method is private because this it isn't able to give correct types for the found Replion, and that's unideal for public use.
|
|
66
|
+
-- Note: This method is private because this it isn't able to give correct types for the found Replion, and that's unideal for public use.
|
|
67
67
|
function Server._getGlobalReplion(channel: string)
|
|
68
68
|
return Server._globalReplions[channel];
|
|
69
69
|
end;
|
package/src/index.d.ts
CHANGED