Skip to content

Commit

Permalink
Log when fail to create user (#42)
Browse files Browse the repository at this point in the history
* Change throw error to log

* Run unify versions to 1.0.14
  • Loading branch information
felipe.fuerback authored Feb 19, 2024
1 parent db528b0 commit e23c2ff
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 47 deletions.
2 changes: 1 addition & 1 deletion chain-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gala-chain/api",
"version": "1.0.13",
"version": "1.0.14",
"description": "Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.",
"license": "Apache-2.0",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion chain-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @gala-chain/cli
$ galachain COMMAND
running command...
$ galachain (--version)
@gala-chain/cli/1.0.13 linux-x64 node-v18.17.0
@gala-chain/cli/1.0.14 linux-x64 node-v18.17.1
$ galachain --help [COMMAND]
USAGE
$ galachain COMMAND
Expand Down
12 changes: 6 additions & 6 deletions chain-cli/chaincode-template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galachain/product",
"version": "1.0.13",
"version": "1.0.14",
"description": "Product Chaincode",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
Expand All @@ -21,16 +21,16 @@
"update-snapshot": "jest --updateSnapshot"
},
"dependencies": {
"@gala-chain/api": "1.0.13",
"@gala-chain/chaincode": "1.0.13",
"@gala-chain/api": "1.0.14",
"@gala-chain/chaincode": "1.0.14",
"dotenv": "^16.0.1",
"fabric-contract-api": "2.4.2",
"fabric-shim": "2.4.2"
},
"devDependencies": {
"@gala-chain/cli": "1.0.13",
"@gala-chain/client": "1.0.13",
"@gala-chain/test": "1.0.13",
"@gala-chain/cli": "1.0.14",
"@gala-chain/client": "1.0.14",
"@gala-chain/test": "1.0.14",
"@types/axios": "^0.14.0",
"@types/jest": "^29.5.12",
"@types/node": "^16.11.41",
Expand Down
2 changes: 1 addition & 1 deletion chain-cli/oclif.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.13",
"version": "1.0.14",
"commands": {
"connect": {
"id": "connect",
Expand Down
4 changes: 2 additions & 2 deletions chain-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gala-chain/cli",
"version": "1.0.13",
"version": "1.0.14",
"description": "CLI for GalaChain to manage and deploy chaincodes",
"license": "Apache-2.0",
"bin": {
Expand All @@ -14,7 +14,7 @@
"/oclif.manifest.json"
],
"dependencies": {
"@gala-chain/api": "1.0.13",
"@gala-chain/api": "1.0.14",
"@noble/secp256k1": "^1.7.1",
"@oclif/core": "^2",
"@oclif/plugin-help": "^2",
Expand Down
4 changes: 2 additions & 2 deletions chain-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gala-chain/client",
"version": "1.0.13",
"version": "1.0.14",
"description": "GalaChain client library",
"license": "Apache-2.0",
"scripts": {
Expand All @@ -21,7 +21,7 @@
"lib"
],
"dependencies": {
"@gala-chain/api": "1.0.13",
"@gala-chain/api": "1.0.14",
"axios": "^1.6.0",
"jsonschema": "^1.4.1",
"tslib": "^2.6.2",
Expand Down
2 changes: 1 addition & 1 deletion chain-client/src/rest-api/RestApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class RestApiClientBuilder extends ChainClientBuilder {
const resp = await axios.post(`${this.restApiUrl}/identity/ensure-user`, payload, { headers });
const status = resp.data.status;
if (![1, 2, 3].includes(status)) {
throw new Error(`Failed to create user ${this.credentials.adminKey}: ${resp.data}`);
console.warn(`Failed to create user ${this.credentials.adminKey}: ${JSON.stringify(resp.data)}`);
}
})
.catch((e) => {
Expand Down
6 changes: 3 additions & 3 deletions chain-test/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@gala-chain/test",
"version": "1.0.13",
"version": "1.0.14",
"description": "Unit testing and integration testing for GalaChain",
"license": "Apache-2.0",
"dependencies": {
"@gala-chain/client": "1.0.13",
"@gala-chain/client": "1.0.14",
"nanoid": "^3.3.6",
"tslib": "^2.6.2",
"path": "0.12.7",
"process": "0.11.10",
"@jest/globals": "29.7.0"
},
"peerDependencies": {
"@gala-chain/api": "1.0.13",
"@gala-chain/api": "1.0.14",
"bignumber.js": "*",
"class-transformer": "*",
"elliptic": "*",
Expand Down
4 changes: 2 additions & 2 deletions chaincode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gala-chain/chaincode",
"version": "1.0.13",
"version": "1.0.14",
"description": "Framework for building chaincodes on GalaChain",
"license": "Apache-2.0",
"type": "commonjs",
Expand All @@ -21,7 +21,7 @@
"test": "jest"
},
"dependencies": {
"@gala-chain/api": "1.0.13",
"@gala-chain/api": "1.0.14",
"fabric-contract-api": "2.4.2",
"fabric-shim": "2.4.2",
"nanoid": "^3.3.6",
Expand Down
28 changes: 13 additions & 15 deletions licenses/licenses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@
"@colors/[email protected]","@colors/colors","1.6.0","https://github.com/DABH/colors.js","get colors in your node.js console","MIT"
"@cspotcode/[email protected]","@cspotcode/source-map-support","0.8.1","https://github.com/cspotcode/node-source-map-support","Fixes stack traces for files with source maps","MIT"
"@dabh/[email protected]","@dabh/diagnostics","2.0.3","https://github.com/3rd-Eden/diagnostics","Tools for debugging your node.js modules and event loop","MIT"
"@datadog/native-appsec@4.0.0","@datadog/native-appsec","4.0.0","https://github.com/DataDog/dd-native-appsec-js","Node.js bindings for libddwaf","Apache-2.0"
"@datadog/[email protected].1","@datadog/native-iast-rewriter","2.2.1","https://github.com/DataDog/dd-native-iast-rewriter-js","Datadog IAST instrumentation addon for NodeJS","Apache-2.0"
"@datadog/native-appsec@7.0.0","@datadog/native-appsec","7.0.0","https://github.com/DataDog/dd-native-appsec-js","Node.js bindings for libddwaf","Apache-2.0"
"@datadog/[email protected].2","@datadog/native-iast-rewriter","2.2.2","https://github.com/DataDog/dd-native-iast-rewriter-js","Datadog IAST instrumentation addon for NodeJS","Apache-2.0"
"@datadog/[email protected]","@datadog/native-iast-taint-tracking","1.6.4","https://github.com/DataDog/dd-native-iast-taint-tracking-js","Datadog IAST tant tracking support for NodeJS","Apache-2.0"
"@datadog/[email protected]","@datadog/native-metrics","2.0.0","https://github.com/DataDog/dd-native-metrics-js","Native metrics collector for libuv and v8","Apache-2.0"
"@datadog/pprof@4.0.1","@datadog/pprof","4.0.1","https://github.com/datadog/pprof-nodejs","pprof support for Node.js","Apache-2.0"
"@datadog/pprof@5.0.0","@datadog/pprof","5.0.0","https://github.com/datadog/pprof-nodejs","pprof support for Node.js","Apache-2.0"
"@datadog/[email protected]","@datadog/sketches-js","2.1.0","https://github.com/DataDog/sketches-js","TypeScript implementation of DDSketch, a distributed quantile sketch algorithm ","Apache-2.0"
"@eslint-community/[email protected]","@eslint-community/eslint-utils","4.4.0","https://github.com/eslint-community/eslint-utils","Utilities for ESLint plugins.","MIT"
"@eslint-community/[email protected]","@eslint-community/regexpp","4.10.0","https://github.com/eslint-community/regexpp","Regular expression parser for ECMAScript.","MIT"
Expand All @@ -138,12 +138,12 @@
"@eslint/[email protected]","@eslint/js","8.55.0","https://github.com/eslint/eslint","ESLint JavaScript language implementation","MIT"
"@fidm/[email protected]","@fidm/asn1","1.0.4","https://github.com/fidm/asn1","ASN.1/DER, PEM for Node.js","MIT"
"@fidm/[email protected]","@fidm/x509","1.2.1","https://github.com/fidm/x509","Pure JavaScript X509 certificate tools for Node.js","MIT"
"@gala-chain/[email protected].13","@gala-chain/api","1.0.13","","Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.","Apache-2.0"
"@gala-chain/[email protected].13","@gala-chain/chaincode","1.0.13","","Framework for building chaincodes on GalaChain","Apache-2.0"
"@gala-chain/[email protected].13","@gala-chain/cli","1.0.13","","CLI for GalaChain to manage and deploy chaincodes","Apache-2.0"
"@gala-chain/[email protected].13","@gala-chain/client","1.0.13","","GalaChain client library","Apache-2.0"
"@gala-chain/[email protected].13","@gala-chain/sdk","1.0.13","","Welcome to developing with GalaChain! GalaChain SDK is a set of TS tools to help you develop on GalaChain:","UNLICENSED"
"@gala-chain/[email protected].13","@gala-chain/test","1.0.13","","Unit testing and integration testing for GalaChain","Apache-2.0"
"@gala-chain/[email protected].14","@gala-chain/api","1.0.14","","Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.","Apache-2.0"
"@gala-chain/[email protected].14","@gala-chain/chaincode","1.0.14","","Framework for building chaincodes on GalaChain","Apache-2.0"
"@gala-chain/[email protected].14","@gala-chain/cli","1.0.14","","CLI for GalaChain to manage and deploy chaincodes","Apache-2.0"
"@gala-chain/[email protected].14","@gala-chain/client","1.0.14","","GalaChain client library","Apache-2.0"
"@gala-chain/[email protected].14","@gala-chain/sdk","1.0.14","","Welcome to developing with GalaChain! GalaChain SDK is a set of TS tools to help you develop on GalaChain:","UNLICENSED"
"@gala-chain/[email protected].14","@gala-chain/test","1.0.14","","Unit testing and integration testing for GalaChain","Apache-2.0"
"@gar/[email protected]","@gar/promisify","1.1.3","https://github.com/wraithgar/gar-promisify","Promisify an entire class or object","MIT"
"@grpc/[email protected]","@grpc/grpc-js","1.9.7","https://github.com/grpc/grpc-node/tree/master/packages/grpc-js","gRPC Library for Node - pure JS implementation","Apache-2.0"
"@grpc/[email protected]","@grpc/proto-loader","0.6.13","https://github.com/grpc/grpc-node","gRPC utility library for loading .proto files","Apache-2.0"
Expand Down Expand Up @@ -514,7 +514,7 @@
"[email protected]","date-fns","2.30.0","https://github.com/date-fns/date-fns","Modern JavaScript date utility library","MIT"
"[email protected]","dateformat","4.6.3","https://github.com/felixge/node-dateformat","A node.js package for Steven Levithan's excellent dateFormat() function.","MIT"
"[email protected]","dc-polyfill","0.1.3","https://github.com/DataDog/dc-polyfill","A polyfill for the internal diagnostics_channel module","MIT"
"dd-trace@4.20.0","dd-trace","4.20.0","https://github.com/DataDog/dd-trace-js","Datadog APM tracing client for JavaScript","(Apache-2.0 OR BSD-3-Clause)"
"dd-trace@4.26.0","dd-trace","4.26.0","https://github.com/DataDog/dd-trace-js","Datadog APM tracing client for JavaScript","(Apache-2.0 OR BSD-3-Clause)"
"[email protected]","debug","3.2.7","https://github.com/visionmedia/debug","small debugging utility","MIT"
"[email protected]","debug","4.3.4","https://github.com/debug-js/debug","Lightweight debugging utility for Node.js and the browser","MIT"
"[email protected]","debuglog","1.0.1","https://github.com/sam-github/node-debuglog","backport of util.debuglog from node v0.11","MIT"
Expand Down Expand Up @@ -757,7 +757,7 @@
"[email protected]","ignore","4.0.6","https://github.com/kaelzhang/node-ignore","Ignore is a manager and filter for .gitignore rules.","MIT"
"[email protected]","ignore","5.2.4","https://github.com/kaelzhang/node-ignore","Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.","MIT"
"[email protected]","import-fresh","3.3.0","https://github.com/sindresorhus/import-fresh","Import a module while bypassing the cache","MIT"
"import-in-the-middle@1.4.2","import-in-the-middle","1.4.2","https://github.com/DataDog/import-in-the-middle","Intercept imports in Node.js","Apache-2.0"
"import-in-the-middle@1.7.3","import-in-the-middle","1.7.3","https://github.com/DataDog/import-in-the-middle","Intercept imports in Node.js","Apache-2.0"
"[email protected]","import-local","3.1.0","https://github.com/sindresorhus/import-local","Let a globally installed package use a locally installed version of itself if available","MIT"
"[email protected]","imurmurhash","0.1.4","https://github.com/jensyt/imurmurhash-js","An incremental implementation of MurmurHash3","MIT"
"[email protected]","indent-string","4.0.0","https://github.com/sindresorhus/indent-string","Indent each line in a string","MIT"
Expand Down Expand Up @@ -909,15 +909,12 @@
"[email protected]","lodash.debounce","4.0.8","https://github.com/lodash/lodash","The lodash method `_.debounce` exported as a module.","MIT"
"[email protected]","lodash.flattendeep","4.4.0","https://github.com/lodash/lodash","The lodash method `_.flattenDeep` exported as a module.","MIT"
"[email protected]","lodash.groupby","4.6.0","https://github.com/lodash/lodash","The lodash method `_.groupBy` exported as a module.","MIT"
"[email protected]","lodash.kebabcase","4.1.1","https://github.com/lodash/lodash","The lodash method `_.kebabCase` exported as a module.","MIT"
"[email protected]","lodash.memoize","4.1.2","https://github.com/lodash/lodash","The lodash method `_.memoize` exported as a module.","MIT"
"[email protected]","lodash.merge","4.6.2","https://github.com/lodash/lodash","The Lodash method `_.merge` exported as a module.","MIT"
"[email protected]","lodash.pick","4.4.0","https://github.com/lodash/lodash","The lodash method `_.pick` exported as a module.","MIT"
"[email protected]","lodash.sortby","4.7.0","https://github.com/lodash/lodash","The lodash method `_.sortBy` exported as a module.","MIT"
"[email protected]","lodash.template","4.5.0","https://github.com/lodash/lodash","The Lodash method `_.template` exported as a module.","MIT"
"[email protected]","lodash.templatesettings","4.2.0","https://github.com/lodash/lodash","The Lodash method `_.templateSettings` exported as a module.","MIT"
"[email protected]","lodash.truncate","4.4.2","https://github.com/lodash/lodash","The lodash method `_.truncate` exported as a module.","MIT"
"[email protected]","lodash.uniq","4.5.0","https://github.com/lodash/lodash","The lodash method `_.uniq` exported as a module.","MIT"
"[email protected]","lodash","4.17.21","https://github.com/lodash/lodash","Lodash modular utilities.","MIT"
"[email protected]","log-symbols","3.0.0","https://github.com/sindresorhus/log-symbols","Colored symbols for various log levels. Example: `✔︎ Success`","MIT"
"[email protected]","log-symbols","4.1.0","https://github.com/sindresorhus/log-symbols","Colored symbols for various log levels. Example: `✔︎ Success`","MIT"
Expand Down Expand Up @@ -998,7 +995,7 @@
"[email protected]","node-addon-api","6.1.0","https://github.com/nodejs/node-addon-api","Node.js API (Node-API)","MIT"
"[email protected]","node-fetch","2.7.0","https://github.com/bitinn/node-fetch","A light-weight module that brings window.fetch to node.js","MIT"
"[email protected]","node-gyp-build","3.9.0","https://github.com/mafintosh/node-gyp-build","Build tool and bindings loader for node-gyp that supports prebuilds","MIT"
"node-gyp-build@4.7.1","node-gyp-build","4.7.1","https://github.com/prebuild/node-gyp-build","Build tool and bindings loader for node-gyp that supports prebuilds","MIT"
"node-gyp-build@4.8.0","node-gyp-build","4.8.0","https://github.com/prebuild/node-gyp-build","Build tool and bindings loader for node-gyp that supports prebuilds","MIT"
"[email protected]","node-gyp","8.4.1","https://github.com/nodejs/node-gyp","Node.js native addon build tool","MIT"
"[email protected]","node-gyp","9.4.0","https://github.com/nodejs/node-gyp","Node.js native addon build tool","MIT"
"[email protected]","node-int64","0.4.0","https://github.com/broofa/node-int64","Support for representing 64-bit integers in JavaScript","MIT"
Expand Down Expand Up @@ -1311,6 +1308,7 @@
"[email protected]","textextensions","5.16.0","https://github.com/bevry/textextensions","A package that contains an array of every single file extension there is for text files","MIT"
"[email protected]","through","2.3.8","https://github.com/dominictarr/through","simplified stream construction","MIT"
"[email protected]","titleize","3.0.0","https://github.com/sindresorhus/titleize","Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`","MIT"
"[email protected]","tlhunter-sorted-set","0.1.0","https://github.com/tlhunter/node-sorted-set","A skip list implementation inspired by the Sorted Set in Redis.","MIT"
"[email protected]","tmp","0.0.33","https://github.com/raszi/node-tmp","Temporary file and directory creator","MIT"
"[email protected]","tmp","0.2.1","https://github.com/raszi/node-tmp","Temporary file and directory creator","MIT"
"[email protected]","tmpl","1.0.5","https://github.com/daaku/nodejs-tmpl","JavaScript micro templates.","BSD-3-Clause"
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gala-chain/sdk",
"version": "1.0.13",
"version": "1.0.14",
"license": "Apache-2.0",
"scripts": {
"lint": "nx run-many -t lint",
Expand Down

0 comments on commit e23c2ff

Please sign in to comment.