@heathmont/lab-flask
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -5,6 +5,6 @@ "use strict"; | ||
const coingaming_protobuf_1 = require("@heathmont/coingaming-protobuf"); | ||
const express = require("express"); | ||
const bignumber_js_1 = require("bignumber.js"); | ||
const node_logger_1 = require("@heathmont/node-logger"); | ||
const moneyHelper_1 = require("./moneyHelper"); | ||
const express = require("express"); | ||
const labPubKey = process.env.LAB_PUBLIC_KEY || ` | ||
@@ -74,2 +74,6 @@ -----BEGIN RSA PUBLIC KEY----- | ||
node_logger_1.logger.info('Proto.Global.Substance.PAYMENTS -> Proto.Global.Reaction.REQUEST_PAYMENT', { response: requestPaymentResponse }); | ||
requestPaymentResponse.ok.requisites.forEach((requisite) => { | ||
console.log('requisite.value', requisite.value); | ||
console.log('requisite.kind', coingaming_protobuf_1.Proto.Substance.Payments.Reaction.RequestPayment.Response.Ok.Requisite.Kind[requisite.kind]); | ||
}); | ||
} | ||
@@ -76,0 +80,0 @@ catch (e) { |
@@ -64,3 +64,5 @@ import 'source-map-support/register'; | ||
Proto: typeof Proto; | ||
handleLabError: <T>(errorResponse: T, kind: any) => import("./errorHandler").LabError; | ||
createLabError: (type?: "BUSINESS_LOGIC" | "INTERNAL_ERROR", errors?: import("./errorHandler").ParameterError[]) => import("./errorHandler").LabError; | ||
}; | ||
export default defaultExport; |
@@ -19,2 +19,3 @@ "use strict"; | ||
const bigNumberToDecimal_1 = require("./bigNumberToDecimal,"); | ||
const errorHandler_1 = require("./errorHandler"); | ||
exports.implementFlaskMeta = (metaFunction) => { | ||
@@ -113,4 +114,6 @@ return new coingaming_protobuf_1.Proto.Substance.Flask.Reaction.HealthCheck.Request({}); | ||
Proto: coingaming_protobuf_1.Proto, | ||
handleLabError: errorHandler_1.handleLabError, | ||
createLabError: errorHandler_1.createLabError, | ||
}; | ||
exports.default = defaultExport; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@heathmont/lab-flask", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": "Margus Lamp", | ||
@@ -46,2 +46,3 @@ "main": "./dist/index.js", | ||
"compile": "tsc -p ./", | ||
"lint": "tslint -p ./ \"src/**/*.ts\"", | ||
"test": "jest", | ||
@@ -48,0 +49,0 @@ "test:watch": "jest --watch", |
import { init } from './index'; | ||
import { Proto } from '@heathmont/coingaming-protobuf'; | ||
import express = require('express'); | ||
import BigNumber from 'bignumber.js'; | ||
import { bigNumberToDecimal, bigNumberToUDecimal } from './bigNumberToDecimal,'; | ||
import { logger } from '@heathmont/node-logger'; | ||
import { toUMoney } from './moneyHelper'; | ||
import express = require('express'); | ||
@@ -72,3 +71,3 @@ const labPubKey = process.env.LAB_PUBLIC_KEY || ` | ||
'Proto.Global.Substance.PAYMENTS -> Proto.Global.Reaction.LIST_SUPPORTED_PAYMENTS', | ||
{ response: listSupportedPaymentsResponse}, | ||
{ response: listSupportedPaymentsResponse }, | ||
); | ||
@@ -96,4 +95,8 @@ const [supportedPayment] = listSupportedPaymentsResponse.ok.supportedPayments; | ||
'Proto.Global.Substance.PAYMENTS -> Proto.Global.Reaction.REQUEST_PAYMENT', | ||
{ response: requestPaymentResponse}, | ||
{ response: requestPaymentResponse }, | ||
); | ||
requestPaymentResponse.ok.requisites.forEach((requisite) => { | ||
console.log('requisite.value', requisite.value); | ||
console.log('requisite.kind', Proto.Substance.Payments.Reaction.RequestPayment.Response.Ok.Requisite.Kind[requisite.kind]); | ||
}); | ||
} catch (e) { | ||
@@ -100,0 +103,0 @@ logger.error('I failed, my master.'); |
@@ -19,2 +19,3 @@ import 'source-map-support/register'; | ||
import * as Long from 'long'; | ||
import { createLabError, handleLabError } from './errorHandler'; | ||
@@ -215,4 +216,6 @@ export const implementFlaskMeta = (metaFunction): Proto.Substance.Flask.Reaction.HealthCheck.Request => { | ||
Proto, | ||
handleLabError, | ||
createLabError, | ||
}; | ||
export default defaultExport; |
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
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
94261
68
1649