@fern-api/fern-api-dev 4.92.0-1-gf329b83740b → 4.92.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 +105 -102
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -52960,7 +52960,7 @@ var require_tmp = __commonJS({
52960
52960
  var fs28 = require("fs");
52961
52961
  var os24 = require("os");
52962
52962
  var path100 = require("path");
52963
- var crypto5 = require("crypto");
52963
+ var crypto7 = require("crypto");
52964
52964
  var _c4 = { fs: fs28.constants, os: os24.constants };
52965
52965
  var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
52966
52966
  var TEMPLATE_PATTERN = /XXXXXX/;
@@ -53140,9 +53140,9 @@ var require_tmp = __commonJS({
53140
53140
  function _randomChars(howMany) {
53141
53141
  let value2 = [], rnd = null;
53142
53142
  try {
53143
- rnd = crypto5.randomBytes(howMany);
53143
+ rnd = crypto7.randomBytes(howMany);
53144
53144
  } catch (e5) {
53145
- rnd = crypto5.pseudoRandomBytes(howMany);
53145
+ rnd = crypto7.pseudoRandomBytes(howMany);
53146
53146
  }
53147
53147
  for (let i9 = 0; i9 < howMany; i9++) {
53148
53148
  value2.push(RANDOM_CHARS[rnd[i9] % RANDOM_CHARS.length]);
@@ -196858,7 +196858,7 @@ var require_generators_sdk = __commonJS({
196858
196858
  var require_object_hash = __commonJS({
196859
196859
  "../../../node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js"(exports2, module4) {
196860
196860
  "use strict";
196861
- var crypto5 = require("crypto");
196861
+ var crypto7 = require("crypto");
196862
196862
  exports2 = module4.exports = objectHash;
196863
196863
  function objectHash(object22, options2) {
196864
196864
  options2 = applyDefaults(object22, options2);
@@ -196876,7 +196876,7 @@ var require_object_hash = __commonJS({
196876
196876
  exports2.keysMD5 = function(object22) {
196877
196877
  return objectHash(object22, { algorithm: "md5", encoding: "hex", excludeValues: true });
196878
196878
  };
196879
- var hashes = crypto5.getHashes ? crypto5.getHashes().slice() : ["sha1", "md5"];
196879
+ var hashes = crypto7.getHashes ? crypto7.getHashes().slice() : ["sha1", "md5"];
196880
196880
  hashes.push("passthrough");
196881
196881
  var encodings = ["buffer", "hex", "binary", "base64"];
196882
196882
  function applyDefaults(object22, sourceOptions) {
@@ -196922,7 +196922,7 @@ var require_object_hash = __commonJS({
196922
196922
  function hash5(object22, options2) {
196923
196923
  var hashingStream;
196924
196924
  if (options2.algorithm !== "passthrough") {
196925
- hashingStream = crypto5.createHash(options2.algorithm);
196925
+ hashingStream = crypto7.createHash(options2.algorithm);
196926
196926
  } else {
196927
196927
  hashingStream = new PassThrough5();
196928
196928
  }
@@ -211897,7 +211897,7 @@ var require_form_data = __commonJS({
211897
211897
  var parseUrl5 = require("url").parse;
211898
211898
  var fs28 = require("fs");
211899
211899
  var Stream5 = require("stream").Stream;
211900
- var crypto5 = require("crypto");
211900
+ var crypto7 = require("crypto");
211901
211901
  var mime2 = require_mime_types();
211902
211902
  var asynckit = require_asynckit();
211903
211903
  var setToStringTag = require_es_set_tostringtag();
@@ -212103,7 +212103,7 @@ var require_form_data = __commonJS({
212103
212103
  return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
212104
212104
  };
212105
212105
  FormData6.prototype._generateBoundary = function() {
212106
- this._boundary = "--------------------------" + crypto5.randomBytes(12).toString("hex");
212106
+ this._boundary = "--------------------------" + crypto7.randomBytes(12).toString("hex");
212107
212107
  };
212108
212108
  FormData6.prototype.getLengthSync = function() {
212109
212109
  var knownLength = this._overheadLength + this._valueLength;
@@ -237111,14 +237111,14 @@ var require_jwa = __commonJS({
237111
237111
  "../../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js"(exports2, module4) {
237112
237112
  "use strict";
237113
237113
  var Buffer5 = require_safe_buffer().Buffer;
237114
- var crypto5 = require("crypto");
237114
+ var crypto7 = require("crypto");
237115
237115
  var formatEcdsa = require_ecdsa_sig_formatter();
237116
237116
  var util5 = require("util");
237117
237117
  var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';
237118
237118
  var MSG_INVALID_SECRET = "secret must be a string or buffer";
237119
237119
  var MSG_INVALID_VERIFIER_KEY = "key must be a string or a buffer";
237120
237120
  var MSG_INVALID_SIGNER_KEY = "key must be a string, a buffer or an object";
237121
- var supportsKeyObjects = typeof crypto5.createPublicKey === "function";
237121
+ var supportsKeyObjects = typeof crypto7.createPublicKey === "function";
237122
237122
  if (supportsKeyObjects) {
237123
237123
  MSG_INVALID_VERIFIER_KEY += " or a KeyObject";
237124
237124
  MSG_INVALID_SECRET += "or a KeyObject";
@@ -237208,17 +237208,17 @@ var require_jwa = __commonJS({
237208
237208
  return function sign2(thing, secret) {
237209
237209
  checkIsSecretKey(secret);
237210
237210
  thing = normalizeInput(thing);
237211
- var hmac = crypto5.createHmac("sha" + bits, secret);
237211
+ var hmac = crypto7.createHmac("sha" + bits, secret);
237212
237212
  var sig = (hmac.update(thing), hmac.digest("base64"));
237213
237213
  return fromBase642(sig);
237214
237214
  };
237215
237215
  }
237216
237216
  var bufferEqual;
237217
- var timingSafeEqual2 = "timingSafeEqual" in crypto5 ? function timingSafeEqual3(a4, b7) {
237217
+ var timingSafeEqual2 = "timingSafeEqual" in crypto7 ? function timingSafeEqual3(a4, b7) {
237218
237218
  if (a4.byteLength !== b7.byteLength) {
237219
237219
  return false;
237220
237220
  }
237221
- return crypto5.timingSafeEqual(a4, b7);
237221
+ return crypto7.timingSafeEqual(a4, b7);
237222
237222
  } : function timingSafeEqual3(a4, b7) {
237223
237223
  if (!bufferEqual) {
237224
237224
  bufferEqual = require_buffer_equal_constant_time();
@@ -237235,7 +237235,7 @@ var require_jwa = __commonJS({
237235
237235
  return function sign2(thing, privateKey) {
237236
237236
  checkIsPrivateKey(privateKey);
237237
237237
  thing = normalizeInput(thing);
237238
- var signer = crypto5.createSign("RSA-SHA" + bits);
237238
+ var signer = crypto7.createSign("RSA-SHA" + bits);
237239
237239
  var sig = (signer.update(thing), signer.sign(privateKey, "base64"));
237240
237240
  return fromBase642(sig);
237241
237241
  };
@@ -237245,7 +237245,7 @@ var require_jwa = __commonJS({
237245
237245
  checkIsPublicKey(publicKey);
237246
237246
  thing = normalizeInput(thing);
237247
237247
  signature = toBase64(signature);
237248
- var verifier = crypto5.createVerify("RSA-SHA" + bits);
237248
+ var verifier = crypto7.createVerify("RSA-SHA" + bits);
237249
237249
  verifier.update(thing);
237250
237250
  return verifier.verify(publicKey, signature, "base64");
237251
237251
  };
@@ -237254,11 +237254,11 @@ var require_jwa = __commonJS({
237254
237254
  return function sign2(thing, privateKey) {
237255
237255
  checkIsPrivateKey(privateKey);
237256
237256
  thing = normalizeInput(thing);
237257
- var signer = crypto5.createSign("RSA-SHA" + bits);
237257
+ var signer = crypto7.createSign("RSA-SHA" + bits);
237258
237258
  var sig = (signer.update(thing), signer.sign({
237259
237259
  key: privateKey,
237260
- padding: crypto5.constants.RSA_PKCS1_PSS_PADDING,
237261
- saltLength: crypto5.constants.RSA_PSS_SALTLEN_DIGEST
237260
+ padding: crypto7.constants.RSA_PKCS1_PSS_PADDING,
237261
+ saltLength: crypto7.constants.RSA_PSS_SALTLEN_DIGEST
237262
237262
  }, "base64"));
237263
237263
  return fromBase642(sig);
237264
237264
  };
@@ -237268,12 +237268,12 @@ var require_jwa = __commonJS({
237268
237268
  checkIsPublicKey(publicKey);
237269
237269
  thing = normalizeInput(thing);
237270
237270
  signature = toBase64(signature);
237271
- var verifier = crypto5.createVerify("RSA-SHA" + bits);
237271
+ var verifier = crypto7.createVerify("RSA-SHA" + bits);
237272
237272
  verifier.update(thing);
237273
237273
  return verifier.verify({
237274
237274
  key: publicKey,
237275
- padding: crypto5.constants.RSA_PKCS1_PSS_PADDING,
237276
- saltLength: crypto5.constants.RSA_PSS_SALTLEN_DIGEST
237275
+ padding: crypto7.constants.RSA_PKCS1_PSS_PADDING,
237276
+ saltLength: crypto7.constants.RSA_PSS_SALTLEN_DIGEST
237277
237277
  }, signature, "base64");
237278
237278
  };
237279
237279
  }
@@ -239081,9 +239081,9 @@ var require_webcrypto = __commonJS({
239081
239081
  "use strict";
239082
239082
  Object.defineProperty(exports2, "__esModule", { value: true });
239083
239083
  exports2.isCryptoKey = void 0;
239084
- var crypto5 = require("crypto");
239084
+ var crypto7 = require("crypto");
239085
239085
  var util5 = require("util");
239086
- var webcrypto = crypto5.webcrypto;
239086
+ var webcrypto = crypto7.webcrypto;
239087
239087
  exports2.default = webcrypto;
239088
239088
  exports2.isCryptoKey = util5.types.isCryptoKey ? (key2) => util5.types.isCryptoKey(key2) : (key2) => false;
239089
239089
  }
@@ -241734,22 +241734,22 @@ var require_sign3 = __commonJS({
241734
241734
  "../../../node_modules/.pnpm/jose@4.15.9/node_modules/jose/dist/node/cjs/runtime/sign.js"(exports2) {
241735
241735
  "use strict";
241736
241736
  Object.defineProperty(exports2, "__esModule", { value: true });
241737
- var crypto5 = require("crypto");
241737
+ var crypto7 = require("crypto");
241738
241738
  var util_1 = require("util");
241739
241739
  var dsa_digest_js_1 = require_dsa_digest();
241740
241740
  var hmac_digest_js_1 = require_hmac_digest();
241741
241741
  var node_key_js_1 = require_node_key();
241742
241742
  var get_sign_verify_key_js_1 = require_get_sign_verify_key();
241743
241743
  var oneShotSign;
241744
- if (crypto5.sign.length > 3) {
241745
- oneShotSign = (0, util_1.promisify)(crypto5.sign);
241744
+ if (crypto7.sign.length > 3) {
241745
+ oneShotSign = (0, util_1.promisify)(crypto7.sign);
241746
241746
  } else {
241747
- oneShotSign = crypto5.sign;
241747
+ oneShotSign = crypto7.sign;
241748
241748
  }
241749
241749
  var sign2 = async (alg, key2, data2) => {
241750
241750
  const keyObject = (0, get_sign_verify_key_js_1.default)(alg, key2, "sign");
241751
241751
  if (alg.startsWith("HS")) {
241752
- const hmac = crypto5.createHmac((0, hmac_digest_js_1.default)(alg), keyObject);
241752
+ const hmac = crypto7.createHmac((0, hmac_digest_js_1.default)(alg), keyObject);
241753
241753
  hmac.update(data2);
241754
241754
  return hmac.digest();
241755
241755
  }
@@ -241764,7 +241764,7 @@ var require_verify2 = __commonJS({
241764
241764
  "../../../node_modules/.pnpm/jose@4.15.9/node_modules/jose/dist/node/cjs/runtime/verify.js"(exports2) {
241765
241765
  "use strict";
241766
241766
  Object.defineProperty(exports2, "__esModule", { value: true });
241767
- var crypto5 = require("crypto");
241767
+ var crypto7 = require("crypto");
241768
241768
  var util_1 = require("util");
241769
241769
  var dsa_digest_js_1 = require_dsa_digest();
241770
241770
  var node_key_js_1 = require_node_key();
@@ -241772,10 +241772,10 @@ var require_verify2 = __commonJS({
241772
241772
  var get_sign_verify_key_js_1 = require_get_sign_verify_key();
241773
241773
  var flags_js_1 = require_flags();
241774
241774
  var oneShotVerify;
241775
- if (crypto5.verify.length > 4 && flags_js_1.oneShotCallback) {
241776
- oneShotVerify = (0, util_1.promisify)(crypto5.verify);
241775
+ if (crypto7.verify.length > 4 && flags_js_1.oneShotCallback) {
241776
+ oneShotVerify = (0, util_1.promisify)(crypto7.verify);
241777
241777
  } else {
241778
- oneShotVerify = crypto5.verify;
241778
+ oneShotVerify = crypto7.verify;
241779
241779
  }
241780
241780
  var verify2 = async (alg, key2, signature, data2) => {
241781
241781
  const keyObject = (0, get_sign_verify_key_js_1.default)(alg, key2, "verify");
@@ -241783,7 +241783,7 @@ var require_verify2 = __commonJS({
241783
241783
  const expected = await (0, sign_js_1.default)(alg, keyObject, data2);
241784
241784
  const actual = signature;
241785
241785
  try {
241786
- return crypto5.timingSafeEqual(actual, expected);
241786
+ return crypto7.timingSafeEqual(actual, expected);
241787
241787
  } catch {
241788
241788
  return false;
241789
241789
  }
@@ -268659,7 +268659,7 @@ var require_main2 = __commonJS({
268659
268659
  var fs28 = require("fs");
268660
268660
  var path100 = require("path");
268661
268661
  var os24 = require("os");
268662
- var crypto5 = require("crypto");
268662
+ var crypto7 = require("crypto");
268663
268663
  var packageJson2 = require_package4();
268664
268664
  var version7 = packageJson2.version;
268665
268665
  var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
@@ -268878,7 +268878,7 @@ var require_main2 = __commonJS({
268878
268878
  const authTag = ciphertext.subarray(-16);
268879
268879
  ciphertext = ciphertext.subarray(12, -16);
268880
268880
  try {
268881
- const aesgcm = crypto5.createDecipheriv("aes-256-gcm", key2, nonce);
268881
+ const aesgcm = crypto7.createDecipheriv("aes-256-gcm", key2, nonce);
268882
268882
  aesgcm.setAuthTag(authTag);
268883
268883
  return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
268884
268884
  } catch (error50) {
@@ -284146,14 +284146,14 @@ var require_etag = __commonJS({
284146
284146
  "../../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js"(exports2, module4) {
284147
284147
  "use strict";
284148
284148
  module4.exports = etag;
284149
- var crypto5 = require("crypto");
284149
+ var crypto7 = require("crypto");
284150
284150
  var Stats = require("fs").Stats;
284151
284151
  var toString10 = Object.prototype.toString;
284152
284152
  function entitytag(entity) {
284153
284153
  if (entity.length === 0) {
284154
284154
  return '"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';
284155
284155
  }
284156
- var hash5 = crypto5.createHash("sha1").update(entity, "utf8").digest("base64").substring(0, 27);
284156
+ var hash5 = crypto7.createHash("sha1").update(entity, "utf8").digest("base64").substring(0, 27);
284157
284157
  var len = typeof entity === "string" ? Buffer.byteLength(entity, "utf8") : entity.length;
284158
284158
  return '"' + len.toString(16) + "-" + hash5 + '"';
284159
284159
  }
@@ -286932,11 +286932,11 @@ var require_request3 = __commonJS({
286932
286932
  var require_cookie_signature = __commonJS({
286933
286933
  "../../../node_modules/.pnpm/cookie-signature@1.0.7/node_modules/cookie-signature/index.js"(exports2) {
286934
286934
  "use strict";
286935
- var crypto5 = require("crypto");
286935
+ var crypto7 = require("crypto");
286936
286936
  exports2.sign = function(val, secret) {
286937
286937
  if ("string" !== typeof val) throw new TypeError("Cookie value must be provided as a string.");
286938
286938
  if (null == secret) throw new TypeError("Secret key must be provided.");
286939
- return val + "." + crypto5.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
286939
+ return val + "." + crypto7.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
286940
286940
  };
286941
286941
  exports2.unsign = function(val, secret) {
286942
286942
  if ("string" !== typeof val) throw new TypeError("Signed cookie string must be provided.");
@@ -286945,7 +286945,7 @@ var require_cookie_signature = __commonJS({
286945
286945
  return sha1(mac3) == sha1(val) ? str3 : false;
286946
286946
  };
286947
286947
  function sha1(str3) {
286948
- return crypto5.createHash("sha1").update(str3).digest("hex");
286948
+ return crypto7.createHash("sha1").update(str3).digest("hex");
286949
286949
  }
286950
286950
  }
286951
286951
  });
@@ -416108,7 +416108,7 @@ var require_dist22 = __commonJS({
416108
416108
  exports2.PacProxyAgent = void 0;
416109
416109
  var net4 = __importStar2(require("net"));
416110
416110
  var tls2 = __importStar2(require("tls"));
416111
- var crypto5 = __importStar2(require("crypto"));
416111
+ var crypto7 = __importStar2(require("crypto"));
416112
416112
  var events_1 = require("events");
416113
416113
  var debug_1 = __importDefault2(require_src());
416114
416114
  var url_1 = require("url");
@@ -416161,7 +416161,7 @@ var require_dist22 = __commonJS({
416161
416161
  (0, quickjs_emscripten_1.getQuickJS)(),
416162
416162
  this.loadPacFile()
416163
416163
  ]);
416164
- const hash5 = crypto5.createHash("sha1").update(code5).digest("hex");
416164
+ const hash5 = crypto7.createHash("sha1").update(code5).digest("hex");
416165
416165
  if (this.resolver && this.resolverHash === hash5) {
416166
416166
  debug9("Same sha1 hash for code - contents have not changed, reusing previous proxy resolver");
416167
416167
  return this.resolver;
@@ -436011,11 +436011,11 @@ var require_util11 = __commonJS({
436011
436011
  var { isUint8Array: isUint8Array3 } = require("util/types");
436012
436012
  var { webidl } = require_webidl();
436013
436013
  var supportedHashes = [];
436014
- var crypto5;
436014
+ var crypto7;
436015
436015
  try {
436016
- crypto5 = require("crypto");
436016
+ crypto7 = require("crypto");
436017
436017
  const possibleRelevantHashes = ["sha256", "sha384", "sha512"];
436018
- supportedHashes = crypto5.getHashes().filter((hash5) => possibleRelevantHashes.includes(hash5));
436018
+ supportedHashes = crypto7.getHashes().filter((hash5) => possibleRelevantHashes.includes(hash5));
436019
436019
  } catch {
436020
436020
  }
436021
436021
  function responseURL(response) {
@@ -436288,7 +436288,7 @@ var require_util11 = __commonJS({
436288
436288
  }
436289
436289
  }
436290
436290
  function bytesMatch(bytes, metadataList) {
436291
- if (crypto5 === void 0) {
436291
+ if (crypto7 === void 0) {
436292
436292
  return true;
436293
436293
  }
436294
436294
  const parsedMetadata = parseMetadata(metadataList);
@@ -436303,7 +436303,7 @@ var require_util11 = __commonJS({
436303
436303
  for (const item of metadata) {
436304
436304
  const algorithm = item.algo;
436305
436305
  const expectedValue = item.hash;
436306
- let actualValue = crypto5.createHash(algorithm).update(bytes).digest("base64");
436306
+ let actualValue = crypto7.createHash(algorithm).update(bytes).digest("base64");
436307
436307
  if (actualValue[actualValue.length - 1] === "=") {
436308
436308
  if (actualValue[actualValue.length - 2] === "=") {
436309
436309
  actualValue = actualValue.slice(0, -2);
@@ -437367,8 +437367,8 @@ var require_body = __commonJS({
437367
437367
  var { multipartFormDataParser } = require_formdata_parser();
437368
437368
  var random;
437369
437369
  try {
437370
- const crypto5 = require("crypto");
437371
- random = (max) => crypto5.randomInt(0, max);
437370
+ const crypto7 = require("crypto");
437371
+ random = (max) => crypto7.randomInt(0, max);
437372
437372
  } catch {
437373
437373
  random = (max) => Math.floor(Math.random(max));
437374
437374
  }
@@ -448779,13 +448779,13 @@ var require_frame = __commonJS({
448779
448779
  "use strict";
448780
448780
  var { maxUnsigned16Bit } = require_constants13();
448781
448781
  var BUFFER_SIZE = 16386;
448782
- var crypto5;
448782
+ var crypto7;
448783
448783
  var buffer = null;
448784
448784
  var bufIdx = BUFFER_SIZE;
448785
448785
  try {
448786
- crypto5 = require("crypto");
448786
+ crypto7 = require("crypto");
448787
448787
  } catch {
448788
- crypto5 = {
448788
+ crypto7 = {
448789
448789
  // not full compatibility, but minimum.
448790
448790
  randomFillSync: function randomFillSync(buffer2, _offset, _size2) {
448791
448791
  for (let i9 = 0; i9 < buffer2.length; ++i9) {
@@ -448798,7 +448798,7 @@ var require_frame = __commonJS({
448798
448798
  function generateMask() {
448799
448799
  if (bufIdx === BUFFER_SIZE) {
448800
448800
  bufIdx = 0;
448801
- crypto5.randomFillSync(buffer ??= Buffer.allocUnsafe(BUFFER_SIZE), 0, BUFFER_SIZE);
448801
+ crypto7.randomFillSync(buffer ??= Buffer.allocUnsafe(BUFFER_SIZE), 0, BUFFER_SIZE);
448802
448802
  }
448803
448803
  return [buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++]];
448804
448804
  }
@@ -448870,9 +448870,9 @@ var require_connection = __commonJS({
448870
448870
  var { Headers: Headers6, getHeadersList } = require_headers3();
448871
448871
  var { getDecodeSplit } = require_util11();
448872
448872
  var { WebsocketFrameSend } = require_frame();
448873
- var crypto5;
448873
+ var crypto7;
448874
448874
  try {
448875
- crypto5 = require("crypto");
448875
+ crypto7 = require("crypto");
448876
448876
  } catch {
448877
448877
  }
448878
448878
  function establishWebSocketConnection(url3, protocols, client3, ws5, onEstablish, options2) {
@@ -448892,7 +448892,7 @@ var require_connection = __commonJS({
448892
448892
  const headersList = getHeadersList(new Headers6(options2.headers));
448893
448893
  request7.headersList = headersList;
448894
448894
  }
448895
- const keyValue = crypto5.randomBytes(16).toString("base64");
448895
+ const keyValue = crypto7.randomBytes(16).toString("base64");
448896
448896
  request7.headersList.append("sec-websocket-key", keyValue);
448897
448897
  request7.headersList.append("sec-websocket-version", "13");
448898
448898
  for (const protocol2 of protocols) {
@@ -448922,7 +448922,7 @@ var require_connection = __commonJS({
448922
448922
  return;
448923
448923
  }
448924
448924
  const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
448925
- const digest = crypto5.createHash("sha1").update(keyValue + uid).digest("base64");
448925
+ const digest = crypto7.createHash("sha1").update(keyValue + uid).digest("base64");
448926
448926
  if (secWSAccept !== digest) {
448927
448927
  failWebsocketConnection(ws5, "Incorrect hash received in Sec-WebSocket-Accept header.");
448928
448928
  return;
@@ -454565,10 +454565,10 @@ var emptyUuid;
454565
454565
  function getRandomByte() {
454566
454566
  return safeMathRandom() * 16;
454567
454567
  }
454568
- function uuid4(crypto5 = getCrypto()) {
454568
+ function uuid4(crypto7 = getCrypto()) {
454569
454569
  try {
454570
- if (crypto5?.randomUUID) {
454571
- return withRandomSafeContext(() => crypto5.randomUUID()).replace(/-/g, "");
454570
+ if (crypto7?.randomUUID) {
454571
+ return withRandomSafeContext(() => crypto7.randomUUID()).replace(/-/g, "");
454572
454572
  }
454573
454573
  } catch {
454574
454574
  }
@@ -558551,50 +558551,53 @@ function convertTransportToEncoding(transport, service) {
558551
558551
  init_lib4();
558552
558552
  var import_url_join8 = __toESM(require_url_join(), 1);
558553
558553
 
558554
- // ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/regex.js
558555
- var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
558554
+ // ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/rng.js
558555
+ var import_crypto3 = __toESM(require("crypto"));
558556
+ var rnds8Pool = new Uint8Array(256);
558557
+ var poolPtr = rnds8Pool.length;
558558
+ function rng() {
558559
+ if (poolPtr > rnds8Pool.length - 16) {
558560
+ import_crypto3.default.randomFillSync(rnds8Pool);
558561
+ poolPtr = 0;
558562
+ }
558563
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
558564
+ }
558565
+
558566
+ // ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/regex.js
558567
+ var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
558556
558568
 
558557
- // ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/validate.js
558569
+ // ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/validate.js
558558
558570
  function validate2(uuid3) {
558559
558571
  return typeof uuid3 === "string" && regex_default.test(uuid3);
558560
558572
  }
558561
558573
  var validate_default = validate2;
558562
558574
 
558563
- // ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/stringify.js
558575
+ // ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/stringify.js
558564
558576
  var byteToHex = [];
558565
558577
  for (let i9 = 0; i9 < 256; ++i9) {
558566
558578
  byteToHex.push((i9 + 256).toString(16).slice(1));
558567
558579
  }
558568
558580
  function unsafeStringify(arr, offset2 = 0) {
558569
- return (byteToHex[arr[offset2 + 0]] + byteToHex[arr[offset2 + 1]] + byteToHex[arr[offset2 + 2]] + byteToHex[arr[offset2 + 3]] + "-" + byteToHex[arr[offset2 + 4]] + byteToHex[arr[offset2 + 5]] + "-" + byteToHex[arr[offset2 + 6]] + byteToHex[arr[offset2 + 7]] + "-" + byteToHex[arr[offset2 + 8]] + byteToHex[arr[offset2 + 9]] + "-" + byteToHex[arr[offset2 + 10]] + byteToHex[arr[offset2 + 11]] + byteToHex[arr[offset2 + 12]] + byteToHex[arr[offset2 + 13]] + byteToHex[arr[offset2 + 14]] + byteToHex[arr[offset2 + 15]]).toLowerCase();
558581
+ return byteToHex[arr[offset2 + 0]] + byteToHex[arr[offset2 + 1]] + byteToHex[arr[offset2 + 2]] + byteToHex[arr[offset2 + 3]] + "-" + byteToHex[arr[offset2 + 4]] + byteToHex[arr[offset2 + 5]] + "-" + byteToHex[arr[offset2 + 6]] + byteToHex[arr[offset2 + 7]] + "-" + byteToHex[arr[offset2 + 8]] + byteToHex[arr[offset2 + 9]] + "-" + byteToHex[arr[offset2 + 10]] + byteToHex[arr[offset2 + 11]] + byteToHex[arr[offset2 + 12]] + byteToHex[arr[offset2 + 13]] + byteToHex[arr[offset2 + 14]] + byteToHex[arr[offset2 + 15]];
558570
558582
  }
558571
558583
 
558572
- // ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/rng.js
558573
- var rnds8 = new Uint8Array(16);
558574
- function rng() {
558575
- return crypto.getRandomValues(rnds8);
558576
- }
558584
+ // ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/native.js
558585
+ var import_crypto4 = __toESM(require("crypto"));
558586
+ var native_default = {
558587
+ randomUUID: import_crypto4.default.randomUUID
558588
+ };
558577
558589
 
558578
- // ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/v4.js
558590
+ // ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/v4.js
558579
558591
  function v42(options2, buf, offset2) {
558580
- if (!buf && !options2 && crypto.randomUUID) {
558581
- return crypto.randomUUID();
558592
+ if (native_default.randomUUID && !buf && !options2) {
558593
+ return native_default.randomUUID();
558582
558594
  }
558583
- return _v4(options2, buf, offset2);
558584
- }
558585
- function _v4(options2, buf, offset2) {
558586
558595
  options2 = options2 || {};
558587
- const rnds = options2.random ?? options2.rng?.() ?? rng();
558588
- if (rnds.length < 16) {
558589
- throw new Error("Random bytes length must be >= 16");
558590
- }
558596
+ const rnds = options2.random || (options2.rng || rng)();
558591
558597
  rnds[6] = rnds[6] & 15 | 64;
558592
558598
  rnds[8] = rnds[8] & 63 | 128;
558593
558599
  if (buf) {
558594
558600
  offset2 = offset2 || 0;
558595
- if (offset2 < 0 || offset2 + 16 > buf.length) {
558596
- throw new RangeError(`UUID byte range ${offset2}:${offset2 + 15} is out of buffer bounds`);
558597
- }
558598
558601
  for (let i9 = 0; i9 < 16; ++i9) {
558599
558602
  buf[offset2 + i9] = rnds[i9];
558600
558603
  }
@@ -578630,7 +578633,7 @@ var transitional_default = {
578630
578633
  };
578631
578634
 
578632
578635
  // ../../../node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/platform/node/index.js
578633
- var import_crypto3 = __toESM(require("crypto"), 1);
578636
+ var import_crypto5 = __toESM(require("crypto"), 1);
578634
578637
 
578635
578638
  // ../../../node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
578636
578639
  var import_url6 = __toESM(require("url"), 1);
@@ -578648,7 +578651,7 @@ var generateString = (size2 = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
578648
578651
  let str3 = "";
578649
578652
  const { length } = alphabet;
578650
578653
  const randomValues = new Uint32Array(size2);
578651
- import_crypto3.default.randomFillSync(randomValues);
578654
+ import_crypto5.default.randomFillSync(randomValues);
578652
578655
  for (let i9 = 0; i9 < size2; i9++) {
578653
578656
  str3 += alphabet[randomValues[i9] % length];
578654
578657
  }
@@ -617994,7 +617997,7 @@ var AccessTokenPosthogManager = class {
617994
617997
  properties: {
617995
617998
  ...event,
617996
617999
  ...event.properties,
617997
- version: "4.92.0-1-gf329b83740b",
618000
+ version: "4.92.0",
617998
618001
  usingAccessToken: true
617999
618002
  }
618000
618003
  });
@@ -618048,7 +618051,7 @@ var UserPosthogManager = class {
618048
618051
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
618049
618052
  event: "CLI",
618050
618053
  properties: {
618051
- version: "4.92.0-1-gf329b83740b",
618054
+ version: "4.92.0",
618052
618055
  ...event,
618053
618056
  ...event.properties,
618054
618057
  usingAccessToken: false,
@@ -620098,7 +620101,7 @@ var import_os7 = __toESM(require("os"), 1);
620098
620101
 
620099
620102
  // ../cli-v2/lib/cache/ir/IrCache.js
620100
620103
  init_lib6();
620101
- var import_crypto5 = __toESM(require("crypto"), 1);
620104
+ var import_crypto7 = __toESM(require("crypto"), 1);
620102
620105
  var import_promises47 = __toESM(require("fs/promises"), 1);
620103
620106
  var IrCache = class {
620104
620107
  /** Absolute file path to the IR cache directory (e.g. ~/.cache/fern/v1/ir) */
@@ -620161,7 +620164,7 @@ var IrCache = class {
620161
620164
  async store({ hash: hash5, irVersion, content: content5 }) {
620162
620165
  const entryPath = this.getEntryPath({ irVersion, hash: hash5 });
620163
620166
  const entryDir = dirname6(entryPath);
620164
- const tempFile = join8(this.tempPath, RelativeFilePath2.of(`${import_crypto5.default.randomUUID()}.json`));
620167
+ const tempFile = join8(this.tempPath, RelativeFilePath2.of(`${import_crypto7.default.randomUUID()}.json`));
620165
620168
  await import_promises47.default.mkdir(entryDir, { recursive: true });
620166
620169
  await import_promises47.default.mkdir(this.tempPath, { recursive: true });
620167
620170
  try {
@@ -790811,9 +790814,9 @@ ${tagInfo.description}`;
790811
790814
 
790812
790815
  // ../docs-resolver/lib/NodeIdGenerator.js
790813
790816
  init_js();
790814
- var import_crypto6 = __toESM(require("crypto"), 1);
790817
+ var import_crypto8 = __toESM(require("crypto"), 1);
790815
790818
  function hash3(id) {
790816
- return import_crypto6.default.createHash("sha256").update(id).digest("hex");
790819
+ return import_crypto8.default.createHash("sha256").update(id).digest("hex");
790817
790820
  }
790818
790821
  var NodeIdGenerator2 = class _NodeIdGenerator {
790819
790822
  static init() {
@@ -823628,7 +823631,7 @@ var ValidMarkdownFileReferences = {
823628
823631
  init_lib4();
823629
823632
  init_js();
823630
823633
  init_lib6();
823631
- var import_crypto7 = require("crypto");
823634
+ var import_crypto9 = require("crypto");
823632
823635
  var import_path54 = __toESM(require("path"), 1);
823633
823636
 
823634
823637
  // ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
@@ -824116,7 +824119,7 @@ var ValidMarkdownLinks = {
824116
824119
  context: NOOP_CONTEXT2,
824117
824120
  sourceResolver: new SourceResolverImpl(NOOP_CONTEXT2, fernWorkspace)
824118
824121
  });
824119
- const api2 = toLatest(convertIrToApiDefinition({ ir: ir10, apiDefinitionId: (0, import_crypto7.randomUUID)(), context: NOOP_CONTEXT2 }));
824122
+ const api2 = toLatest(convertIrToApiDefinition({ ir: ir10, apiDefinitionId: (0, import_crypto9.randomUUID)(), context: NOOP_CONTEXT2 }));
824120
824123
  const uniqueDescriptions = collectUniqueDescriptions(api2);
824121
824124
  const violations = [];
824122
824125
  const uniquePathnames = /* @__PURE__ */ new Map();
@@ -828880,7 +828883,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
828880
828883
  var LOGS_FOLDER_NAME = "logs";
828881
828884
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
828882
828885
  function getCliSource() {
828883
- const version7 = "4.92.0-1-gf329b83740b";
828886
+ const version7 = "4.92.0";
828884
828887
  return `cli@${version7}`;
828885
828888
  }
828886
828889
  var DebugLogger = class {
@@ -839729,7 +839732,7 @@ init_lib4();
839729
839732
  init_lib4();
839730
839733
  init_js();
839731
839734
  init_lib6();
839732
- var import_crypto8 = require("crypto");
839735
+ var import_crypto10 = require("crypto");
839733
839736
  var import_promises92 = require("fs/promises");
839734
839737
  init_lodash();
839735
839738
  var mime = __toESM(require_mime_types(), 1);
@@ -839810,7 +839813,7 @@ async function unlockDeploy({ fdrOrigin, token, domain: domain3, basepath }) {
839810
839813
  }
839811
839814
  async function calculateFileHash(absoluteFilePath) {
839812
839815
  const fileBuffer = await (0, import_promises92.readFile)(absoluteFilePath);
839813
- return (0, import_crypto8.createHash)("sha256").update(new Uint8Array(fileBuffer)).digest("hex");
839816
+ return (0, import_crypto10.createHash)("sha256").update(new Uint8Array(fileBuffer)).digest("hex");
839814
839817
  }
839815
839818
  function sanitizeRelativePathForS3(relativeFilePath) {
839816
839819
  return relativeFilePath.replace(/\.\.\//g, "_dot_dot_/");
@@ -840801,7 +840804,7 @@ var LegacyDocsPublisher = class {
840801
840804
  previewId,
840802
840805
  disableTemplates: void 0,
840803
840806
  skipUpload,
840804
- cliVersion: "4.92.0-1-gf329b83740b",
840807
+ cliVersion: "4.92.0",
840805
840808
  loginCommand: "fern auth login"
840806
840809
  });
840807
840810
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -914807,7 +914810,7 @@ var CliContext = class _CliContext {
914807
914810
  if (false) {
914808
914811
  this.logger.error("CLI_VERSION is not defined");
914809
914812
  }
914810
- return "4.92.0-1-gf329b83740b";
914813
+ return "4.92.0";
914811
914814
  }
914812
914815
  getCliName() {
914813
914816
  if (false) {
@@ -927900,7 +927903,7 @@ function computePreviewVersion({ previewId }) {
927900
927903
 
927901
927904
  // src/commands/sdk-preview/getPreviewId.ts
927902
927905
  var import_child_process13 = require("child_process");
927903
- var import_crypto9 = require("crypto");
927906
+ var import_crypto11 = require("crypto");
927904
927907
  var import_util71 = require("util");
927905
927908
  var execAsync2 = (0, import_util71.promisify)(import_child_process13.exec);
927906
927909
  var MAX_PREVIEW_ID_LENGTH = 40;
@@ -927924,7 +927927,7 @@ function sanitizeBranchName(branch) {
927924
927927
  return branch.toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, MAX_PREVIEW_ID_LENGTH).replace(/-$/, "");
927925
927928
  }
927926
927929
  function generateRandomId() {
927927
- return (0, import_crypto9.randomBytes)(4).toString("hex");
927930
+ return (0, import_crypto11.randomBytes)(4).toString("hex");
927928
927931
  }
927929
927932
 
927930
927933
  // src/commands/sdk-preview/toPreviewPackageName.ts
@@ -933775,12 +933778,12 @@ async function collectFiles(baseDirectory, relativeBase) {
933775
933778
  }
933776
933779
 
933777
933780
  // src/commands/write-translation/hash-utils.ts
933778
- var import_crypto10 = require("crypto");
933781
+ var import_crypto12 = require("crypto");
933779
933782
  var import_fs41 = require("fs");
933780
933783
  var import_promises185 = require("fs/promises");
933781
933784
  var import_path100 = __toESM(require("path"), 1);
933782
933785
  function calculateContentHash(content5) {
933783
- return (0, import_crypto10.createHash)("sha256").update(content5, "utf-8").digest("hex");
933786
+ return (0, import_crypto12.createHash)("sha256").update(content5, "utf-8").digest("hex");
933784
933787
  }
933785
933788
  async function loadHashMappings(translationsDirectory) {
933786
933789
  const hashesFilePath = import_path100.default.join(translationsDirectory, "hashes");
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.92.0-1-gf329b83740b",
2
+ "version": "4.92.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",