@fern-api/fern-api-dev 5.22.0-2-g7000dcb2872 → 5.22.0

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/cli.cjs +52 -139
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -40040,15 +40040,12 @@ var require_data = __commonJS({
40040
40040
  }
40041
40041
  });
40042
40042
 
40043
- // ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
40043
+ // ../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
40044
40044
  var require_utils16 = __commonJS({
40045
- "../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js"(exports2, module4) {
40045
+ "../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports2, module4) {
40046
40046
  "use strict";
40047
40047
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
40048
40048
  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);
40049
- var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
40050
- var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
40051
- var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
40052
40049
  function stringArrayToHexStripped(input3) {
40053
40050
  let acc = "";
40054
40051
  let code5 = 0;
@@ -40241,77 +40238,27 @@ var require_utils16 = __commonJS({
40241
40238
  }
40242
40239
  return output2.join("");
40243
40240
  }
40244
- var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
40245
- var HOST_DELIM_RE = /[@/?#:]/g;
40246
- var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
40247
- function reescapeHostDelimiters(host, isIP3) {
40248
- const re10 = isIP3 ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
40249
- re10.lastIndex = 0;
40250
- return host.replace(re10, (ch) => HOST_DELIMS[ch]);
40251
- }
40252
- function normalizePercentEncoding(input3, decodeUnreserved = false) {
40253
- if (input3.indexOf("%") === -1) {
40254
- return input3;
40241
+ function normalizeComponentEncoding(component, esc2) {
40242
+ const func2 = esc2 !== true ? escape : unescape;
40243
+ if (component.scheme !== void 0) {
40244
+ component.scheme = func2(component.scheme);
40255
40245
  }
40256
- let output2 = "";
40257
- for (let i9 = 0; i9 < input3.length; i9++) {
40258
- if (input3[i9] === "%" && i9 + 2 < input3.length) {
40259
- const hex3 = input3.slice(i9 + 1, i9 + 3);
40260
- if (isHexPair(hex3)) {
40261
- const normalizedHex = hex3.toUpperCase();
40262
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
40263
- if (decodeUnreserved && isUnreserved(decoded)) {
40264
- output2 += decoded;
40265
- } else {
40266
- output2 += "%" + normalizedHex;
40267
- }
40268
- i9 += 2;
40269
- continue;
40270
- }
40271
- }
40272
- output2 += input3[i9];
40246
+ if (component.userinfo !== void 0) {
40247
+ component.userinfo = func2(component.userinfo);
40273
40248
  }
40274
- return output2;
40275
- }
40276
- function normalizePathEncoding(input3) {
40277
- let output2 = "";
40278
- for (let i9 = 0; i9 < input3.length; i9++) {
40279
- if (input3[i9] === "%" && i9 + 2 < input3.length) {
40280
- const hex3 = input3.slice(i9 + 1, i9 + 3);
40281
- if (isHexPair(hex3)) {
40282
- const normalizedHex = hex3.toUpperCase();
40283
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
40284
- if (decoded !== "." && isUnreserved(decoded)) {
40285
- output2 += decoded;
40286
- } else {
40287
- output2 += "%" + normalizedHex;
40288
- }
40289
- i9 += 2;
40290
- continue;
40291
- }
40292
- }
40293
- if (isPathCharacter(input3[i9])) {
40294
- output2 += input3[i9];
40295
- } else {
40296
- output2 += escape(input3[i9]);
40297
- }
40249
+ if (component.host !== void 0) {
40250
+ component.host = func2(component.host);
40298
40251
  }
40299
- return output2;
40300
- }
40301
- function escapePreservingEscapes(input3) {
40302
- let output2 = "";
40303
- for (let i9 = 0; i9 < input3.length; i9++) {
40304
- if (input3[i9] === "%" && i9 + 2 < input3.length) {
40305
- const hex3 = input3.slice(i9 + 1, i9 + 3);
40306
- if (isHexPair(hex3)) {
40307
- output2 += "%" + hex3.toUpperCase();
40308
- i9 += 2;
40309
- continue;
40310
- }
40311
- }
40312
- output2 += escape(input3[i9]);
40252
+ if (component.path !== void 0) {
40253
+ component.path = func2(component.path);
40313
40254
  }
40314
- return output2;
40255
+ if (component.query !== void 0) {
40256
+ component.query = func2(component.query);
40257
+ }
40258
+ if (component.fragment !== void 0) {
40259
+ component.fragment = func2(component.fragment);
40260
+ }
40261
+ return component;
40315
40262
  }
40316
40263
  function recomposeAuthority(component) {
40317
40264
  const uriTokens = [];
@@ -40326,7 +40273,7 @@ var require_utils16 = __commonJS({
40326
40273
  if (ipV6res.isIPV6 === true) {
40327
40274
  host = `[${ipV6res.escapedHost}]`;
40328
40275
  } else {
40329
- host = reescapeHostDelimiters(host, false);
40276
+ host = component.host;
40330
40277
  }
40331
40278
  }
40332
40279
  uriTokens.push(host);
@@ -40340,10 +40287,7 @@ var require_utils16 = __commonJS({
40340
40287
  module4.exports = {
40341
40288
  nonSimpleDomain,
40342
40289
  recomposeAuthority,
40343
- reescapeHostDelimiters,
40344
- normalizePercentEncoding,
40345
- normalizePathEncoding,
40346
- escapePreservingEscapes,
40290
+ normalizeComponentEncoding,
40347
40291
  removeDotSegments,
40348
40292
  isIPv4,
40349
40293
  isUUID,
@@ -40353,9 +40297,9 @@ var require_utils16 = __commonJS({
40353
40297
  }
40354
40298
  });
40355
40299
 
40356
- // ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
40300
+ // ../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
40357
40301
  var require_schemes = __commonJS({
40358
- "../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js"(exports2, module4) {
40302
+ "../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports2, module4) {
40359
40303
  "use strict";
40360
40304
  var { isUUID } = require_utils16();
40361
40305
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
@@ -40563,16 +40507,16 @@ var require_schemes = __commonJS({
40563
40507
  }
40564
40508
  });
40565
40509
 
40566
- // ../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js
40510
+ // ../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js
40567
40511
  var require_fast_uri = __commonJS({
40568
- "../../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js"(exports2, module4) {
40512
+ "../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports2, module4) {
40569
40513
  "use strict";
40570
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils16();
40514
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils16();
40571
40515
  var { SCHEMES, getSchemeHandler } = require_schemes();
40572
40516
  function normalize13(uri, options2) {
40573
40517
  if (typeof uri === "string") {
40574
40518
  uri = /** @type {T} */
40575
- normalizeString(uri, options2);
40519
+ serialize5(parse19(uri, options2), options2);
40576
40520
  } else if (typeof uri === "object") {
40577
40521
  uri = /** @type {T} */
40578
40522
  parse19(serialize5(uri, options2), options2);
@@ -40639,9 +40583,19 @@ var require_fast_uri = __commonJS({
40639
40583
  return target;
40640
40584
  }
40641
40585
  function equal(uriA, uriB, options2) {
40642
- const normalizedA = normalizeComparableURI(uriA, options2);
40643
- const normalizedB = normalizeComparableURI(uriB, options2);
40644
- return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
40586
+ if (typeof uriA === "string") {
40587
+ uriA = unescape(uriA);
40588
+ uriA = serialize5(normalizeComponentEncoding(parse19(uriA, options2), true), { ...options2, skipEscape: true });
40589
+ } else if (typeof uriA === "object") {
40590
+ uriA = serialize5(normalizeComponentEncoding(uriA, true), { ...options2, skipEscape: true });
40591
+ }
40592
+ if (typeof uriB === "string") {
40593
+ uriB = unescape(uriB);
40594
+ uriB = serialize5(normalizeComponentEncoding(parse19(uriB, options2), true), { ...options2, skipEscape: true });
40595
+ } else if (typeof uriB === "object") {
40596
+ uriB = serialize5(normalizeComponentEncoding(uriB, true), { ...options2, skipEscape: true });
40597
+ }
40598
+ return uriA.toLowerCase() === uriB.toLowerCase();
40645
40599
  }
40646
40600
  function serialize5(cmpts, opts) {
40647
40601
  const component = {
@@ -40666,12 +40620,12 @@ var require_fast_uri = __commonJS({
40666
40620
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options2);
40667
40621
  if (component.path !== void 0) {
40668
40622
  if (!options2.skipEscape) {
40669
- component.path = escapePreservingEscapes(component.path);
40623
+ component.path = escape(component.path);
40670
40624
  if (component.scheme !== void 0) {
40671
40625
  component.path = component.path.split("%3A").join(":");
40672
40626
  }
40673
40627
  } else {
40674
- component.path = normalizePercentEncoding(component.path);
40628
+ component.path = unescape(component.path);
40675
40629
  }
40676
40630
  }
40677
40631
  if (options2.reference !== "suffix" && component.scheme) {
@@ -40706,16 +40660,7 @@ var require_fast_uri = __commonJS({
40706
40660
  return uriTokens.join("");
40707
40661
  }
40708
40662
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
40709
- function getParseError(parsed, matches) {
40710
- if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
40711
- return 'URI path must start with "/" when authority is present.';
40712
- }
40713
- if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
40714
- return "URI port is malformed.";
40715
- }
40716
- return void 0;
40717
- }
40718
- function parseWithStatus(uri, opts) {
40663
+ function parse19(uri, opts) {
40719
40664
  const options2 = Object.assign({}, opts);
40720
40665
  const parsed = {
40721
40666
  scheme: void 0,
@@ -40726,7 +40671,6 @@ var require_fast_uri = __commonJS({
40726
40671
  query: void 0,
40727
40672
  fragment: void 0
40728
40673
  };
40729
- let malformedAuthorityOrPort = false;
40730
40674
  let isIP3 = false;
40731
40675
  if (options2.reference === "suffix") {
40732
40676
  if (options2.scheme) {
@@ -40747,11 +40691,6 @@ var require_fast_uri = __commonJS({
40747
40691
  if (isNaN(parsed.port)) {
40748
40692
  parsed.port = matches[5];
40749
40693
  }
40750
- const parseError = getParseError(parsed, matches);
40751
- if (parseError !== void 0) {
40752
- parsed.error = parsed.error || parseError;
40753
- malformedAuthorityOrPort = true;
40754
- }
40755
40694
  if (parsed.host) {
40756
40695
  const ipv4result = isIPv4(parsed.host);
40757
40696
  if (ipv4result === false) {
@@ -40790,18 +40729,14 @@ var require_fast_uri = __commonJS({
40790
40729
  parsed.scheme = unescape(parsed.scheme);
40791
40730
  }
40792
40731
  if (parsed.host !== void 0) {
40793
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP3);
40732
+ parsed.host = unescape(parsed.host);
40794
40733
  }
40795
40734
  }
40796
40735
  if (parsed.path) {
40797
- parsed.path = normalizePathEncoding(parsed.path);
40736
+ parsed.path = escape(unescape(parsed.path));
40798
40737
  }
40799
40738
  if (parsed.fragment) {
40800
- try {
40801
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
40802
- } catch {
40803
- parsed.error = parsed.error || "URI malformed";
40804
- }
40739
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
40805
40740
  }
40806
40741
  }
40807
40742
  if (schemeHandler && schemeHandler.parse) {
@@ -40810,29 +40745,7 @@ var require_fast_uri = __commonJS({
40810
40745
  } else {
40811
40746
  parsed.error = parsed.error || "URI can not be parsed.";
40812
40747
  }
40813
- return { parsed, malformedAuthorityOrPort };
40814
- }
40815
- function parse19(uri, opts) {
40816
- return parseWithStatus(uri, opts).parsed;
40817
- }
40818
- function normalizeString(uri, opts) {
40819
- return normalizeStringWithStatus(uri, opts).normalized;
40820
- }
40821
- function normalizeStringWithStatus(uri, opts) {
40822
- const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
40823
- return {
40824
- normalized: malformedAuthorityOrPort ? uri : serialize5(parsed, opts),
40825
- malformedAuthorityOrPort
40826
- };
40827
- }
40828
- function normalizeComparableURI(uri, opts) {
40829
- if (typeof uri === "string") {
40830
- const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
40831
- return malformedAuthorityOrPort ? void 0 : normalized;
40832
- }
40833
- if (typeof uri === "object") {
40834
- return serialize5(uri, opts);
40835
- }
40748
+ return parsed;
40836
40749
  }
40837
40750
  var fastUri = {
40838
40751
  SCHEMES,
@@ -661339,7 +661252,7 @@ var AccessTokenPosthogManager = class {
661339
661252
  properties: {
661340
661253
  ...event,
661341
661254
  ...event.properties,
661342
- version: "5.22.0-2-g7000dcb2872",
661255
+ version: "5.22.0",
661343
661256
  usingAccessToken: true,
661344
661257
  ...getRunIdProperties()
661345
661258
  }
@@ -661394,7 +661307,7 @@ var UserPosthogManager = class {
661394
661307
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
661395
661308
  event: "CLI",
661396
661309
  properties: {
661397
- version: "5.22.0-2-g7000dcb2872",
661310
+ version: "5.22.0",
661398
661311
  ...event,
661399
661312
  ...event.properties,
661400
661313
  usingAccessToken: false,
@@ -852667,7 +852580,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
852667
852580
  var LOGS_FOLDER_NAME = "logs";
852668
852581
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
852669
852582
  function getCliSource() {
852670
- const version7 = "5.22.0-2-g7000dcb2872";
852583
+ const version7 = "5.22.0";
852671
852584
  return `cli@${version7}`;
852672
852585
  }
852673
852586
  var DebugLogger = class {
@@ -865476,7 +865389,7 @@ var LegacyDocsPublisher = class {
865476
865389
  previewId,
865477
865390
  disableTemplates: void 0,
865478
865391
  skipUpload,
865479
- cliVersion: "5.22.0-2-g7000dcb2872",
865392
+ cliVersion: "5.22.0",
865480
865393
  loginCommand: "fern auth login"
865481
865394
  });
865482
865395
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -940279,7 +940192,7 @@ var CliContext = class _CliContext {
940279
940192
  if (false) {
940280
940193
  this.logger.error("CLI_VERSION is not defined");
940281
940194
  }
940282
- return "5.22.0-2-g7000dcb2872";
940195
+ return "5.22.0";
940283
940196
  }
940284
940197
  getCliName() {
940285
940198
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.22.0-2-g7000dcb2872",
2
+ "version": "5.22.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",