@mattfillipe/tobby 0.1.0 → 0.1.5
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/dist/index.js +91 -89
- package/package.json +5 -1
- package/bin/tobby.js +0 -16
package/dist/index.js
CHANGED
|
@@ -871,7 +871,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
871
871
|
|
|
872
872
|
// node_modules/react/index.js
|
|
873
873
|
var require_react = __commonJS((exports, module2) => {
|
|
874
|
-
var react_development = __toESM(require_react_development()
|
|
874
|
+
var react_development = __toESM(require_react_development());
|
|
875
875
|
if (false) {} else {
|
|
876
876
|
module2.exports = react_development;
|
|
877
877
|
}
|
|
@@ -879,7 +879,7 @@ var require_react = __commonJS((exports, module2) => {
|
|
|
879
879
|
|
|
880
880
|
// node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
|
881
881
|
var require_react_jsx_dev_runtime_development = __commonJS((exports) => {
|
|
882
|
-
var React = __toESM(require_react()
|
|
882
|
+
var React = __toESM(require_react());
|
|
883
883
|
(function() {
|
|
884
884
|
function getComponentNameFromType(type) {
|
|
885
885
|
if (type == null)
|
|
@@ -1094,7 +1094,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1094
1094
|
|
|
1095
1095
|
// node_modules/react/jsx-dev-runtime.js
|
|
1096
1096
|
var require_jsx_dev_runtime = __commonJS((exports, module2) => {
|
|
1097
|
-
var react_jsx_dev_runtime_development = __toESM(require_react_jsx_dev_runtime_development()
|
|
1097
|
+
var react_jsx_dev_runtime_development = __toESM(require_react_jsx_dev_runtime_development());
|
|
1098
1098
|
if (false) {} else {
|
|
1099
1099
|
module2.exports = react_jsx_dev_runtime_development;
|
|
1100
1100
|
}
|
|
@@ -1357,7 +1357,7 @@ var require_scheduler_development = __commonJS((exports) => {
|
|
|
1357
1357
|
|
|
1358
1358
|
// node_modules/scheduler/index.js
|
|
1359
1359
|
var require_scheduler = __commonJS((exports, module2) => {
|
|
1360
|
-
var scheduler_development = __toESM(require_scheduler_development()
|
|
1360
|
+
var scheduler_development = __toESM(require_scheduler_development());
|
|
1361
1361
|
if (false) {} else {
|
|
1362
1362
|
module2.exports = scheduler_development;
|
|
1363
1363
|
}
|
|
@@ -1365,8 +1365,8 @@ var require_scheduler = __commonJS((exports, module2) => {
|
|
|
1365
1365
|
|
|
1366
1366
|
// node_modules/react-reconciler/cjs/react-reconciler.development.js
|
|
1367
1367
|
var require_react_reconciler_development = __commonJS((exports, module2) => {
|
|
1368
|
-
var React = __toESM(require_react()
|
|
1369
|
-
var Scheduler = __toESM(require_scheduler()
|
|
1368
|
+
var React = __toESM(require_react());
|
|
1369
|
+
var Scheduler = __toESM(require_scheduler());
|
|
1370
1370
|
module2.exports = function($$$config) {
|
|
1371
1371
|
function findHook(fiber, id) {
|
|
1372
1372
|
for (fiber = fiber.memoizedState;fiber !== null && 0 < id; )
|
|
@@ -12233,7 +12233,7 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12233
12233
|
var LRU_LIST = Symbol("lruList");
|
|
12234
12234
|
var CACHE = Symbol("cache");
|
|
12235
12235
|
var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
|
12236
|
-
var naiveLength = function
|
|
12236
|
+
var naiveLength = function naiveLength2() {
|
|
12237
12237
|
return 1;
|
|
12238
12238
|
};
|
|
12239
12239
|
var LRUCache = /* @__PURE__ */ function() {
|
|
@@ -12484,7 +12484,7 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12484
12484
|
}
|
|
12485
12485
|
}]);
|
|
12486
12486
|
}();
|
|
12487
|
-
var _get = function
|
|
12487
|
+
var _get = function _get2(self2, key, doUse) {
|
|
12488
12488
|
var node = self2[CACHE].get(key);
|
|
12489
12489
|
if (node) {
|
|
12490
12490
|
var hit = node.value;
|
|
@@ -12502,13 +12502,13 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12502
12502
|
return hit.value;
|
|
12503
12503
|
}
|
|
12504
12504
|
};
|
|
12505
|
-
var isStale = function
|
|
12505
|
+
var isStale = function isStale2(self2, hit) {
|
|
12506
12506
|
if (!hit || !hit.maxAge && !self2[MAX_AGE])
|
|
12507
12507
|
return false;
|
|
12508
12508
|
var diff = Date.now() - hit.now;
|
|
12509
12509
|
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
|
12510
12510
|
};
|
|
12511
|
-
var trim = function
|
|
12511
|
+
var trim = function trim2(self2) {
|
|
12512
12512
|
if (self2[LENGTH] > self2[MAX]) {
|
|
12513
12513
|
for (var walker = self2[LRU_LIST].tail;self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
|
12514
12514
|
var prev = walker.prev;
|
|
@@ -12517,7 +12517,7 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12517
12517
|
}
|
|
12518
12518
|
}
|
|
12519
12519
|
};
|
|
12520
|
-
var _del = function
|
|
12520
|
+
var _del = function _del2(self2, node) {
|
|
12521
12521
|
if (node) {
|
|
12522
12522
|
var hit = node.value;
|
|
12523
12523
|
if (self2[DISPOSE])
|
|
@@ -12527,15 +12527,15 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12527
12527
|
self2[LRU_LIST].removeNode(node);
|
|
12528
12528
|
}
|
|
12529
12529
|
};
|
|
12530
|
-
var Entry = /* @__PURE__ */ _createClass(function
|
|
12531
|
-
_classCallCheck(this,
|
|
12530
|
+
var Entry = /* @__PURE__ */ _createClass(function Entry2(key, value, length, now, maxAge) {
|
|
12531
|
+
_classCallCheck(this, Entry2);
|
|
12532
12532
|
this.key = key;
|
|
12533
12533
|
this.value = value;
|
|
12534
12534
|
this.length = length;
|
|
12535
12535
|
this.now = now;
|
|
12536
12536
|
this.maxAge = maxAge || 0;
|
|
12537
12537
|
});
|
|
12538
|
-
var forEachStep = function
|
|
12538
|
+
var forEachStep = function forEachStep2(self2, fn, node, thisp) {
|
|
12539
12539
|
var hit = node.value;
|
|
12540
12540
|
if (isStale(self2, hit)) {
|
|
12541
12541
|
_del(self2, node);
|
|
@@ -12844,7 +12844,7 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12844
12844
|
}
|
|
12845
12845
|
function _regeneratorRuntime() {
|
|
12846
12846
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
12847
|
-
_regeneratorRuntime = function
|
|
12847
|
+
_regeneratorRuntime = function _regeneratorRuntime2() {
|
|
12848
12848
|
return e;
|
|
12849
12849
|
};
|
|
12850
12850
|
var t2, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function(t3, e2, r2) {
|
|
@@ -12856,7 +12856,7 @@ var require_backend = __commonJS((exports, module2) => {
|
|
|
12856
12856
|
try {
|
|
12857
12857
|
define2({}, "");
|
|
12858
12858
|
} catch (t3) {
|
|
12859
|
-
define2 = function
|
|
12859
|
+
define2 = function define3(t4, e2, r2) {
|
|
12860
12860
|
return t4[e2] = r2;
|
|
12861
12861
|
};
|
|
12862
12862
|
}
|
|
@@ -13772,7 +13772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13772
13772
|
if (Array.isArray(arr))
|
|
13773
13773
|
return arr;
|
|
13774
13774
|
}
|
|
13775
|
-
var compareVersions = function
|
|
13775
|
+
var compareVersions = function compareVersions2(v1, v2) {
|
|
13776
13776
|
var n1 = validateAndParse(v1);
|
|
13777
13777
|
var n2 = validateAndParse(v2);
|
|
13778
13778
|
var p1 = n1.pop();
|
|
@@ -13787,15 +13787,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13787
13787
|
}
|
|
13788
13788
|
return 0;
|
|
13789
13789
|
};
|
|
13790
|
-
var validate = function
|
|
13790
|
+
var validate = function validate2(version) {
|
|
13791
13791
|
return typeof version === "string" && /^[v\d]/.test(version) && semver.test(version);
|
|
13792
13792
|
};
|
|
13793
|
-
var compare = function
|
|
13793
|
+
var compare = function compare2(v1, v2, operator) {
|
|
13794
13794
|
assertValidOperator(operator);
|
|
13795
13795
|
var res = compareVersions(v1, v2);
|
|
13796
13796
|
return operatorResMap[operator].includes(res);
|
|
13797
13797
|
};
|
|
13798
|
-
var satisfies = function
|
|
13798
|
+
var satisfies = function satisfies2(version, range) {
|
|
13799
13799
|
var m2 = range.match(/^([<>=~^]+)/);
|
|
13800
13800
|
var op = m2 ? m2[1] : "=";
|
|
13801
13801
|
if (op !== "^" && op !== "~")
|
|
@@ -13823,7 +13823,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13823
13823
|
return true;
|
|
13824
13824
|
};
|
|
13825
13825
|
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
|
|
13826
|
-
var validateAndParse = function
|
|
13826
|
+
var validateAndParse = function validateAndParse2(version) {
|
|
13827
13827
|
if (typeof version !== "string") {
|
|
13828
13828
|
throw new TypeError("Invalid argument expected string");
|
|
13829
13829
|
}
|
|
@@ -13834,17 +13834,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13834
13834
|
match.shift();
|
|
13835
13835
|
return match;
|
|
13836
13836
|
};
|
|
13837
|
-
var isWildcard = function
|
|
13837
|
+
var isWildcard = function isWildcard2(s) {
|
|
13838
13838
|
return s === "*" || s === "x" || s === "X";
|
|
13839
13839
|
};
|
|
13840
|
-
var tryParse = function
|
|
13840
|
+
var tryParse = function tryParse2(v2) {
|
|
13841
13841
|
var n = parseInt(v2, 10);
|
|
13842
13842
|
return isNaN(n) ? v2 : n;
|
|
13843
13843
|
};
|
|
13844
|
-
var forceType = function
|
|
13844
|
+
var forceType = function forceType2(a, b2) {
|
|
13845
13845
|
return esm_typeof(a) !== esm_typeof(b2) ? [String(a), String(b2)] : [a, b2];
|
|
13846
13846
|
};
|
|
13847
|
-
var compareStrings = function
|
|
13847
|
+
var compareStrings = function compareStrings2(a, b2) {
|
|
13848
13848
|
if (isWildcard(a) || isWildcard(b2))
|
|
13849
13849
|
return 0;
|
|
13850
13850
|
var _forceType = forceType(tryParse(a), tryParse(b2)), _forceType2 = _slicedToArray(_forceType, 2), ap = _forceType2[0], bp = _forceType2[1];
|
|
@@ -13854,7 +13854,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13854
13854
|
return -1;
|
|
13855
13855
|
return 0;
|
|
13856
13856
|
};
|
|
13857
|
-
var compareSegments = function
|
|
13857
|
+
var compareSegments = function compareSegments2(a, b2) {
|
|
13858
13858
|
for (var i = 0;i < Math.max(a.length, b2.length); i++) {
|
|
13859
13859
|
var r = compareStrings(a[i] || "0", b2[i] || "0");
|
|
13860
13860
|
if (r !== 0)
|
|
@@ -13870,7 +13870,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13870
13870
|
"<": [-1]
|
|
13871
13871
|
};
|
|
13872
13872
|
var allowedOperators = Object.keys(operatorResMap);
|
|
13873
|
-
var assertValidOperator = function
|
|
13873
|
+
var assertValidOperator = function assertValidOperator2(op) {
|
|
13874
13874
|
if (typeof op !== "string") {
|
|
13875
13875
|
throw new TypeError("Invalid operator type, expected string but got ".concat(esm_typeof(op)));
|
|
13876
13876
|
}
|
|
@@ -14111,7 +14111,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14111
14111
|
function getAllEnumerableKeys(obj) {
|
|
14112
14112
|
var keys = new Set;
|
|
14113
14113
|
var current = obj;
|
|
14114
|
-
var _loop = function
|
|
14114
|
+
var _loop = function _loop2() {
|
|
14115
14115
|
var currentKeys = [].concat(_toConsumableArray(Object.keys(current)), _toConsumableArray(Object.getOwnPropertySymbols(current)));
|
|
14116
14116
|
var descriptors = Object.getOwnPropertyDescriptors(current);
|
|
14117
14117
|
currentKeys.forEach(function(key) {
|
|
@@ -14912,7 +14912,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14912
14912
|
}
|
|
14913
14913
|
}
|
|
14914
14914
|
}
|
|
14915
|
-
var isPlainObject = function
|
|
14915
|
+
var isPlainObject = function isPlainObject2(object) {
|
|
14916
14916
|
var objectPrototype = Object.getPrototypeOf(object);
|
|
14917
14917
|
if (!objectPrototype)
|
|
14918
14918
|
return true;
|
|
@@ -15708,7 +15708,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15708
15708
|
var b2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
15709
15709
|
return compareVersions(a, b2) > -1;
|
|
15710
15710
|
}
|
|
15711
|
-
var isReactNativeEnvironment = function
|
|
15711
|
+
var isReactNativeEnvironment = function isReactNativeEnvironment2() {
|
|
15712
15712
|
return window.document == null;
|
|
15713
15713
|
};
|
|
15714
15714
|
function formatDurationToMicrosecondsGranularity(duration) {
|
|
@@ -16448,7 +16448,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16448
16448
|
event.preventDefault();
|
|
16449
16449
|
event.stopPropagation();
|
|
16450
16450
|
}
|
|
16451
|
-
var selectElementForNode = function
|
|
16451
|
+
var selectElementForNode = function selectElementForNode2(node) {
|
|
16452
16452
|
var match = agent2.getIDForHostInstance(node, inspectOnlySuspenseNodes);
|
|
16453
16453
|
if (match !== null) {
|
|
16454
16454
|
bridge.send("selectElement", match.id);
|
|
@@ -16846,12 +16846,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16846
16846
|
try {
|
|
16847
16847
|
var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
16848
16848
|
} catch (t3) {}
|
|
16849
|
-
return (_isNativeReflectConstruct = function
|
|
16849
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
16850
16850
|
return !!t2;
|
|
16851
16851
|
})();
|
|
16852
16852
|
}
|
|
16853
16853
|
function _getPrototypeOf(o) {
|
|
16854
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
16854
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
16855
16855
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
16856
16856
|
};
|
|
16857
16857
|
return _getPrototypeOf(o);
|
|
@@ -16866,7 +16866,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16866
16866
|
_setPrototypeOf(subClass, superClass);
|
|
16867
16867
|
}
|
|
16868
16868
|
function _setPrototypeOf(o, p) {
|
|
16869
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
16869
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
16870
16870
|
o2.__proto__ = p2;
|
|
16871
16871
|
return o2;
|
|
16872
16872
|
};
|
|
@@ -17119,12 +17119,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17119
17119
|
try {
|
|
17120
17120
|
var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
17121
17121
|
} catch (t3) {}
|
|
17122
|
-
return (agent_isNativeReflectConstruct = function
|
|
17122
|
+
return (agent_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
|
|
17123
17123
|
return !!t2;
|
|
17124
17124
|
})();
|
|
17125
17125
|
}
|
|
17126
17126
|
function agent_getPrototypeOf(o) {
|
|
17127
|
-
agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
17127
|
+
agent_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
17128
17128
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
17129
17129
|
};
|
|
17130
17130
|
return agent_getPrototypeOf(o);
|
|
@@ -17139,7 +17139,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17139
17139
|
agent_setPrototypeOf(subClass, superClass);
|
|
17140
17140
|
}
|
|
17141
17141
|
function agent_setPrototypeOf(o, p) {
|
|
17142
|
-
agent_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
17142
|
+
agent_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
17143
17143
|
o2.__proto__ = p2;
|
|
17144
17144
|
return o2;
|
|
17145
17145
|
};
|
|
@@ -17170,7 +17170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17170
17170
|
}
|
|
17171
17171
|
return (r === "string" ? String : Number)(t2);
|
|
17172
17172
|
}
|
|
17173
|
-
var debug = function
|
|
17173
|
+
var debug = function debug2(methodName) {
|
|
17174
17174
|
if (__DEBUG__) {
|
|
17175
17175
|
var _console;
|
|
17176
17176
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1;_key < _len; _key++) {
|
|
@@ -18122,7 +18122,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
18122
18122
|
var control;
|
|
18123
18123
|
try {
|
|
18124
18124
|
if (construct) {
|
|
18125
|
-
var Fake = function
|
|
18125
|
+
var Fake = function Fake2() {
|
|
18126
18126
|
throw Error();
|
|
18127
18127
|
};
|
|
18128
18128
|
Object.defineProperty(Fake.prototype, "props", {
|
|
@@ -20188,7 +20188,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
20188
20188
|
if (it)
|
|
20189
20189
|
o = it;
|
|
20190
20190
|
var i = 0;
|
|
20191
|
-
var F2 = function
|
|
20191
|
+
var F2 = function F3() {};
|
|
20192
20192
|
return { s: F2, n: function n() {
|
|
20193
20193
|
if (i >= o.length)
|
|
20194
20194
|
return { done: true };
|
|
@@ -25356,7 +25356,7 @@ The error thrown in the component is:
|
|
|
25356
25356
|
isFullMatch: trackedPathMatchDepth === trackedPath.length - 1
|
|
25357
25357
|
};
|
|
25358
25358
|
}
|
|
25359
|
-
var formatPriorityLevel = function
|
|
25359
|
+
var formatPriorityLevel = function formatPriorityLevel2(priorityLevel) {
|
|
25360
25360
|
if (priorityLevel == null) {
|
|
25361
25361
|
return "Unknown";
|
|
25362
25362
|
}
|
|
@@ -25604,19 +25604,19 @@ The error thrown in the component is:
|
|
|
25604
25604
|
var internalInstanceToRootIDMap = new WeakMap;
|
|
25605
25605
|
var getElementIDForHostInstance = null;
|
|
25606
25606
|
var findHostInstanceForInternalID;
|
|
25607
|
-
var getNearestMountedDOMNode = function
|
|
25607
|
+
var getNearestMountedDOMNode = function getNearestMountedDOMNode2(node) {
|
|
25608
25608
|
return null;
|
|
25609
25609
|
};
|
|
25610
25610
|
if (renderer.ComponentTree) {
|
|
25611
|
-
getElementIDForHostInstance = function
|
|
25611
|
+
getElementIDForHostInstance = function getElementIDForHostInstance2(node) {
|
|
25612
25612
|
var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node);
|
|
25613
25613
|
return internalInstanceToIDMap.get(internalInstance) || null;
|
|
25614
25614
|
};
|
|
25615
|
-
findHostInstanceForInternalID = function
|
|
25615
|
+
findHostInstanceForInternalID = function findHostInstanceForInternalID2(id) {
|
|
25616
25616
|
var internalInstance = idToInternalInstanceMap.get(id);
|
|
25617
25617
|
return renderer.ComponentTree.getNodeFromInstance(internalInstance);
|
|
25618
25618
|
};
|
|
25619
|
-
getNearestMountedDOMNode = function
|
|
25619
|
+
getNearestMountedDOMNode = function getNearestMountedDOMNode2(node) {
|
|
25620
25620
|
var internalInstance = renderer.ComponentTree.getClosestInstanceFromNode(node);
|
|
25621
25621
|
if (internalInstance != null) {
|
|
25622
25622
|
return renderer.ComponentTree.getNodeFromInstance(internalInstance);
|
|
@@ -25624,10 +25624,10 @@ The error thrown in the component is:
|
|
|
25624
25624
|
return null;
|
|
25625
25625
|
};
|
|
25626
25626
|
} else if (renderer.Mount.getID && renderer.Mount.getNode) {
|
|
25627
|
-
getElementIDForHostInstance = function
|
|
25627
|
+
getElementIDForHostInstance = function getElementIDForHostInstance2(node) {
|
|
25628
25628
|
return null;
|
|
25629
25629
|
};
|
|
25630
|
-
findHostInstanceForInternalID = function
|
|
25630
|
+
findHostInstanceForInternalID = function findHostInstanceForInternalID2(id) {
|
|
25631
25631
|
return null;
|
|
25632
25632
|
};
|
|
25633
25633
|
}
|
|
@@ -26338,29 +26338,29 @@ The error thrown in the component is:
|
|
|
26338
26338
|
}
|
|
26339
26339
|
}
|
|
26340
26340
|
}
|
|
26341
|
-
var getProfilingData = function
|
|
26341
|
+
var getProfilingData = function getProfilingData2() {
|
|
26342
26342
|
throw new Error("getProfilingData not supported by this renderer");
|
|
26343
26343
|
};
|
|
26344
|
-
var handleCommitFiberRoot = function
|
|
26344
|
+
var handleCommitFiberRoot = function handleCommitFiberRoot2() {
|
|
26345
26345
|
throw new Error("handleCommitFiberRoot not supported by this renderer");
|
|
26346
26346
|
};
|
|
26347
|
-
var handleCommitFiberUnmount = function
|
|
26347
|
+
var handleCommitFiberUnmount = function handleCommitFiberUnmount2() {
|
|
26348
26348
|
throw new Error("handleCommitFiberUnmount not supported by this renderer");
|
|
26349
26349
|
};
|
|
26350
|
-
var handlePostCommitFiberRoot = function
|
|
26350
|
+
var handlePostCommitFiberRoot = function handlePostCommitFiberRoot2() {
|
|
26351
26351
|
throw new Error("handlePostCommitFiberRoot not supported by this renderer");
|
|
26352
26352
|
};
|
|
26353
|
-
var overrideError = function
|
|
26353
|
+
var overrideError = function overrideError2() {
|
|
26354
26354
|
throw new Error("overrideError not supported by this renderer");
|
|
26355
26355
|
};
|
|
26356
|
-
var overrideSuspense = function
|
|
26356
|
+
var overrideSuspense = function overrideSuspense2() {
|
|
26357
26357
|
throw new Error("overrideSuspense not supported by this renderer");
|
|
26358
26358
|
};
|
|
26359
|
-
var overrideSuspenseMilestone = function
|
|
26359
|
+
var overrideSuspenseMilestone = function overrideSuspenseMilestone2() {
|
|
26360
26360
|
throw new Error("overrideSuspenseMilestone not supported by this renderer");
|
|
26361
26361
|
};
|
|
26362
|
-
var startProfiling = function
|
|
26363
|
-
var stopProfiling = function
|
|
26362
|
+
var startProfiling = function startProfiling2() {};
|
|
26363
|
+
var stopProfiling = function stopProfiling2() {};
|
|
26364
26364
|
function getBestMatchForTrackedPath() {
|
|
26365
26365
|
return null;
|
|
26366
26366
|
}
|
|
@@ -26578,7 +26578,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26578
26578
|
if (it)
|
|
26579
26579
|
o = it;
|
|
26580
26580
|
var i = 0;
|
|
26581
|
-
var F2 = function
|
|
26581
|
+
var F2 = function F3() {};
|
|
26582
26582
|
return { s: F2, n: function n() {
|
|
26583
26583
|
if (i >= o.length)
|
|
26584
26584
|
return { done: true };
|
|
@@ -26826,10 +26826,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26826
26826
|
return;
|
|
26827
26827
|
}
|
|
26828
26828
|
var consoleMethodsToOverrideForStrictMode = ["group", "groupCollapsed", "info", "log"];
|
|
26829
|
-
var _loop = function
|
|
26829
|
+
var _loop = function _loop2() {
|
|
26830
26830
|
var method = _consoleMethodsToOver[_i];
|
|
26831
26831
|
var originalMethod = targetConsole[method];
|
|
26832
|
-
var overrideMethod = function
|
|
26832
|
+
var overrideMethod = function overrideMethod2() {
|
|
26833
26833
|
var settings = hook.settings;
|
|
26834
26834
|
for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
|
|
26835
26835
|
args[_key] = arguments[_key];
|
|
@@ -26891,10 +26891,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26891
26891
|
return;
|
|
26892
26892
|
}
|
|
26893
26893
|
var consoleMethodsToOverrideForErrorsAndWarnings = ["error", "trace", "warn"];
|
|
26894
|
-
var _loop2 = function
|
|
26894
|
+
var _loop2 = function _loop22() {
|
|
26895
26895
|
var method = _consoleMethodsToOver2[_i2];
|
|
26896
26896
|
var originalMethod = targetConsole[method];
|
|
26897
|
-
var overrideMethod = function
|
|
26897
|
+
var overrideMethod = function overrideMethod2() {
|
|
26898
26898
|
var settings = hook.settings;
|
|
26899
26899
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;_key2 < _len2; _key2++) {
|
|
26900
26900
|
args[_key2] = arguments[_key2];
|
|
@@ -26915,7 +26915,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26915
26915
|
var shouldShowInlineWarningsAndErrors = settings.showInlineWarningsAndErrors && (method === "error" || method === "warn");
|
|
26916
26916
|
var _iterator = hook_createForOfIteratorHelper(hook.rendererInterfaces.values()), _step;
|
|
26917
26917
|
try {
|
|
26918
|
-
var _loop3 = function
|
|
26918
|
+
var _loop3 = function _loop32() {
|
|
26919
26919
|
var rendererInterface = _step.value;
|
|
26920
26920
|
var { onErrorOrWarning, getComponentStack } = rendererInterface;
|
|
26921
26921
|
try {
|
|
@@ -27070,7 +27070,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27070
27070
|
});
|
|
27071
27071
|
hook.emit("react-devtools", agent2);
|
|
27072
27072
|
hook.reactDevtoolsAgent = agent2;
|
|
27073
|
-
var onAgentShutdown = function
|
|
27073
|
+
var onAgentShutdown = function onAgentShutdown2() {
|
|
27074
27074
|
subs.forEach(function(fn) {
|
|
27075
27075
|
return fn();
|
|
27076
27076
|
});
|
|
@@ -27506,7 +27506,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27506
27506
|
} else {
|
|
27507
27507
|
var lazyResolveRNStyle;
|
|
27508
27508
|
var lazyNativeStyleEditorValidAttributes;
|
|
27509
|
-
var initAfterTick = function
|
|
27509
|
+
var initAfterTick = function initAfterTick2() {
|
|
27510
27510
|
if (bridge !== null) {
|
|
27511
27511
|
setupNativeStyleEditor(bridge, agent2, lazyResolveRNStyle, lazyNativeStyleEditorValidAttributes);
|
|
27512
27512
|
}
|
|
@@ -29804,7 +29804,6 @@ class IRCClient {
|
|
|
29804
29804
|
"echo-message",
|
|
29805
29805
|
"userhost-in-names",
|
|
29806
29806
|
"draft/chathistory",
|
|
29807
|
-
"draft/event-playback",
|
|
29808
29807
|
"draft/extended-isupport",
|
|
29809
29808
|
"sasl",
|
|
29810
29809
|
"cap-notify",
|
|
@@ -32913,7 +32912,7 @@ var require_signal_exit = __commonJS((exports, module2) => {
|
|
|
32913
32912
|
emitter.on(ev, cb);
|
|
32914
32913
|
return remove;
|
|
32915
32914
|
};
|
|
32916
|
-
unload = function
|
|
32915
|
+
unload = function unload2() {
|
|
32917
32916
|
if (!loaded || !processOk(global.process)) {
|
|
32918
32917
|
return;
|
|
32919
32918
|
}
|
|
@@ -32928,7 +32927,7 @@ var require_signal_exit = __commonJS((exports, module2) => {
|
|
|
32928
32927
|
emitter.count -= 1;
|
|
32929
32928
|
};
|
|
32930
32929
|
module2.exports.unload = unload;
|
|
32931
|
-
emit = function
|
|
32930
|
+
emit = function emit2(event, code, signal) {
|
|
32932
32931
|
if (emitter.emitted[event]) {
|
|
32933
32932
|
return;
|
|
32934
32933
|
}
|
|
@@ -32957,7 +32956,7 @@ var require_signal_exit = __commonJS((exports, module2) => {
|
|
|
32957
32956
|
return signals;
|
|
32958
32957
|
};
|
|
32959
32958
|
loaded = false;
|
|
32960
|
-
load = function
|
|
32959
|
+
load = function load2() {
|
|
32961
32960
|
if (loaded || !processOk(global.process)) {
|
|
32962
32961
|
return;
|
|
32963
32962
|
}
|
|
@@ -32976,7 +32975,7 @@ var require_signal_exit = __commonJS((exports, module2) => {
|
|
|
32976
32975
|
};
|
|
32977
32976
|
module2.exports.load = load;
|
|
32978
32977
|
originalProcessReallyExit = process4.reallyExit;
|
|
32979
|
-
processReallyExit = function
|
|
32978
|
+
processReallyExit = function processReallyExit2(code) {
|
|
32980
32979
|
if (!processOk(global.process)) {
|
|
32981
32980
|
return;
|
|
32982
32981
|
}
|
|
@@ -32986,7 +32985,7 @@ var require_signal_exit = __commonJS((exports, module2) => {
|
|
|
32986
32985
|
originalProcessReallyExit.call(process4, process4.exitCode);
|
|
32987
32986
|
};
|
|
32988
32987
|
originalProcessEmit = process4.emit;
|
|
32989
|
-
processEmit = function
|
|
32988
|
+
processEmit = function processEmit2(ev, arg) {
|
|
32990
32989
|
if (ev === "exit" && processOk(global.process)) {
|
|
32991
32990
|
if (arg !== undefined) {
|
|
32992
32991
|
process4.exitCode = arg;
|
|
@@ -96191,25 +96190,28 @@ import fs9 from "fs";
|
|
|
96191
96190
|
import os4 from "os";
|
|
96192
96191
|
init_jsx_dev_runtime();
|
|
96193
96192
|
globalThis.__APP_VERSION__ = "0.1.0";
|
|
96194
|
-
var
|
|
96195
|
-
|
|
96196
|
-
Bun.stringWidth
|
|
96197
|
-
|
|
96198
|
-
|
|
96199
|
-
|
|
96200
|
-
|
|
96201
|
-
|
|
96202
|
-
|
|
96203
|
-
|
|
96204
|
-
|
|
96205
|
-
|
|
96206
|
-
|
|
96207
|
-
|
|
96208
|
-
|
|
96209
|
-
|
|
96210
|
-
|
|
96211
|
-
|
|
96212
|
-
|
|
96193
|
+
var _isKitty = process.env.KITTY_WINDOW_ID !== undefined || process.env.TERM === "xterm-kitty";
|
|
96194
|
+
if (!_isKitty) {
|
|
96195
|
+
const _origStringWidth = Bun.stringWidth;
|
|
96196
|
+
const _graphemeSegmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
96197
|
+
Bun.stringWidth = (str) => {
|
|
96198
|
+
if (!str.includes("\u200D"))
|
|
96199
|
+
return _origStringWidth(str);
|
|
96200
|
+
let width = 0;
|
|
96201
|
+
let tail = 0;
|
|
96202
|
+
for (const { segment, index } of _graphemeSegmenter.segment(str)) {
|
|
96203
|
+
if (segment.includes("\u200D")) {
|
|
96204
|
+
if (index > tail)
|
|
96205
|
+
width += _origStringWidth(str.slice(tail, index));
|
|
96206
|
+
width += 2;
|
|
96207
|
+
tail = index + segment.length;
|
|
96208
|
+
}
|
|
96209
|
+
}
|
|
96210
|
+
if (tail < str.length)
|
|
96211
|
+
width += _origStringWidth(str.slice(tail));
|
|
96212
|
+
return width;
|
|
96213
|
+
};
|
|
96214
|
+
}
|
|
96213
96215
|
var _origLog = console.log;
|
|
96214
96216
|
var _origWarn = console.warn;
|
|
96215
96217
|
var IRC_NOISE = [
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattfillipe/tobby",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "The Terminal Obby — a modern IRC client for the terminal",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/ObsidianIRC/tobby.git"
|
|
9
|
+
},
|
|
6
10
|
"bin": {
|
|
7
11
|
"tobby": "bin/tobby.js"
|
|
8
12
|
},
|
package/bin/tobby.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { spawnSync } from 'child_process'
|
|
3
|
-
import { fileURLToPath } from 'url'
|
|
4
|
-
import { dirname, join } from 'path'
|
|
5
|
-
|
|
6
|
-
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
7
|
-
const dist = join(__dirname, '..', 'dist', 'index.js')
|
|
8
|
-
|
|
9
|
-
const hasBun = spawnSync('bun', ['--version'], { stdio: 'pipe' }).status === 0
|
|
10
|
-
if (!hasBun) {
|
|
11
|
-
console.error('tobby requires Bun. Install it: https://bun.sh/docs/installation')
|
|
12
|
-
process.exit(1)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const result = spawnSync('bun', [dist, ...process.argv.slice(2)], { stdio: 'inherit' })
|
|
16
|
-
process.exit(result.status ?? 0)
|