Skip to content

Commit

Permalink
chore(deps-dev): bump @snapshot-labs/eslint-config from 0.1.0-beta.15…
Browse files Browse the repository at this point in the history
… to 0.1.0-beta.17 (#898)

* chore(deps-dev): bump @snapshot-labs/eslint-config

Bumps @snapshot-labs/eslint-config from 0.1.0-beta.15 to 0.1.0-beta.17.

---
updated-dependencies:
- dependency-name: "@snapshot-labs/eslint-config"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chaitanya <[email protected]>
  • Loading branch information
dependabot[bot] and ChaituVR authored Jul 25, 2024
1 parent 5d3b578 commit 938ba01
Show file tree
Hide file tree
Showing 30 changed files with 88 additions and 88 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"winston": "^3.8.2"
},
"devDependencies": {
"@snapshot-labs/eslint-config": "^0.1.0-beta.15",
"@snapshot-labs/eslint-config": "^0.1.0-beta.17",
"@snapshot-labs/prettier-config": "^0.1.0-beta.17",
"@types/jest": "^29.5.3",
"@types/node": "^14.0.13",
Expand Down
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import express from 'express';
import { capture } from '@snapshot-labs/snapshot-sentry';
import express from 'express';
import { getSpace } from './helpers/spaces';
import { name, version } from '../package.json';
import { sendError } from './helpers/utils';
import { name, version } from '../package.json';

const router = express.Router();
const network = process.env.NETWORK || 'testnet';
Expand Down
2 changes: 1 addition & 1 deletion src/eip4824.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import express from 'express';
import { getSpace } from './helpers/spaces';
import db, { sequencerDB } from './helpers/mysql';
import { getSpace } from './helpers/spaces';

const router = express.Router();
const context = '<http://www.daostar.org/schemas>';
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import snapshot from '@snapshot-labs/snapshot.js';
import graphqlFields from 'graphql-fields';
import fetch from 'node-fetch';
import castArray from 'lodash/castArray';
import intersection from 'lodash/intersection';
import uniq from 'lodash/uniq';
import { jsonParse } from '../helpers/utils';
import { spacesMetadata } from '../helpers/spaces';
import fetch from 'node-fetch';
import db from '../helpers/mysql';
import { spacesMetadata } from '../helpers/spaces';
import { jsonParse } from '../helpers/utils';

const network = process.env.NETWORK || 'testnet';

Expand Down
8 changes: 4 additions & 4 deletions src/graphql/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from 'path';
import fs from 'fs';
import { graphqlHTTP } from 'express-graphql';
import path from 'path';
import { makeExecutableSchema } from '@graphql-tools/schema';
import queryCountLimit from 'graphql-query-count-limit';
import { graphqlHTTP } from 'express-graphql';
import depthLimit from 'graphql-depth-limit';
import Query from './operations';
import queryCountLimit from 'graphql-query-count-limit';
import defaultQuery from './examples';
import Query from './operations';

const schemaFile = path.join(__dirname, './schema.gql');
const typeDefs = fs.readFileSync(schemaFile, 'utf8');
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/aliases.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/follows.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits, formatFollow } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
32 changes: 16 additions & 16 deletions src/graphql/operations/index.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import space from './space';
import spaces from './spaces';
import proposal from './proposal';
import proposals from './proposals';
import vote from './vote';
import votes from './votes';
import aliases from './aliases';
import follows from './follows';
import subscriptions from './subscriptions';
import skins from './skins';
import leaderboards from './leaderboards';
import messages from './messages';
import networks from './networks';
import validations from './validations';
import plugins from './plugins';
import proposal from './proposal';
import proposals from './proposals';
import ranking from './ranking';
import roles from './roles';
import skins from './skins';
import space from './space';
import spaces from './spaces';
import statement from './statement';
import statements from './statements';
import strategies from './strategies';
import strategy from './strategy';
import users from './users';
import subscriptions from './subscriptions';
import user from './user';
import statements from './statements';
import statement from './statement';
import users from './users';
import validations from './validations';
import vote from './vote';
import votes from './votes';
import vp from './vp';
import messages from './messages';
import ranking from './ranking';
import roles from './roles';
import leaderboards from './leaderboards';

