Skip to content

Commit

Permalink
chore: include missing dependencies in package.json (#3999)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner authored Sep 4, 2020
1 parent 3fef590 commit 6bb4fed
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 12 deletions.
4 changes: 4 additions & 0 deletions __tests__/unit/core-manager/utils/process-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { TriggerResponses } from "../__fixtures__";
describe("ParseProcessActionResponse", () => {
it("should parse valid response", async () => {
expect(
// @ts-ignore
parseProcessActionResponse({
stdout: TriggerResponses.forgetCurrentDelegateResponse,
}),
Expand All @@ -15,6 +16,7 @@ describe("ParseProcessActionResponse", () => {

it("should parse errored response", async () => {
expect(
// @ts-ignore
parseProcessActionResponse({
stdout: TriggerResponses.forgetCurrentDelegateError,
}),
Expand All @@ -23,6 +25,7 @@ describe("ParseProcessActionResponse", () => {

it("should throw error if number of line is not 2", async () => {
expect(() => {
// @ts-ignore
parseProcessActionResponse({
stdout: "1 processes have received command forger.currentDelegate",
});
Expand All @@ -31,6 +34,7 @@ describe("ParseProcessActionResponse", () => {

it("should throw error if trigger response is invalid", async () => {
expect(() => {
// @ts-ignore
parseProcessActionResponse({
stdout:
'1 processes have received command forger.currentDelegate\n[ark-core:0:default]={"rank":16,"username":"genesis_25"}', // Missing response
Expand Down
4 changes: 4 additions & 0 deletions packages/core-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
"kleur": "^4.0.0",
"latest-version": "^5.1.0",
"listr": "^0.14.3",
"nodejs-tail": "^1.1.0",
"ora": "^4.0.3",
"prompts": "^2.1.0",
"read-last-lines": "^1.7.1",
"reflect-metadata": "^0.1.13",
"semver": "^6.3.0",
"type-fest": "^0.16.0",
"yargs-parser": "^18.0.0"
Expand Down
5 changes: 4 additions & 1 deletion packages/core-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@
"@sindresorhus/df": "^3.1.1",
"argon2": "^0.26.2",
"better-sqlite3": "^7.0.0",
"execa": "^3.4.0",
"fs-extra": "^8.1.0",
"got": "^11.1.3",
"hapi-auth-bearer-token": "^6.1.6",
"latest-version": "^5.1.0",
"require-from-string": "^2.0.2"
"require-from-string": "^2.0.2",
"typeorm": "^0.2.25"
},
"devDependencies": {
"nock": "^13.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/core-manager/src/actions/log-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Action implements Actions.Action {
return parseInt(response.stdout);
}

private getLines(path: string, fromLine: number, range: number): number {
private getLines(path: string, fromLine: number, range: number): string {
const response: ExecaSyncReturnValue = sync(`sed -n '${fromLine},${fromLine + range}p' ${path}`, {
shell: true,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/core-manager/src/log-service-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Contracts } from "@packages/core-kernel";
import { Contracts } from "@arkecosystem/core-kernel";

import { DatabaseService } from "./database-service";

Expand Down
2 changes: 2 additions & 0 deletions packages/core-snapshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
"dependencies": {
"@arkecosystem/core-database": "^3.0.0-alpha.2",
"@arkecosystem/core-kernel": "^3.0.0-alpha.2",
"@arkecosystem/core-magistrate-crypto": "^3.0.0-alpha.2",
"@arkecosystem/crypto": "^3.0.0-alpha.2",
"bytebuffer": "^5.0.1",
"fs-extra": "^8.1.0",
"msgpack-lite": "^0.1.26",
"pg-query-stream": "^3.0.4",
"pluralize": "^8.0.0",
"typeorm": "^0.2.25",
"xcase": "^2.0.1",
"zlib": "^1.0.5"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core-snapshots/src/codecs/json-codec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container } from "@arkecosystem/core-kernel";
import { Models } from "@packages/core-database";
import { Models } from "@arkecosystem/core-database";
import { camelizeKeys } from "xcase";

import { Codec } from "../contracts";
Expand Down
2 changes: 1 addition & 1 deletion packages/core-snapshots/src/contracts/codec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Models } from "@packages/core-database";
import { Models } from "@arkecosystem/core-database";

export interface Codec {
encodeBlock(block: any): Buffer;
Expand Down
6 changes: 3 additions & 3 deletions packages/core-snapshots/src/contracts/database.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Contracts } from "@packages/core-kernel";
import { Meta, Options } from "@packages/core-snapshots/src/contracts/index";
import { Interfaces } from "@packages/crypto";
import { Contracts } from "@arkecosystem/core-kernel";
import { Meta, Options } from "@arkecosystem/core-snapshots/src/contracts/index";
import { Interfaces } from "@arkecosystem/crypto";

export interface DumpRange {
firstBlockHeight: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/core-snapshots/src/contracts/stream.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { StreamReader, StreamWriter } from "@packages/core-snapshots/src/filesystem";
import { StreamReader, StreamWriter } from "@arkecosystem/core-snapshots/src/filesystem";

export type StreamReaderFactory = (file: string, useCompression: boolean, decode: Function) => StreamReader;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Models, Repositories } from "@arkecosystem/core-database";
import { Contracts } from "@packages/core-kernel";
import { Contracts } from "@arkecosystem/core-kernel";
import { EntityRepository } from "typeorm";

import { Repository } from "../contracts";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container } from "@arkecosystem/core-kernel";
import { WorkerAction } from "@packages/core-snapshots/src/contracts";
import { WorkerAction } from "@arkecosystem/core-snapshots/src/contracts";
import { parentPort } from "worker_threads";

// For testing purposes only
Expand Down
1 change: 1 addition & 0 deletions packages/core-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@arkecosystem/core-kernel": "^3.0.0-alpha.2",
"@arkecosystem/core-transactions": "^3.0.0-alpha.2",
"@arkecosystem/crypto": "^3.0.0-alpha.2",
"@arkecosystem/utils": "^1.2.0",
"immutable": "^4.0.0-rc.12"
},
"engines": {
Expand Down
8 changes: 8 additions & 0 deletions packages/core-test-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@
"prepublishOnly": "yarn build"
},
"dependencies": {
"@arkecosystem/core-blockchain": "^3.0.0-alpha.2",
"@arkecosystem/core-cli": "^3.0.0-alpha.2",
"@arkecosystem/core-database": "^3.0.0-alpha.2",
"@arkecosystem/core-forger": "^3.0.0-alpha.2",
"@arkecosystem/core-kernel": "^3.0.0-alpha.2",
"@arkecosystem/core-p2p": "^3.0.0-alpha.2",
"@arkecosystem/core-state": "^3.0.0-alpha.2",
"@arkecosystem/crypto": "^3.0.0-alpha.2",
"bip39": "^3.0.2",
"bs58": "^4.0.1",
"chance": "^1.1.3",
"env-paths": "^2.2.0",
"fast-memoize": "^2.5.1",
"fs-extra": "^8.1.0",
"got": "^11.0.0",
"jest-extended": "^0.11.2",
"lodash.clonedeep": "^4.5.0",
"tmp": "^0.2.0",
"xstate": "^4.8.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Contracts } from "@arkecosystem/core-kernel";
import { Interfaces } from "@packages/crypto";
import { Interfaces } from "@arkecosystem/crypto";

let accept: string[] = [];
let broadcast: string[] = [];
Expand Down
3 changes: 3 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@arkecosystem/core-cli": "^3.0.0-alpha.2",
"@arkecosystem/core-database": "^3.0.0-alpha.2",
"@arkecosystem/core-forger": "^3.0.0-alpha.2",
"@arkecosystem/core-kernel": "^3.0.0-alpha.2",
"@arkecosystem/core-logger-pino": "^3.0.0-alpha.2",
"@arkecosystem/core-magistrate-api": "^3.0.0-alpha.2",
"@arkecosystem/core-magistrate-transactions": "^3.0.0-alpha.2",
Expand All @@ -56,6 +57,7 @@
"@arkecosystem/core-transaction-pool": "^3.0.0-alpha.2",
"@arkecosystem/core-transactions": "^3.0.0-alpha.2",
"@arkecosystem/core-webhooks": "^3.0.0-alpha.2",
"@arkecosystem/crypto": "^3.0.0-alpha.2",
"@hapi/joi": "^17.1.0",
"bip39": "^3.0.2",
"bytebuffer": "^5.0.1",
Expand All @@ -65,6 +67,7 @@
"fs-extra": "^8.1.0",
"ngrok": "^3.2.5",
"nodejs-tail": "^1.1.0",
"ora": "^4.0.3",
"pretty-bytes": "^5.2.0",
"pretty-ms": "^7.0.0",
"prompts": "^2.1.0",
Expand Down

0 comments on commit 6bb4fed

Please sign in to comment.