bitfab-cli 0.2.271 → 0.2.273

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.
Files changed (2) hide show
  1. package/dist/index.js +33 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5093,9 +5093,9 @@ var require_data = __commonJS({
5093
5093
  }
5094
5094
  });
5095
5095
 
5096
- // ../node_modules/.pnpm/fast-uri@3.1.3/node_modules/fast-uri/lib/utils.js
5096
+ // ../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js
5097
5097
  var require_utils = __commonJS({
5098
- "../node_modules/.pnpm/fast-uri@3.1.3/node_modules/fast-uri/lib/utils.js"(exports, module) {
5098
+ "../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/utils.js"(exports, module) {
5099
5099
  "use strict";
5100
5100
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
5101
5101
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
@@ -5406,9 +5406,9 @@ var require_utils = __commonJS({
5406
5406
  }
5407
5407
  });
5408
5408
 
5409
- // ../node_modules/.pnpm/fast-uri@3.1.3/node_modules/fast-uri/lib/schemes.js
5409
+ // ../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js
5410
5410
  var require_schemes = __commonJS({
5411
- "../node_modules/.pnpm/fast-uri@3.1.3/node_modules/fast-uri/lib/schemes.js"(exports, module) {
5411
+ "../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/lib/schemes.js"(exports, module) {
5412
5412
  "use strict";
5413
5413
  var { isUUID } = require_utils();
5414
5414
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -5616,9 +5616,9 @@ var require_schemes = __commonJS({
5616
5616
  }
5617
5617
  });
5618
5618
 
5619
- // ../node_modules/.pnpm/fast-uri@3.1.3/node_modules/fast-uri/index.js
5619
+ // ../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js
5620
5620
  var require_fast_uri = __commonJS({
5621
- "../node_modules/.pnpm/fast-uri@3.1.3/node_modules/fast-uri/index.js"(exports, module) {
5621
+ "../node_modules/.pnpm/fast-uri@3.1.5/node_modules/fast-uri/index.js"(exports, module) {
5622
5622
  "use strict";
5623
5623
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
5624
5624
  var { SCHEMES, getSchemeHandler } = require_schemes();
@@ -5634,7 +5634,12 @@ var require_fast_uri = __commonJS({
5634
5634
  }
5635
5635
  function resolve4(baseURI, relativeURI, options) {
5636
5636
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
5637
- const resolved = resolveComponent(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true);
5637
+ const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
5638
+ const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
5639
+ if (baseMalformed || relativeMalformed) {
5640
+ throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
5641
+ }
5642
+ const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
5638
5643
  schemelessOptions.skipEscape = true;
5639
5644
  return serialize2(resolved, schemelessOptions);
5640
5645
  }
@@ -5759,6 +5764,8 @@ var require_fast_uri = __commonJS({
5759
5764
  return uriTokens.join("");
5760
5765
  }
5761
5766
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
5767
+ var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
5768
+ var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
5762
5769
  function getParseError(parsed, matches) {
5763
5770
  if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
5764
5771
  return 'URI path must start with "/" when authority is present.';
@@ -5788,6 +5795,25 @@ var require_fast_uri = __commonJS({
5788
5795
  uri = "//" + uri;
5789
5796
  }
5790
5797
  }
5798
+ const authorityMatch = uri.match(AUTHORITY_PREFIX);
5799
+ if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
5800
+ parsed.error = "URI authority must not contain a literal backslash.";
5801
+ malformedAuthorityOrPort = true;
5802
+ }
5803
+ const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
5804
+ if (introducerMatch !== null) {
5805
+ const region = introducerMatch[1];
5806
+ const normalizedRegion = region.replace(/[\t\n\r]/g, "");
5807
+ if (normalizedRegion.length >= 2) {
5808
+ if (normalizedRegion.slice(0, 2) !== "//") {
5809
+ parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
5810
+ malformedAuthorityOrPort = true;
5811
+ } else if (region.length !== normalizedRegion.length) {
5812
+ parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
5813
+ malformedAuthorityOrPort = true;
5814
+ }
5815
+ }
5816
+ }
5791
5817
  const matches = uri.match(URI_PARSE);
5792
5818
  if (matches) {
5793
5819
  parsed.scheme = matches[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitfab-cli",
3
- "version": "0.2.271",
3
+ "version": "0.2.273",
4
4
  "description": "Install and configure the Bitfab plugin in Claude Code, Codex, or Cursor.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",