Skip to content

Commit

Permalink
fix: upgrade node and dependencies version UNIFY-75
Browse files Browse the repository at this point in the history
  • Loading branch information
adrobuta committed Apr 10, 2024
1 parent 6044286 commit 276e8b3
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 35 deletions.
6 changes: 2 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-ignore": "error",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/unbound-method": "error"
}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
v18.19.0
9 changes: 1 addition & 8 deletions lib/berkeleydb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ import { ParserError } from '../types';
export { bufferToHashIndexValues, bufferToHashValueContent };

const validPageSizes: ReadonlyArray<number> = [
512,
1024,
2048,
4096,
8192,
16384,
32768,
65536,
512, 1024, 2048, 4096, 8192, 16384, 32768, 65536,
];

/**
Expand Down
5 changes: 2 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ export async function getPackagesSqlite(
sqliteDbBuffer: Buffer,
): Promise<Response> {
try {
const packageInfoBlobs = await getBlobsFromPackagesTableSqliteDb(
sqliteDbBuffer,
);
const packageInfoBlobs =
await getBlobsFromPackagesTableSqliteDb(sqliteDbBuffer);
const packages = await Promise.all(
packageInfoBlobs.map((data: Buffer) => bufferToPackageInfo(data)),
);
Expand Down
26 changes: 12 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@
"homepage": "https://github.com/snyk/rpm-parser#readme",
"dependencies": {
"event-loop-spinner": "^2.2.0",
"sql.js": "^1.7.0"
"sql.js": "^1.10.2"
},
"devDependencies": {
"@types/jest": "23.3.14",
"@types/node": "^12.20.54",
"@types/sql.js": "^1.4.3",
"@typescript-eslint/eslint-plugin": "2.25.0",
"@typescript-eslint/parser": "2.25.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"jest": "23.6.0",
"prettier": "2.1.2",
"ts-jest": "23.10.5",
"ts-node": "7.0.0",
"tsc-watch": "4.2.3",
"typescript": "3.8.3"
"@types/jest": "29.5.12",
"@types/node": "^20.12.6",
"@types/sql.js": "^1.4.9",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"jest": "29.7.0",
"prettier": "3.2.5",
"ts-jest": "29.1.2",
"ts-node": "10.9.2",
"tsc-watch": "6.2.0",
"typescript": "5.4.4"
},
"release": {
"branches": [
Expand Down
6 changes: 2 additions & 4 deletions test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/semi": "error",
Expand All @@ -18,7 +16,7 @@
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-ignore": "error",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/unbound-method": "error",
"@typescript-eslint/no-empty-function": "off"
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('Testing various RPM Berkeley databases', () => {
}
});

describe('Testing various RPM sqlite databases', async () => {
describe('Testing various RPM sqlite databases', () => {
const fixtureDir: string = fixturePath('fixtures/rpm-4.16');
const outputDir: string = fixturePath('outputs/rpm-4.16');

Expand Down

0 comments on commit 276e8b3

Please sign in to comment.