@snapshot-labs/snapshot.js 0.5.0 → 0.5.1

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.
@@ -4256,18 +4256,14 @@ var voting = {
4256
4256
  basic: SingleChoiceVoting
4257
4257
  };
4258
4258
 
4259
- var _a;
4260
4259
  var SNAPSHOT_SUBGRAPH_URL = delegationSubgraphs;
4261
4260
  var ENS_RESOLVER_ABI = [
4262
4261
  'function text(bytes32 node, string calldata key) external view returns (string memory)'
4263
4262
  ];
4264
- var SCORE_API_KEY = ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.KEYCARD_SECRET) || '';
4265
4263
  var scoreApiHeaders = {
4266
4264
  Accept: 'application/json',
4267
4265
  'Content-Type': 'application/json'
4268
4266
  };
4269
- if (SCORE_API_KEY)
4270
- scoreApiHeaders['X-API-KEY'] = SCORE_API_KEY;
4271
4267
  var ajv = new Ajv__default['default']({ allErrors: true, allowUnionTypes: true, $data: true });
4272
4268
  // @ts-ignore
4273
4269
  addFormats__default['default'](ajv);
@@ -4247,18 +4247,14 @@ var voting = {
4247
4247
  basic: SingleChoiceVoting
4248
4248
  };
4249
4249
 
4250
- var _a;
4251
4250
  var SNAPSHOT_SUBGRAPH_URL = delegationSubgraphs;
4252
4251
  var ENS_RESOLVER_ABI = [
4253
4252
  'function text(bytes32 node, string calldata key) external view returns (string memory)'
4254
4253
  ];
4255
- var SCORE_API_KEY = ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.KEYCARD_SECRET) || '';
4256
4254
  var scoreApiHeaders = {
4257
4255
  Accept: 'application/json',
4258
4256
  'Content-Type': 'application/json'
4259
4257
  };
4260
- if (SCORE_API_KEY)
4261
- scoreApiHeaders['X-API-KEY'] = SCORE_API_KEY;
4262
4258
  var ajv = new Ajv({ allErrors: true, allowUnionTypes: true, $data: true });
4263
4259
  // @ts-ignore
4264
4260
  addFormats(ajv);