conseiljs
Advanced tools
Comparing version 5.0.4 to 5.0.5-beta.1
@@ -35,2 +35,3 @@ import { KeyStore, Signer } from '../../types/ExternalInterfaces'; | ||
}>; | ||
function parseRPCError(response: string): void; | ||
} |
@@ -382,3 +382,3 @@ "use strict"; | ||
if ('kind' in arr[0]) { | ||
errors = arr.map(e => `(${e.kind}: ${e.id})`).join(''); | ||
errors = arr.map(e => `(${e.kind}: ${e.id})`).join(', '); | ||
} | ||
@@ -390,5 +390,7 @@ else if (arr.length === 1 && arr[0].contents.length === 1 && arr[0].contents[0].kind === 'activate_account') { | ||
.map(o => o.map(c => c.metadata.operation_result) | ||
.filter(r => r.status !== 'applied') | ||
.map(r => `${r.status}: ${r.errors.map(e => `(${e.kind}: ${e.id})`).join(', ')}\n`)) | ||
.join(''); | ||
.concat(o.flatMap(c => c.metadata.internal_operation_results).filter(c => !!c).map(c => c.result)) | ||
.map(r => parseRPCOperationResult(r)) | ||
.filter(i => i.length > 0) | ||
.join(', ')) | ||
.join(', '); | ||
} | ||
@@ -411,6 +413,20 @@ } | ||
log.debug(`errors found in response:\n${response}`); | ||
throw new ErrorTypes_1.ServiceResponseError(200, '', '', '', response); | ||
let e = new ErrorTypes_1.ServiceResponseError(200, '', '', '', response); | ||
e.message = errors; | ||
throw e; | ||
} | ||
} | ||
TezosNodeWriter.parseRPCError = parseRPCError; | ||
function parseRPCOperationResult(result) { | ||
if (result.status === 'failed') { | ||
return `${result.status}: ${result.errors.map(e => `(${e.kind}: ${e.id})`).join(', ')}`; | ||
} | ||
else if (result.status === 'applied') { | ||
return ''; | ||
} | ||
else { | ||
return result.status; | ||
} | ||
} | ||
})(TezosNodeWriter = exports.TezosNodeWriter || (exports.TezosNodeWriter = {})); | ||
//# sourceMappingURL=TezosNodeWriter.js.map |
@@ -13,2 +13,3 @@ export * from './chain/tezos/TezosContractIntrospector'; | ||
export * from './chain/tezos/contracts/Tzip7ReferenceTokenHelper'; | ||
export * from './chain/tezos/contracts/tzip12/ChainlinkTokenHelper'; | ||
export * from './chain/tezos/contracts/tzip12/MultiAssetTokenHelper'; | ||
@@ -15,0 +16,0 @@ export * from './chain/tezos/contracts/tzip12/SingleAssetTokenHelper'; |
@@ -25,2 +25,3 @@ "use strict"; | ||
__export(require("./chain/tezos/contracts/Tzip7ReferenceTokenHelper")); | ||
__export(require("./chain/tezos/contracts/tzip12/ChainlinkTokenHelper")); | ||
__export(require("./chain/tezos/contracts/tzip12/MultiAssetTokenHelper")); | ||
@@ -27,0 +28,0 @@ __export(require("./chain/tezos/contracts/tzip12/SingleAssetTokenHelper")); |
@@ -15,2 +15,3 @@ export declare function registerLogger(logger: any): void; | ||
export * from './chain/tezos/contracts/Tzip7ReferenceTokenHelper'; | ||
export * from './chain/tezos/contracts/tzip12/ChainlinkTokenHelper'; | ||
export * from './chain/tezos/contracts/tzip12/MultiAssetTokenHelper'; | ||
@@ -17,0 +18,0 @@ export * from './chain/tezos/contracts/tzip12/SingleAssetTokenHelper'; |
@@ -31,2 +31,3 @@ "use strict"; | ||
__export(require("./chain/tezos/contracts/Tzip7ReferenceTokenHelper")); | ||
__export(require("./chain/tezos/contracts/tzip12/ChainlinkTokenHelper")); | ||
__export(require("./chain/tezos/contracts/tzip12/MultiAssetTokenHelper")); | ||
@@ -33,0 +34,0 @@ __export(require("./chain/tezos/contracts/tzip12/SingleAssetTokenHelper")); |
{ | ||
"name": "conseiljs", | ||
"version": "5.0.4", | ||
"version": "5.0.5-beta.1", | ||
"description": "Client-side library for Tezos dApp development.", | ||
@@ -91,7 +91,7 @@ "browser": "dist/index-web.js", | ||
"coveralls": "3.1.0", | ||
"eslint": "7.5.0", | ||
"eslint": "7.7.0", | ||
"glob": "7.1.6", | ||
"loglevel": "1.6.8", | ||
"mocha": "8.1.1", | ||
"nock": "13.0.3", | ||
"loglevel": "1.7.0", | ||
"mocha": "8.1.3", | ||
"nock": "13.0.4", | ||
"node-fetch": "2.6.0", | ||
@@ -101,5 +101,5 @@ "nyc": "15.1.0", | ||
"ts-node": "8.10.2", | ||
"tsconfig-paths-webpack-plugin": "3.2.0", | ||
"tsconfig-paths-webpack-plugin": "3.3.0", | ||
"typedoc": "0.18.0", | ||
"typedoc-plugin-markdown": "2.4.1", | ||
"typedoc-plugin-markdown": "2.4.2", | ||
"typescript": "3.8.3", | ||
@@ -106,0 +106,0 @@ "webpack": "4.44.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
709979
130
6893
1
1