export default {
space,
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/leaderboards.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import uniq from 'lodash/uniq';
import db from '../../helpers/mysql';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits } from '../helpers';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/messages.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import { sequencerDB } from '../../helpers/mysql';
import { buildWhereQuery, checkLimits } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/proposal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { formatProposal } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, { id }) {
const query = `
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/operations/proposals.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import db from '../../helpers/mysql';
import { buildWhereQuery, formatProposal, checkLimits } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits, formatProposal } from '../helpers';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
8 changes: 4 additions & 4 deletions src/graphql/operations/ranking.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { rankedSpaces } from '../../helpers/spaces';
import {
checkLimits,
formatSpace,
handleRelatedSpaces,
PublicError
} from '../helpers';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { rankedSpaces } from '../../helpers/spaces';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (_parent, args, context, info) {
checkLimits(args, 'ranking');
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/operations/roles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import db from '../../helpers/mysql';
import log from '../../helpers/log';
import db from '../../helpers/mysql';

export default async function (parent, args) {
const { where = {} } = args;
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/space.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchSpaces, handleRelatedSpaces, PublicError } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import { fetchSpaces, handleRelatedSpaces, PublicError } from '../helpers';

export default async function (_parent, { id }, context, info) {
try {
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/spaces.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import {
checkLimits,
fetchSpaces,
handleRelatedSpaces,
PublicError
} from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (_parent, args, context, info) {
checkLimits(args, 'spaces');
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/statement.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import db from '../../helpers/mysql';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';

export default async function (parent, args) {
const id = args.id;
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/statements.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/subscriptions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits, formatSubscription } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/operations/user.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { formatAddresses, PublicError } from '../helpers';
import users from './users';
import { formatAddresses, PublicError } from '../helpers';

export default async function (parent, args) {
const addresses = formatAddresses([args.id]);
Expand Down
4 changes: 2 additions & 2 deletions src/graphql/operations/users.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import { buildWhereQuery, checkLimits, formatUser } from '../helpers';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

export default async function (parent, args) {
const { first, skip, where = {} } = args;
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/operations/vote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import log from '../../helpers/log';
import fetchVotes from './votes';
import log from '../../helpers/log';

export default async function (parent, { id }, context, info) {
try {
Expand Down
6 changes: 3 additions & 3 deletions src/graphql/operations/votes.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import graphqlFields from 'graphql-fields';
import log from '../../helpers/log';
import db from '../../helpers/mysql';
import serve from '../../helpers/requestDeduplicator';
import {
buildWhereQuery,
checkLimits,
formatProposal,
formatSpace,
formatVote
} from '../helpers';
import serve from '../../helpers/requestDeduplicator';
import log from '../../helpers/log';
import { capture } from '@snapshot-labs/snapshot-sentry';

async function query(parent, args, context?, info?) {
const requestedFields = info ? graphqlFields(info) : {};
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import init, { client } from '@snapshot-labs/snapshot-metrics';
import { capture } from '@snapshot-labs/snapshot-sentry';
import { Express, type Request, type Response } from 'express';
import { Express, Request, Response } from 'express';
import { GraphQLError, parse } from 'graphql';
import db from './mysql';
import { spacesMetadata } from './spaces';
import { strategies } from './strategies';
import db from './mysql';
import operations from '../graphql/operations/';

const whitelistedPath = [
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/mysql.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import mysql from 'mysql';
import Pool from 'mysql/lib/Pool';
import Connection from 'mysql/lib/Connection';
import bluebird from 'bluebird';
import parse from 'connection-string';
import mysql from 'mysql';
import Connection from 'mysql/lib/Connection';
import Pool from 'mysql/lib/Pool';
import log from './log';

const connectionLimit = parseInt(process.env.CONNECTION_LIMIT || '25');
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/spaces.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import snapshot from '@snapshot-labs/snapshot.js';
import networks from '@snapshot-labs/snapshot.js/src/networks.json';
import { uniq } from 'lodash';
import db from './mysql';
import log from './log';
import { capture } from '@snapshot-labs/snapshot-sentry';
import db from './mysql';

const RUN_INTERVAL = 120e3;
const TEST_STRATEGIES = [
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/strategies.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { URL } from 'url';
import { capture } from '@snapshot-labs/snapshot-sentry';
import snapshot from '@snapshot-labs/snapshot.js';
import { spaces } from './spaces';
import log from './log';
import { capture } from '@snapshot-labs/snapshot-sentry';
import { URL } from 'url';
import { spaces } from './spaces';

export let strategies: any[] = [];
export let strategiesObj: any = {};
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import 'dotenv/config';
import { fallbackLogger, initLogger } from '@snapshot-labs/snapshot-sentry';
import cors from 'cors';
import express from 'express';
import { initLogger, fallbackLogger } from '@snapshot-labs/snapshot-sentry';
import api from './api';
import eip4824 from './eip4824';
import graphql from './graphql';
import rateLimit from './helpers/rateLimit';
import { checkKeycard } from './helpers/keycard';
import log from './helpers/log';
import initMetrics from './helpers/metrics';
import { checkKeycard } from './helpers/keycard';
import rateLimit from './helpers/rateLimit';
import refreshSpacesCache from './helpers/spaces';
import './helpers/strategies';

Expand Down
8 changes: 4 additions & 4 deletions test/setupDb.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import mysql from 'mysql';
import Pool from 'mysql/lib/Pool';
import Connection from 'mysql/lib/Connection';
import fs from 'fs';
import bluebird from 'bluebird';
import parse from 'connection-string';
import fs from 'fs';
import mysql from 'mysql';
import Connection from 'mysql/lib/Connection';
import Pool from 'mysql/lib/Pool';
import { TEST_DATABASE_SUFFIX } from './setup';

// @ts-ignore
Expand Down
Loading

0 comments on commit 938ba01

Please sign in to comment.