Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the npm_and_yarn group in /backend with 3 updates #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
372 changes: 279 additions & 93 deletions backend/package-lock.json
6 changes: 3 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -45,14 +45,14 @@
"axios": "~1.6.1",
"bitcoinjs-lib": "~6.1.3",
"crypto-js": "~4.2.0",
"express": "~4.18.2",
"express": "~4.19.2",
"maxmind": "~4.3.11",
"mysql2": "~3.9.0",
"mysql2": "~3.9.8",
"rust-gbt": "file:./rust-gbt",
"redis": "^4.6.6",
"socks-proxy-agent": "~7.0.0",
"typescript": "~4.9.3",
"ws": "~8.13.0"
"ws": "~8.17.1"
},
"devDependencies": {
"@babel/code-frame": "^7.18.6",

Unchanged files with check annotations Beta

},
chromeWebSecurity: false,
e2e: {
setupNodeEvents(on: any, config: any) {

Check warning on line 15 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 20

Unexpected any. Specify a different type

Check warning on line 15 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 20

Unexpected any. Specify a different type

Check warning on line 15 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 18

Unexpected any. Specify a different type

Check warning on line 15 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 18

Unexpected any. Specify a different type
const fs = require('fs');

Check warning on line 16 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 20

Require statement not part of import statement

Check warning on line 16 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 18

Require statement not part of import statement
const CONFIG_FILE = 'mempool-frontend-config.json';
if (fs.existsSync(CONFIG_FILE)) {
let contents = JSON.parse(fs.readFileSync(CONFIG_FILE, 'utf8'));

Check warning on line 19 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 20

'contents' is never reassigned. Use 'const' instead

Check warning on line 19 in frontend/cypress.config.ts

GitHub Actions / Frontend (dev) - node 18

'contents' is never reassigned. Use 'const' instead
config.env.BASE_MODULE = contents.BASE_MODULE ? contents.BASE_MODULE : 'mempool';
} else {
config.env.BASE_MODULE = 'mempool';
});
it('loads the graphs page - mobile', () => {
cy.visit(`${basePath}`)

Check warning on line 58 in frontend/cypress/e2e/liquid/liquid.spec.ts

GitHub Actions / Frontend (dev) - node 20

Missing semicolon

Check warning on line 58 in frontend/cypress/e2e/liquid/liquid.spec.ts

GitHub Actions / Frontend (dev) - node 18

Missing semicolon
cy.waitForSkeletonGone();
cy.get('#btn-graphs').click().then(() => {
cy.viewport('iphone-6');
});
it('loads the blocks page', () => {
cy.visit(`${basePath}`)

Check warning on line 32 in frontend/cypress/e2e/liquidtestnet/liquidtestnet.spec.ts

GitHub Actions / Frontend (dev) - node 20

Missing semicolon

Check warning on line 32 in frontend/cypress/e2e/liquidtestnet/liquidtestnet.spec.ts

GitHub Actions / Frontend (dev) - node 18

Missing semicolon
cy.get('#btn-blocks');
cy.waitForSkeletonGone();
});
});
it('loads the graphs page - mobile', () => {
cy.visit(`${basePath}`)

Check warning on line 54 in frontend/cypress/e2e/liquidtestnet/liquidtestnet.spec.ts

GitHub Actions / Frontend (dev) - node 20

Missing semicolon

Check warning on line 54 in frontend/cypress/e2e/liquidtestnet/liquidtestnet.spec.ts

GitHub Actions / Frontend (dev) - node 18

Missing semicolon
cy.waitForSkeletonGone();
cy.viewport('iphone-6');
cy.get('.tv-only').should('not.exist');
* @param {DOMRect} rect2 the bounding client rectangle of the second element
* @returns {boolean}
*/
const areOverlapping = (rect1, rect2) => {

Check warning on line 14 in frontend/cypress/e2e/mainnet/mainnet.spec.ts

GitHub Actions / Frontend (dev) - node 20

Missing return type on function

Check warning on line 14 in frontend/cypress/e2e/mainnet/mainnet.spec.ts

GitHub Actions / Frontend (dev) - node 18

Missing return type on function
// if one rectangle is on the left side of the other
if (rect1.right < rect2.left || rect2.right < rect1.left) {
return false

Check warning on line 17 in frontend/cypress/e2e/mainnet/mainnet.spec.ts

GitHub Actions / Frontend (dev) - node 20

Missing semicolon

Check warning on line 17 in frontend/cypress/e2e/mainnet/mainnet.spec.ts

GitHub Actions / Frontend (dev) - node 18

Missing semicolon
}
// if one rectangle is above the other
if (rect1.bottom < rect2.top || rect2.bottom < rect1.top) {
return false

Check warning on line 22 in frontend/cypress/e2e/mainnet/mainnet.spec.ts

GitHub Actions / Frontend (dev) - node 20

Missing semicolon

Check warning on line 22 in frontend/cypress/e2e/mainnet/mainnet.spec.ts

GitHub Actions / Frontend (dev) - node 18

Missing semicolon
}
// the rectangles must overlap
import type { Config } from "@jest/types"

Check warning on line 1 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Strings must use singlequote

Check warning on line 1 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Missing semicolon

Check warning on line 1 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Strings must use singlequote

Check warning on line 1 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Missing semicolon
const config: Config.InitialOptions = {
preset: "ts-jest",

Check warning on line 4 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Strings must use singlequote

Check warning on line 4 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Strings must use singlequote
testEnvironment: "node",

Check warning on line 5 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Strings must use singlequote

Check warning on line 5 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Strings must use singlequote
verbose: true,
automock: false,
collectCoverage: true,
collectCoverageFrom: ["./src/**/**.ts"],

Check warning on line 9 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Strings must use singlequote

Check warning on line 9 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Strings must use singlequote
coverageProvider: "babel",

Check warning on line 10 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Strings must use singlequote

Check warning on line 10 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Strings must use singlequote
coverageThreshold: {
global: {
lines: 1
}
},
setupFiles: [
"./testSetup.ts",

Check warning on line 17 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Strings must use singlequote

Check warning on line 17 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Strings must use singlequote
],
}

Check warning on line 19 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 18

Missing semicolon

Check warning on line 19 in backend/jest.config.ts

GitHub Actions / Backend (dev) - node 20

Missing semicolon
export default config;
import { Common } from '../../api/common';
import { MempoolTransactionExtended } from '../../mempool.interfaces';
const randomTransactions = require('./test-data/transactions-random.json');

Check warning on line 4 in backend/src/__tests__/api/common.ts

GitHub Actions / Backend (dev) - node 18

Require statement not part of import statement

Check warning on line 4 in backend/src/__tests__/api/common.ts

GitHub Actions / Backend (dev) - node 20

Require statement not part of import statement
const replacedTransactions = require('./test-data/transactions-replaced.json');

Check warning on line 5 in backend/src/__tests__/api/common.ts

GitHub Actions / Backend (dev) - node 18

Require statement not part of import statement

Check warning on line 5 in backend/src/__tests__/api/common.ts

GitHub Actions / Backend (dev) - node 20

Require statement not part of import statement
const rbfTransactions = require('./test-data/transactions-rbfs.json');
describe('Mempool Utils', () => {