@rbxts/covenant 1.0.7 → 1.0.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "1.0.7",
4
- "main": "src/covenant.luau",
3
+ "version": "1.0.9",
4
+ "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
7
7
  "watch": "rbxtsc -w",
package/src/covenant.luau CHANGED
@@ -442,7 +442,7 @@ do
442
442
  function Covenant:checkComponentDefined(component)
443
443
  local _undefinedStringifiedComponents = self.undefinedStringifiedComponents
444
444
  local _arg0 = tostring(component)
445
- local _arg0_1 = _undefinedStringifiedComponents[_arg0] ~= nil
445
+ local _arg0_1 = not (_undefinedStringifiedComponents[_arg0] ~= nil)
446
446
  local _arg1 = `Component {component} is already defined`
447
447
  assert(_arg0_1, _arg1)
448
448
  local _undefinedStringifiedComponents_1 = self.undefinedStringifiedComponents
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./covenant";
package/src/init.luau ADDED
@@ -0,0 +1,7 @@
1
+ -- Compiled with roblox-ts v3.0.0
2
+ local TS = _G[script]
3
+ local exports = {}
4
+ for _k, _v in TS.import(script, script, "covenant") or {} do
5
+ exports[_k] = _v
6
+ end
7
+ return exports