From 50f5c02190ba28b77492c09e81f5d5ba6578e862 Mon Sep 17 00:00:00 2001 From: Tomasz Awramski Date: Wed, 9 Aug 2023 16:54:32 +0200 Subject: [PATCH] fix: use common conventions: tsconfig.json, package.json - change package.json and tsconfig.json files to follow common convention Peter's additions to fix the broken build: - Included shelljs typings as a dev dependency for the package called cactus-plugin-ledger-connector-go-ethereum-socketio - Also included "socket.io-client" as another missing dev dependency for the package above. Closes: #2216 Co-authored-by: Peter Somogyvari Signed-off-by: Tomasz Awramski Signed-off-by: Peter Somogyvari --- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- examples/supply-chain-app/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/cactus-api-client/package.json | 2 +- packages/cactus-cmd-api-server/package.json | 2 +- .../cactus-cmd-socketio-server/package.json | 37 +++- .../cactus-cmd-socketio-server/tsconfig.json | 9 +- packages/cactus-common/package.json | 2 +- packages/cactus-core-api/package.json | 2 +- packages/cactus-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 174 ++++++++-------- .../cactus-plugin-htlc-eth-besu/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../cactus-plugin-keychain-vault/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 55 ++++- .../test/typescript/unit-test/package.json | 7 +- .../unit-test/validatorDriver_getNonceHex.ts | 10 +- .../validatorDriver_getNumericBalance.ts | 10 +- .../validatorDriver_sendRawTransaction.ts | 12 +- .../validatorDriver_transferNumericAsset.ts | 10 +- .../tsconfig.json | 12 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 46 ++++- .../tsconfig.json | 9 +- .../package.json | 42 ++++ .../tsconfig.json | 8 +- .../package.json | 194 +++++++++--------- .../package.json | 2 +- .../cactus-plugin-odap-hermes/package.json | 2 +- .../package.json | 2 +- packages/cactus-test-api-client/package.json | 2 +- .../cactus-test-cmd-api-server/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/cactus-test-tooling/package.json | 2 +- .../cactus-test-verifier-client/package.json | 2 +- .../cactus-test-verifier-client/tsconfig.json | 2 +- packages/cactus-verifier-client/package.json | 2 +- yarn.lock | 16 +- 57 files changed, 452 insertions(+), 281 deletions(-) diff --git a/examples/cactus-example-carbon-accounting-backend/package.json b/examples/cactus-example-carbon-accounting-backend/package.json index 72b41e74e9..008aa1c04d 100644 --- a/examples/cactus-example-carbon-accounting-backend/package.json +++ b/examples/cactus-example-carbon-accounting-backend/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/examples/cactus-example-carbon-accounting-business-logic-plugin/package.json b/examples/cactus-example-carbon-accounting-business-logic-plugin/package.json index abfa7b5ed7..1c84fd2552 100644 --- a/examples/cactus-example-carbon-accounting-business-logic-plugin/package.json +++ b/examples/cactus-example-carbon-accounting-business-logic-plugin/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/examples/cactus-example-supply-chain-backend/package.json b/examples/cactus-example-supply-chain-backend/package.json index 1a0e7c4056..8117647530 100644 --- a/examples/cactus-example-supply-chain-backend/package.json +++ b/examples/cactus-example-supply-chain-backend/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/examples/cactus-example-supply-chain-business-logic-plugin/package.json b/examples/cactus-example-supply-chain-business-logic-plugin/package.json index 86693bb9b1..3a2a29106c 100644 --- a/examples/cactus-example-supply-chain-business-logic-plugin/package.json +++ b/examples/cactus-example-supply-chain-business-logic-plugin/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/examples/cactus-workshop-examples-2022-11-14/package.json b/examples/cactus-workshop-examples-2022-11-14/package.json index c4c59abc94..1efac6cc30 100644 --- a/examples/cactus-workshop-examples-2022-11-14/package.json +++ b/examples/cactus-workshop-examples-2022-11-14/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/examples/supply-chain-app/package.json b/examples/supply-chain-app/package.json index ecf61fe026..79d55c531e 100644 --- a/examples/supply-chain-app/package.json +++ b/examples/supply-chain-app/package.json @@ -27,7 +27,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/extensions/cactus-plugin-htlc-coordinator-besu/package.json b/extensions/cactus-plugin-htlc-coordinator-besu/package.json index 8dac806c47..c71f1f1c58 100644 --- a/extensions/cactus-plugin-htlc-coordinator-besu/package.json +++ b/extensions/cactus-plugin-htlc-coordinator-besu/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/extensions/cactus-plugin-object-store-ipfs/package.json b/extensions/cactus-plugin-object-store-ipfs/package.json index 2829dd31cf..382f8f5395 100644 --- a/extensions/cactus-plugin-object-store-ipfs/package.json +++ b/extensions/cactus-plugin-object-store-ipfs/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-api-client/package.json b/packages/cactus-api-client/package.json index ca12959f25..1ce491a1b9 100644 --- a/packages/cactus-api-client/package.json +++ b/packages/cactus-api-client/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-cmd-api-server/package.json b/packages/cactus-cmd-api-server/package.json index 64d6694263..f4570cee19 100644 --- a/packages/cactus-cmd-api-server/package.json +++ b/packages/cactus-cmd-api-server/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-cmd-socketio-server/package.json b/packages/cactus-cmd-socketio-server/package.json index 638bb4d0c9..ed79b2fcfd 100644 --- a/packages/cactus-cmd-socketio-server/package.json +++ b/packages/cactus-cmd-socketio-server/package.json @@ -1,10 +1,41 @@ { "name": "@hyperledger/cactus-cmd-socketio-server", "version": "2.0.0-alpha.1", + "description": "Allows Cactus nodes to interact with HTLC ETH contracts", + "keywords": [ + "Hyperledger", + "Cactus", + "Integration", + "Blockchain", + "Distributed Ledger Technology" + ], + "homepage": "https://github.com/hyperledger/cacti#readme", + "bugs": { + "url": "https://github.com/hyperledger/cacti/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hyperledger/cacti.git" + }, "license": "Apache-2.0", - "main": "dist/src/main/typescript/index.js", - "module": "dist/src/main/typescript/index.js", - "types": "dist/src/main/typescript/index.d.ts", + "author": { + "name": "Hyperledger Cactus Contributors", + "email": "cactus@lists.hyperledger.org", + "url": "https://www.hyperledger.org/use/cacti" + }, + "contributors": [ + { + "name": "Please add yourself to the list of contributors", + "email": "your.name@example.com", + "url": "https://example.com" + } + ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "types": "dist/lib/main/typescript/index.d.ts", + "files": [ + "dist/*" + ], "scripts": { "build": "npm run build-ts && npm run build:dev:backend:postbuild", "build-ts": "tsc", diff --git a/packages/cactus-cmd-socketio-server/tsconfig.json b/packages/cactus-cmd-socketio-server/tsconfig.json index 2916d20e7a..6d60953dfc 100644 --- a/packages/cactus-cmd-socketio-server/tsconfig.json +++ b/packages/cactus-cmd-socketio-server/tsconfig.json @@ -2,8 +2,9 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "composite": true, - "outDir": "./dist/", - "tsBuildInfoFile": "../../.build-cache/cactus-cmd-socketio-server.tsbuildinfo", + "outDir": "./dist/lib", + "rootDir": "./src", + "tsBuildInfoFile": "../../.build-cache/cactus-cmd-socketio-server.tsbuildinfo" }, "include": [ "./src/main/typescript/business-logic-plugin/*.ts", @@ -13,9 +14,7 @@ "./src/main/typescript/util/*.ts", "./src/main/typescript/routing-interface/**/*.ts" ], - "exclude": [ - "copyStaticAssets.ts" - ], + "exclude": ["copyStaticAssets.ts"], "references": [ { "path": "../cactus-common/tsconfig.json" diff --git a/packages/cactus-common/package.json b/packages/cactus-common/package.json index 2baa19cca6..0ca3969710 100644 --- a/packages/cactus-common/package.json +++ b/packages/cactus-common/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-core-api/package.json b/packages/cactus-core-api/package.json index 9562828d21..902fc4b659 100644 --- a/packages/cactus-core-api/package.json +++ b/packages/cactus-core-api/package.json @@ -60,7 +60,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-core/package.json b/packages/cactus-core/package.json index c021993fe0..d7b112747a 100644 --- a/packages/cactus-core/package.json +++ b/packages/cactus-core/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-consortium-manual/package.json b/packages/cactus-plugin-consortium-manual/package.json index 397829b7f3..b4c75a8590 100644 --- a/packages/cactus-plugin-consortium-manual/package.json +++ b/packages/cactus-plugin-consortium-manual/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-htlc-eth-besu-erc20/package.json b/packages/cactus-plugin-htlc-eth-besu-erc20/package.json index 76a2613333..f8b6869954 100644 --- a/packages/cactus-plugin-htlc-eth-besu-erc20/package.json +++ b/packages/cactus-plugin-htlc-eth-besu-erc20/package.json @@ -1,92 +1,92 @@ { - "name": "@hyperledger/cactus-plugin-htlc-eth-besu-erc20", - "version": "2.0.0-alpha.1", - "description": "Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens", - "keywords": [ - "Hyperledger", - "Cactus", - "Integration", - "Blockchain", - "Distributed Ledger Technology" - ], - "homepage": "https://github.com/hyperledger/cacti#readme", - "bugs": { - "url": "https://github.com/hyperledger/cacti/issues" + "name": "@hyperledger/cactus-plugin-htlc-eth-besu-erc20", + "version": "2.0.0-alpha.1", + "description": "Allows Cactus nodes to interact with HTLC contracts with ERC-20 Tokens", + "keywords": [ + "Hyperledger", + "Cactus", + "Integration", + "Blockchain", + "Distributed Ledger Technology" + ], + "homepage": "https://github.com/hyperledger/cacti#readme", + "bugs": { + "url": "https://github.com/hyperledger/cacti/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hyperledger/cacti.git" + }, + "license": "Apache-2.0", + "author": { + "name": "Hyperledger Cactus Contributors", + "email": "cactus@lists.hyperledger.org", + "url": "https://www.hyperledger.org/use/cacti" + }, + "contributors": [ + { + "name": "Please add yourself to the list of contributors", + "email": "your.name@example.com", + "url": "https://example.com" }, - "repository": { - "type": "git", - "url": "git+https://github.com/hyperledger/cacti.git" + { + "name": "Peter Somogyvari", + "email": "peter.somogyvari@accenture.com", + "url": "https://accenture.com" }, - "license": "Apache-2.0", - "author": { - "name": "Hyperledger Cactus Contributors", - "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" - }, - "contributors": [ - { - "name": "Please add yourself to the list of contributors", - "email": "your.name@example.com", - "url": "https://example.com" - }, - { - "name": "Peter Somogyvari", - "email": "peter.somogyvari@accenture.com", - "url": "https://accenture.com" - }, - { - "name": "Jordi Giron", - "email": "jordi.giron.amezcua@accenture.com", - "url": "https://accenture.com" - } - ], - "main": "dist/lib/main/typescript/index.js", - "module": "dist/lib/main/typescript/index.js", - "browser": "dist/cactus-plugin-htlc-eth-besu-erc20.web.umd.js", - "types": "dist/lib/main/typescript/index.d.ts", - "files": [ - "dist/*" - ], - "scripts": { - "codegen": "run-p 'codegen:*'", - "codegen:openapi": "npm run generate-sdk", - "generate-sdk": "run-p 'generate-sdk:*'", - "generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected", - "generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected", - "watch": "npm-watch", - "webpack": "npm-run-all webpack:dev", - "webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web", - "webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js", - "webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js" - }, - "dependencies": { - "@hyperledger/cactus-common": "2.0.0-alpha.1", - "@hyperledger/cactus-core": "2.0.0-alpha.1", - "@hyperledger/cactus-core-api": "2.0.0-alpha.1", - "@hyperledger/cactus-plugin-ledger-connector-besu": "2.0.0-alpha.1", - "axios": "0.21.4", - "express": "4.17.1", - "joi": "17.9.1", - "openapi-types": "9.1.0", - "typescript-optional": "2.0.1" - }, - "devDependencies": { - "@types/express": "4.17.13" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - }, - "publishConfig": { - "access": "public" - }, - "browserMinified": "dist/cactus-plugin-htlc-eth-besu-erc20.web.umd.min.js", - "mainMinified": "dist/cactus-plugin-htlc-eth-besu-erc20.node.umd.min.js", - "watch": { - "codegen:openapi": { - "patterns": [ - "./src/main/json/openapi.json" - ] - } + { + "name": "Jordi Giron", + "email": "jordi.giron.amezcua@accenture.com", + "url": "https://accenture.com" + } + ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "browser": "dist/cactus-plugin-htlc-eth-besu-erc20.web.umd.js", + "types": "dist/lib/main/typescript/index.d.ts", + "files": [ + "dist/*" + ], + "scripts": { + "codegen": "run-p 'codegen:*'", + "codegen:openapi": "npm run generate-sdk", + "generate-sdk": "run-p 'generate-sdk:*'", + "generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected", + "generate-sdk:kotlin": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g kotlin -o ./src/main/kotlin/generated/openapi/kotlin-client/ --reserved-words-mappings protected=protected", + "watch": "npm-watch", + "webpack": "npm-run-all webpack:dev", + "webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web", + "webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js", + "webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js" + }, + "dependencies": { + "@hyperledger/cactus-common": "2.0.0-alpha.1", + "@hyperledger/cactus-core": "2.0.0-alpha.1", + "@hyperledger/cactus-core-api": "2.0.0-alpha.1", + "@hyperledger/cactus-plugin-ledger-connector-besu": "2.0.0-alpha.1", + "axios": "0.21.4", + "express": "4.17.1", + "joi": "17.9.1", + "openapi-types": "9.1.0", + "typescript-optional": "2.0.1" + }, + "devDependencies": { + "@types/express": "4.17.13" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "publishConfig": { + "access": "public" + }, + "browserMinified": "dist/cactus-plugin-htlc-eth-besu-erc20.web.umd.min.js", + "mainMinified": "dist/cactus-plugin-htlc-eth-besu-erc20.node.umd.min.js", + "watch": { + "codegen:openapi": { + "patterns": [ + "./src/main/json/openapi.json" + ] } + } } diff --git a/packages/cactus-plugin-htlc-eth-besu/package.json b/packages/cactus-plugin-htlc-eth-besu/package.json index b5ef22f024..b66fd235ac 100644 --- a/packages/cactus-plugin-htlc-eth-besu/package.json +++ b/packages/cactus-plugin-htlc-eth-besu/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-keychain-aws-sm/package.json b/packages/cactus-plugin-keychain-aws-sm/package.json index a6d99eac7d..954cae9221 100644 --- a/packages/cactus-plugin-keychain-aws-sm/package.json +++ b/packages/cactus-plugin-keychain-aws-sm/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-keychain-azure-kv/package.json b/packages/cactus-plugin-keychain-azure-kv/package.json index 762adc47ea..1af246198e 100644 --- a/packages/cactus-plugin-keychain-azure-kv/package.json +++ b/packages/cactus-plugin-keychain-azure-kv/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-keychain-google-sm/package.json b/packages/cactus-plugin-keychain-google-sm/package.json index d30089a4e0..58a781afa3 100644 --- a/packages/cactus-plugin-keychain-google-sm/package.json +++ b/packages/cactus-plugin-keychain-google-sm/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-keychain-memory-wasm/package.json b/packages/cactus-plugin-keychain-memory-wasm/package.json index 7ed72aea04..3a59491216 100644 --- a/packages/cactus-plugin-keychain-memory-wasm/package.json +++ b/packages/cactus-plugin-keychain-memory-wasm/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-keychain-memory/package.json b/packages/cactus-plugin-keychain-memory/package.json index 36a3f636c0..b6a77fb5b2 100644 --- a/packages/cactus-plugin-keychain-memory/package.json +++ b/packages/cactus-plugin-keychain-memory/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-keychain-vault/package.json b/packages/cactus-plugin-keychain-vault/package.json index 0408a94266..a023c9b565 100644 --- a/packages/cactus-plugin-keychain-vault/package.json +++ b/packages/cactus-plugin-keychain-vault/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-besu/package.json b/packages/cactus-plugin-ledger-connector-besu/package.json index 1cc55d8d38..ebf0a6b63e 100644 --- a/packages/cactus-plugin-ledger-connector-besu/package.json +++ b/packages/cactus-plugin-ledger-connector-besu/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-corda/package.json b/packages/cactus-plugin-ledger-connector-corda/package.json index b3685801ce..f11db9cfa9 100644 --- a/packages/cactus-plugin-ledger-connector-corda/package.json +++ b/packages/cactus-plugin-ledger-connector-corda/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-fabric/package.json b/packages/cactus-plugin-ledger-connector-fabric/package.json index 1cfb8ba58f..189a26671a 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/package.json +++ b/packages/cactus-plugin-ledger-connector-fabric/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/package.json b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/package.json index 34468aeb1a..3563938b9e 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/package.json +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/package.json @@ -1,22 +1,53 @@ { "name": "@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio", "version": "2.0.0-alpha.1", + "description": "Allows Cactus nodes to connect to a Ethereum ledger ", + "keywords": [ + "Hyperledger", + "Cactus", + "Integration", + "Blockchain", + "Distributed Ledger Technology" + ], + "homepage": "https://github.com/hyperledger/cacti#readme", + "bugs": { + "url": "https://github.com/hyperledger/cacti/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hyperledger/cacti.git" + }, "license": "Apache-2.0", - "main": "dist/index.js", - "module": "dist/index.js", - "types": "dist/index.d.ts", + "author": { + "name": "Hyperledger Cactus Contributors", + "email": "cactus@lists.hyperledger.org", + "url": "https://www.hyperledger.org/use/cacti" + }, + "contributors": [ + { + "name": "Please add yourself to the list of contributors", + "email": "your.name@example.com", + "url": "https://example.com" + } + ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "types": "dist/lib/main/typescript/index.d.ts", "scripts": { "start": "cd ./dist && node common/core/bin/www.js", "debug": "nodemon --inspect ./dist/common/core/bin/www.js", "build": "npm run build-ts && npm run build:dev:backend:postbuild", "build-ts": "tsc", "build:dev:backend:postbuild": "npm run init-ethereum", - "init-ethereum": "cp -af ../../yarn.lock ./dist/yarn.lock" + "init-ethereum": "cp -af ../../yarn.lock ./dist/lib/yarn.lock" }, + "files": [ + "dist/*" + ], "dependencies": { "@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.1", "@hyperledger/cactus-common": "2.0.0-alpha.1", - "@types/node": "14.17.32", + "@types/node": "15.14.7", "body-parser": "1.17.2", "cookie-parser": "1.4.6", "debug": "3.1.0", @@ -27,7 +58,6 @@ "log4js": "6.4.1", "morgan": "1.10.0", "serve-favicon": "2.4.5", - "shelljs": "0.8.5", "socket.io": "4.5.4", "web3": "1.8.1" }, @@ -38,6 +68,17 @@ "@types/config": "0.0.41", "@types/cookie-parser": "1.4.3", "@types/express": "4.17.13", - "@types/http-errors": "2.0.1" + "@types/http-errors": "2.0.1", + "@types/node": "15.14.7", + "@types/shelljs": "0.8.12", + "shelljs": "0.8.5", + "socket.io-client": "4.5.4" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "publishConfig": { + "access": "public" } } diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/package.json b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/package.json index 2c5cbff609..192c179b1b 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/package.json +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/package.json @@ -13,11 +13,12 @@ "config": "1.31.0", "ethereumjs-common": "1.5.2", "ethereumjs-tx": "2.1.2", + "socket.io-client": "4.5.4", "ts-node": "9.1.1", - "web3": "1.7.0", - "socket.io-client": "4.5.4" + "web3": "1.7.0" }, "devDependencies": { - "typescript": "4.9.5" + "typescript": "4.9.5", + "@types/shelljs": "^0.8.12" } } diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNonceHex.ts b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNonceHex.ts index e41f3a7326..8b9ff0a667 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNonceHex.ts +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNonceHex.ts @@ -60,7 +60,7 @@ import { io } from "socket.io-client"; reqID: reqID, }; - const json2str = (jsonObj) => { + const json2str = (jsonObj: object) => { try { return JSON.stringify(jsonObj); } catch (error) { @@ -68,25 +68,25 @@ import { io } from "socket.io-client"; } }; - socket.on("connect_error", (err) => { + socket.on("connect_error", (err: object) => { console.log("####connect_error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("connect_timeout", (err) => { + socket.on("connect_timeout", (err: object) => { console.log("####Error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("error", (err) => { + socket.on("error", (err: object) => { console.log("####Error:", err); }); - socket.on("eventReceived", function (res) { + socket.on("eventReceived", function (res: object) { // output the data received from the client console.log("#[recv]eventReceived, res: " + json2str(res)); }); diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNumericBalance.ts b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNumericBalance.ts index e24bb5e77c..7fb491742a 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNumericBalance.ts +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_getNumericBalance.ts @@ -57,7 +57,7 @@ import { io } from "socket.io-client"; reqID: reqID, }; - const json2str = (jsonObj) => { + const json2str = (jsonObj: object) => { try { return JSON.stringify(jsonObj); } catch (error) { @@ -65,25 +65,25 @@ import { io } from "socket.io-client"; } }; - socket.on("connect_error", (err) => { + socket.on("connect_error", (err: object) => { console.log("####connect_error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("connect_timeout", (err) => { + socket.on("connect_timeout", (err: object) => { console.log("####Error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("error", (err) => { + socket.on("error", (err: object) => { console.log("####Error:", err); }); - socket.on("eventReceived", function (res) { + socket.on("eventReceived", function (res: object) { // output the data received from the client console.log("#[recv]eventReceived, res: " + json2str(res)); }); diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_sendRawTransaction.ts b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_sendRawTransaction.ts index 162ece0030..00a9bd61e5 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_sendRawTransaction.ts +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_sendRawTransaction.ts @@ -65,7 +65,7 @@ import { io } from "socket.io-client"; const gas = 21000; - const json2str = (jsonObj) => { + const json2str = (jsonObj: any) => { try { return JSON.stringify(jsonObj); } catch (error) { @@ -75,7 +75,7 @@ import { io } from "socket.io-client"; const makeTxTransferNumericAsset = () => { //web3_v1.2.9_support - web3.eth.getTransactionCount("0x" + fromAddress).then((_nance) => { + web3.eth.getTransactionCount("0x" + fromAddress).then((_nance: any) => { const txnCount = _nance; // NOTE: No need to count up. @@ -115,25 +115,25 @@ import { io } from "socket.io-client"; }); }; - socket.on("connect_error", (err) => { + socket.on("connect_error", (err: object) => { console.log("####connect_error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("connect_timeout", (err) => { + socket.on("connect_timeout", (err: object) => { console.log("####Error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("error", (err) => { + socket.on("error", (err: any) => { console.log("####Error:", err); }); - socket.on("eventReceived", function (res) { + socket.on("eventReceived", function (res: object) { // output the data received from the client console.log("#[recv]eventReceived, res: " + json2str(res)); }); diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_transferNumericAsset.ts b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_transferNumericAsset.ts index 9baa08377c..711c76a9cb 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_transferNumericAsset.ts +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/src/test/typescript/unit-test/validatorDriver_transferNumericAsset.ts @@ -70,7 +70,7 @@ import { io } from "socket.io-client"; reqID: reqID, }; - const json2str = (jsonObj) => { + const json2str = (jsonObj: object) => { try { return JSON.stringify(jsonObj); } catch (error) { @@ -78,25 +78,25 @@ import { io } from "socket.io-client"; } }; - socket.on("connect_error", (err) => { + socket.on("connect_error", (err: object) => { console.log("####connect_error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("connect_timeout", (err) => { + socket.on("connect_timeout", (err: object) => { console.log("####Error:", err); // end communication socket.disconnect(); process.exit(0); }); - socket.on("error", (err) => { + socket.on("error", (err: object) => { console.log("####Error:", err); }); - socket.on("eventReceived", function (res) { + socket.on("eventReceived", function (res: any) { // output the data received from the client console.log("#[recv]eventReceived, res: " + json2str(res)); }); diff --git a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/tsconfig.json b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/tsconfig.json index 336b4d803f..c760aaf176 100644 --- a/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/tsconfig.json +++ b/packages/cactus-plugin-ledger-connector-go-ethereum-socketio/tsconfig.json @@ -1,20 +1,24 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": "./src/main/typescript", + "rootDir": "./src", "composite": true, - "outDir": "./dist", + "outDir": "./dist/lib/", + "declarationDir": "./dist/lib", "sourceMap": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "tsBuildInfoFile": "../../.build-cache/cactus-plugin-ledger-connector-go-ethereum-socketio.tsbuildinfo", + "tsBuildInfoFile": "../../.build-cache/cactus-plugin-ledger-connector-go-ethereum-socketio.tsbuildinfo" }, "include": [ "./src/main/typescript/common/core/*.ts", "./src/main/typescript/common/core/bin/*.ts", "./src/main/typescript/common/core/config/*.ts", "./src/main/typescript/connector/*.ts", - "./src/main/typescript/*.ts" + "./src/main/typescript/*.ts", + "./src/test/typescript/**/*.ts", + "src/**/*.json", + "src/**/*.sol" ], "references": [ { diff --git a/packages/cactus-plugin-ledger-connector-iroha/package.json b/packages/cactus-plugin-ledger-connector-iroha/package.json index 086ab6a594..9709741eac 100644 --- a/packages/cactus-plugin-ledger-connector-iroha/package.json +++ b/packages/cactus-plugin-ledger-connector-iroha/package.json @@ -22,7 +22,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-iroha2/package.json b/packages/cactus-plugin-ledger-connector-iroha2/package.json index afd0b80d13..4accd31d4e 100644 --- a/packages/cactus-plugin-ledger-connector-iroha2/package.json +++ b/packages/cactus-plugin-ledger-connector-iroha2/package.json @@ -24,7 +24,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-quorum/package.json b/packages/cactus-plugin-ledger-connector-quorum/package.json index 782c62dfd0..e2ae8b9e4d 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/package.json +++ b/packages/cactus-plugin-ledger-connector-quorum/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-ledger-connector-sawtooth-socketio/package.json b/packages/cactus-plugin-ledger-connector-sawtooth-socketio/package.json index ed89616e78..0e94cbe0fd 100644 --- a/packages/cactus-plugin-ledger-connector-sawtooth-socketio/package.json +++ b/packages/cactus-plugin-ledger-connector-sawtooth-socketio/package.json @@ -1,17 +1,45 @@ { "name": "@hyperledger/cactus-plugin-ledger-connector-sawtooth-socketio", "version": "2.0.0-alpha.1", + "description": "Allows Cactus nodes to connect to a Sawtooth ledger", + "keywords": [ + "Hyperledger", + "Cactus", + "Integration", + "Blockchain", + "Distributed Ledger Technology" + ], + "homepage": "https://github.com/hyperledger/cacti#readme", + "bugs": { + "url": "https://github.com/hyperledger/cacti/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hyperledger/cacti.git" + }, "license": "Apache-2.0", - "main": "dist/index.js", - "module": "dist/index.js", - "types": "dist/index.d.ts", + "author": { + "name": "Hyperledger Cactus Contributors", + "email": "cactus@lists.hyperledger.org", + "url": "https://www.hyperledger.org/use/cacti" + }, + "contributors": [ + { + "name": "Please add yourself to the list of contributors", + "email": "your.name@example.com", + "url": "https://example.com" + } + ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "types": "dist/lib/main/typescript/index.d.ts", "scripts": { "start": "cd ./dist && node common/core/bin/www.js", "debug": "nodemon --inspect ./dist/common/core/bin/www.js", "build": "npm run build-ts && npm run build:dev:backend:postbuild", "build-ts": "tsc", "build:dev:backend:postbuild": "npm run init-sawtooth", - "init-sawtooth": "cp -af ../../yarn.lock ./dist/yarn.lock" + "init-sawtooth": "cp -af ../../yarn.lock ./dist/lib/yarn.lock" }, "dependencies": { "@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.1", @@ -39,5 +67,15 @@ "@types/cookie-parser": "1.4.3", "@types/express": "4.17.13", "@types/http-errors": "2.0.1" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "files": [ + "dist/*" + ], + "publishConfig": { + "access": "public" } } diff --git a/packages/cactus-plugin-ledger-connector-sawtooth-socketio/tsconfig.json b/packages/cactus-plugin-ledger-connector-sawtooth-socketio/tsconfig.json index ea43e4c32e..b223436d86 100644 --- a/packages/cactus-plugin-ledger-connector-sawtooth-socketio/tsconfig.json +++ b/packages/cactus-plugin-ledger-connector-sawtooth-socketio/tsconfig.json @@ -1,20 +1,21 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": "./src/main/typescript", + "rootDir": "./src", "composite": true, - "outDir": "./dist", + "outDir": "./dist/lib", "sourceMap": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "tsBuildInfoFile": "../../.build-cache/cactus-plugin-ledger-connector-sawtooth-socketio.tsbuildinfo", + "tsBuildInfoFile": "../../.build-cache/cactus-plugin-ledger-connector-sawtooth-socketio.tsbuildinfo" }, "include": [ "./src/main/typescript/common/core/*.ts", "./src/main/typescript/common/core/bin/*.ts", "./src/main/typescript/common/core/config/*.ts", "./src/main/typescript/connector/*.ts", - "./src/main/typescript/*.ts" + "./src/main/typescript/*.ts", + "./src/test/typescript/integration/*.ts" ], "references": [ { diff --git a/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/package.json b/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/package.json index 07cb3e33fe..4400c20980 100644 --- a/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/package.json +++ b/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/package.json @@ -1,7 +1,42 @@ { "name": "@hyperledger/cactus-plugin-ledger-connector-tcs-huawei-socketio", "version": "2.0.0-alpha.1", + "description": "Allows Cactus nodes to connect to a Trusted Cross-chain Service-Huawei", + "keywords": [ + "Hyperledger", + "Cactus", + "Integration", + "Blockchain", + "Distributed Ledger Technology" + ], + "homepage": "https://github.com/hyperledger/cacti#readme", + "bugs": { + "url": "https://github.com/hyperledger/cacti/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hyperledger/cacti.git" + }, "license": "Apache-2.0", + "author": { + "name": "Hyperledger Cactus Contributors", + "email": "cactus@lists.hyperledger.org", + "url": "https://www.hyperledger.org/use/cacti" + }, + "contributors": [ + { + "name": "Please add yourself to the list of contributors", + "email": "your.name@example.com", + "url": "https://example.com" + } + ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "browser": "dist/cactus-plugin-htlc-eth-besu.web.umd.js", + "types": "dist/lib/main/typescript/index.d.ts", + "files": [ + "dist/*" + ], "scripts": { "start": "cd ./dist && node common/core/bin/www.js", "debug": "nodemon --inspect ./dist/common/core/bin/www.js", @@ -33,5 +68,12 @@ "@types/cookie-parser": "1.4.3", "@types/express": "4.17.13", "@types/http-errors": "2.0.1" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "publishConfig": { + "access": "public" } } diff --git a/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/tsconfig.json b/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/tsconfig.json index 952920156b..9eec1442cb 100644 --- a/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/tsconfig.json +++ b/packages/cactus-plugin-ledger-connector-tcs-huawei-socketio/tsconfig.json @@ -1,13 +1,15 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "rootDir": "./src/main/typescript", "composite": true, - "outDir": "./dist", + "outDir": "./dist/lib/", + "declarationDir": "dist/lib", + "resolveJsonModule": true, + "rootDir": "./src", "sourceMap": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "tsBuildInfoFile": "../../.build-cache/cactus-plugin-ledger-connector-tcs-huawei-socketio.tsbuildinfo", + "tsBuildInfoFile": "../../.build-cache/cactus-plugin-ledger-connector-tcs-huawei-socketio.tsbuildinfo" }, "include": [ "./src/main/typescript/common/core/*.ts", diff --git a/packages/cactus-plugin-ledger-connector-ubiquity/package.json b/packages/cactus-plugin-ledger-connector-ubiquity/package.json index a68637d04b..a1fcc8e0b0 100644 --- a/packages/cactus-plugin-ledger-connector-ubiquity/package.json +++ b/packages/cactus-plugin-ledger-connector-ubiquity/package.json @@ -1,102 +1,102 @@ { - "name": "@hyperledger/cactus-plugin-ledger-connector-ubiquity", - "version": "2.0.0-alpha.1", - "description": "Allows Cacti nodes to connect to a set of public blockchains.", - "keywords": [ - "Hyperledger", - "Cactus", - "Integration", - "Blockchain", - "Distributed Ledger Technology", - "Ubiquity" - ], - "homepage": "https://github.com/hyperledger/cacti#readme", - "bugs": { - "url": "https://github.com/hyperledger/cacti/issues" + "name": "@hyperledger/cactus-plugin-ledger-connector-ubiquity", + "version": "2.0.0-alpha.1", + "description": "Allows Cacti nodes to connect to a set of public blockchains.", + "keywords": [ + "Hyperledger", + "Cactus", + "Integration", + "Blockchain", + "Distributed Ledger Technology", + "Ubiquity" + ], + "homepage": "https://github.com/hyperledger/cacti#readme", + "bugs": { + "url": "https://github.com/hyperledger/cacti/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hyperledger/cacti.git" + }, + "license": "Apache-2.0", + "author": { + "name": "Hyperledger Cactus Contributors", + "email": "cactus@lists.hyperledger.org", + "url": "https://www.hyperledger.org/use/cacti" + }, + "contributors": [ + { + "name": "Please add yourself to the list of contributors", + "email": "your.name@example.com", + "url": "https://example.com" }, - "repository": { - "type": "git", - "url": "git+https://github.com/hyperledger/cacti.git" - }, - "license": "Apache-2.0", - "author": { - "name": "Hyperledger Cactus Contributors", - "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" - }, - "contributors": [ - { - "name": "Please add yourself to the list of contributors", - "email": "your.name@example.com", - "url": "https://example.com" - }, - { - "name": "Rafael Belchior", - "email": "rbelchior@blockdaemon.com", - "url": "https://blockdaemon.com" - } - ], - "main": "dist/lib/main/typescript/index.js", - "module": "dist/lib/main/typescript/index.js", - "browser": "dist/cactus-plugin-ledger-connector-ubiquity.web.umd.js", - "types": "dist/lib/main/typescript/index.d.ts", - "files": [ - "dist/*" - ], - "scripts": { - "codegen": "run-p 'codegen:*'", - "codegen:openapi": "npm run generate-sdk", - "generate-sdk": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected", - "watch": "npm-watch", - "webpack": "npm-run-all webpack:dev", - "webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web", - "webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js", - "webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js", - "tsc": "tsc --project ./tsconfig.json" - }, - "dependencies": { - "@hyperledger/cactus-core": "2.0.0-alpha.1", - "@hyperledger/cactus-core-api": "2.0.0-alpha.1", - "@ubiquity/ubiquity-ts-client-modified": "https://github.com/RafaelAPB/ubiquity-ts-client-mirror.git", - "dotenv": "16.0.1", - "prom-client": "13.2.0", - "typescript-optional": "2.0.1" - }, - "devDependencies": { - "@hyperledger/cactus-common": "2.0.0-alpha.1", - "@hyperledger/cactus-test-tooling": "2.0.0-alpha.1", - "@types/express": "4.17.8" - }, - "engines": { - "node": ">=10", - "npm": ">=6" - }, - "publishConfig": { - "access": "public" + { + "name": "Rafael Belchior", + "email": "rbelchior@blockdaemon.com", + "url": "https://blockdaemon.com" + } + ], + "main": "dist/lib/main/typescript/index.js", + "module": "dist/lib/main/typescript/index.js", + "browser": "dist/cactus-plugin-ledger-connector-ubiquity.web.umd.js", + "types": "dist/lib/main/typescript/index.d.ts", + "files": [ + "dist/*" + ], + "scripts": { + "codegen": "run-p 'codegen:*'", + "codegen:openapi": "npm run generate-sdk", + "generate-sdk": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected", + "watch": "npm-watch", + "webpack": "npm-run-all webpack:dev", + "webpack:dev": "npm-run-all webpack:dev:node webpack:dev:web", + "webpack:dev:node": "webpack --env=dev --target=node --config ../../webpack.config.js", + "webpack:dev:web": "webpack --env=dev --target=web --config ../../webpack.config.js", + "tsc": "tsc --project ./tsconfig.json" + }, + "dependencies": { + "@hyperledger/cactus-core": "2.0.0-alpha.1", + "@hyperledger/cactus-core-api": "2.0.0-alpha.1", + "@ubiquity/ubiquity-ts-client-modified": "https://github.com/RafaelAPB/ubiquity-ts-client-mirror.git", + "dotenv": "16.0.1", + "prom-client": "13.2.0", + "typescript-optional": "2.0.1" + }, + "devDependencies": { + "@hyperledger/cactus-common": "2.0.0-alpha.1", + "@hyperledger/cactus-test-tooling": "2.0.0-alpha.1", + "@types/express": "4.17.8" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "publishConfig": { + "access": "public" + }, + "browserMinified": "dist/cactus-plugin-ledger-connector-ubiquity.web.umd.min.js", + "mainMinified": "dist/cactus-plugin-ledger-connector-ubiquity.node.umd.min.js", + "watch": { + "codegen:openapi": { + "patterns": [ + "./src/main/json/openapi.json" + ] }, - "browserMinified": "dist/cactus-plugin-ledger-connector-ubiquity.web.umd.min.js", - "mainMinified": "dist/cactus-plugin-ledger-connector-ubiquity.node.umd.min.js", - "watch": { - "codegen:openapi": { - "patterns": [ - "./src/main/json/openapi.json" - ] - }, - "tsc": { - "patterns": [ - "src/", - "src/*/json/**/openapi*" - ], - "ignore": [ - "src/**/generated/*" - ], - "extensions": [ - "ts", - "json" - ], - "quiet": true, - "verbose": false, - "runOnChangeOnly": true - } + "tsc": { + "patterns": [ + "src/", + "src/*/json/**/openapi*" + ], + "ignore": [ + "src/**/generated/*" + ], + "extensions": [ + "ts", + "json" + ], + "quiet": true, + "verbose": false, + "runOnChangeOnly": true } + } } diff --git a/packages/cactus-plugin-ledger-connector-xdai/package.json b/packages/cactus-plugin-ledger-connector-xdai/package.json index bcdd5891f9..a1da9af8d0 100644 --- a/packages/cactus-plugin-ledger-connector-xdai/package.json +++ b/packages/cactus-plugin-ledger-connector-xdai/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-odap-hermes/package.json b/packages/cactus-plugin-odap-hermes/package.json index 60fa6a5188..223315ded0 100644 --- a/packages/cactus-plugin-odap-hermes/package.json +++ b/packages/cactus-plugin-odap-hermes/package.json @@ -18,7 +18,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-plugin-persistence-ethereum/package.json b/packages/cactus-plugin-persistence-ethereum/package.json index bbbb1bfcb8..b0fee5c929 100644 --- a/packages/cactus-plugin-persistence-ethereum/package.json +++ b/packages/cactus-plugin-persistence-ethereum/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-api-client/package.json b/packages/cactus-test-api-client/package.json index 268a97c572..0fa27c1562 100644 --- a/packages/cactus-test-api-client/package.json +++ b/packages/cactus-test-api-client/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-cmd-api-server/package.json b/packages/cactus-test-cmd-api-server/package.json index 117a03829c..729f61c3dc 100644 --- a/packages/cactus-test-cmd-api-server/package.json +++ b/packages/cactus-test-cmd-api-server/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-plugin-consortium-manual/package.json b/packages/cactus-test-plugin-consortium-manual/package.json index df9404b1e1..fa5ffbfff9 100644 --- a/packages/cactus-test-plugin-consortium-manual/package.json +++ b/packages/cactus-test-plugin-consortium-manual/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-plugin-htlc-eth-besu-erc20/package.json b/packages/cactus-test-plugin-htlc-eth-besu-erc20/package.json index e361a8e41b..d8b0c20204 100644 --- a/packages/cactus-test-plugin-htlc-eth-besu-erc20/package.json +++ b/packages/cactus-test-plugin-htlc-eth-besu-erc20/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-plugin-htlc-eth-besu/package.json b/packages/cactus-test-plugin-htlc-eth-besu/package.json index 24dbf3a3fb..9b20df184f 100644 --- a/packages/cactus-test-plugin-htlc-eth-besu/package.json +++ b/packages/cactus-test-plugin-htlc-eth-besu/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-plugin-ledger-connector-besu/package.json b/packages/cactus-test-plugin-ledger-connector-besu/package.json index 5d6207cae7..9a136f9d63 100644 --- a/packages/cactus-test-plugin-ledger-connector-besu/package.json +++ b/packages/cactus-test-plugin-ledger-connector-besu/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-plugin-ledger-connector-quorum/package.json b/packages/cactus-test-plugin-ledger-connector-quorum/package.json index e8e4d55a52..cd6edf07c3 100644 --- a/packages/cactus-test-plugin-ledger-connector-quorum/package.json +++ b/packages/cactus-test-plugin-ledger-connector-quorum/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-tooling/package.json b/packages/cactus-test-tooling/package.json index 49bd1409c9..a82d4ed376 100644 --- a/packages/cactus-test-tooling/package.json +++ b/packages/cactus-test-tooling/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-verifier-client/package.json b/packages/cactus-test-verifier-client/package.json index b76538fa40..caf535e9cf 100644 --- a/packages/cactus-test-verifier-client/package.json +++ b/packages/cactus-test-verifier-client/package.json @@ -21,7 +21,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/packages/cactus-test-verifier-client/tsconfig.json b/packages/cactus-test-verifier-client/tsconfig.json index 443b21d086..19994372ba 100644 --- a/packages/cactus-test-verifier-client/tsconfig.json +++ b/packages/cactus-test-verifier-client/tsconfig.json @@ -2,7 +2,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "composite": true, - "outDir": "./dist/", + "outDir": "./dist/lib", "declarationDir": "dist/", "resolveJsonModule": true, "rootDir": "./src", diff --git a/packages/cactus-verifier-client/package.json b/packages/cactus-verifier-client/package.json index d63c5c0be7..9e697cd38d 100644 --- a/packages/cactus-verifier-client/package.json +++ b/packages/cactus-verifier-client/package.json @@ -29,7 +29,7 @@ "author": { "name": "Hyperledger Cactus Contributors", "email": "cactus@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cactus" + "url": "https://www.hyperledger.org/use/cacti" }, "contributors": [ { diff --git a/yarn.lock b/yarn.lock index 97fb754f65..1ac7d563b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7174,7 +7174,8 @@ __metadata: "@types/cookie-parser": 1.4.3 "@types/express": 4.17.13 "@types/http-errors": 2.0.1 - "@types/node": 14.17.32 + "@types/node": 15.14.7 + "@types/shelljs": 0.8.12 body-parser: 1.17.2 cookie-parser: 1.4.6 debug: 3.1.0 @@ -7187,6 +7188,7 @@ __metadata: serve-favicon: 2.4.5 shelljs: 0.8.5 socket.io: 4.5.4 + socket.io-client: 4.5.4 web3: 1.8.1 languageName: unknown linkType: soft @@ -11501,7 +11503,7 @@ __metadata: languageName: node linkType: hard -"@types/glob@npm:*, @types/glob@npm:^7.1.1": +"@types/glob@npm:*, @types/glob@npm:^7.1.1, @types/glob@npm:~7.2.0": version: 7.2.0 resolution: "@types/glob@npm:7.2.0" dependencies: @@ -12196,6 +12198,16 @@ __metadata: languageName: node linkType: hard +"@types/shelljs@npm:0.8.12": + version: 0.8.12 + resolution: "@types/shelljs@npm:0.8.12" + dependencies: + "@types/glob": ~7.2.0 + "@types/node": "*" + checksum: ffb47809abef9ee53f900c6b49adb1382d1d78af7f8b50dd474534e3f73127bc4a3849394e4c9de16481cd50203b12464141b4b49d48e88ba6b4c7cc2c85948c + languageName: node + linkType: hard + "@types/sockjs@npm:^0.3.33": version: 0.3.33 resolution: "@types/sockjs@npm:0.3.33"