@fileverse-dev/formulajs 4.4.11-mod-46 → 4.4.11-mod-47

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.11-mod-46 */
1
+ /* @fileverse-dev/formulajs v4.4.11-mod-47 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -11201,7 +11201,7 @@ function _typeof(o) {
11201
11201
  }
11202
11202
  var fromUsernameToFid = function() {
11203
11203
  var _ref3 = _asyncToGenerator(_regeneratorRuntime().mark((function _callee2(username) {
11204
- var url, res, json, users, user;
11204
+ var API_KEY, url, res, json, users, user;
11205
11205
  return _regeneratorRuntime().wrap((function _callee2$(_context2) {
11206
11206
  while (1) switch (_context2.prev = _context2.next) {
11207
11207
  case 0:
@@ -11212,8 +11212,9 @@ function _typeof(o) {
11212
11212
  return _context2.abrupt("return", null);
11213
11213
 
11214
11214
  case 2:
11215
+ API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
11215
11216
  url = "https://api.neynar.com/v2/farcaster/user/search/";
11216
- _context2.next = 5;
11217
+ _context2.next = 6;
11217
11218
  return fetch(url, {
11218
11219
  query: {
11219
11220
  q: username
@@ -11224,12 +11225,12 @@ function _typeof(o) {
11224
11225
  }
11225
11226
  });
11226
11227
 
11227
- case 5:
11228
+ case 6:
11228
11229
  res = _context2.sent;
11229
- _context2.next = 8;
11230
+ _context2.next = 9;
11230
11231
  return res.json();
11231
11232
 
11232
- case 8:
11233
+ case 9:
11233
11234
  json = _context2.sent;
11234
11235
  users = json.result && json.result.users;
11235
11236
  user = users.find((function(user) {
@@ -11237,7 +11238,7 @@ function _typeof(o) {
11237
11238
  }));
11238
11239
  return _context2.abrupt("return", user && user.fid || null);
11239
11240
 
11240
- case 12:
11241
+ case 13:
11241
11242
  case "end":
11242
11243
  return _context2.stop();
11243
11244
  }