New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@heathmont/lab-flask

Package Overview
Dependencies
Maintainers
135
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heathmont/lab-flask - npm Package Compare versions

Comparing version 2.1.0-alpha.4 to 2.1.0-beta.1

dist/index.cjs

88

dist/index.d.ts

@@ -1,10 +0,43 @@

import { Message, PartialMessage } from "@bufbuild/protobuf";
import { PartialBy } from './types/types.js';
import { Implementations } from './implementSubstance.js';
import Long from 'long';
import { Request as HealthCheckRequest, Request_Status } from '@heathmont/coingaming-protobuf/dist/lab_protobuf/substance/lab/reaction/heartbeat_pb.js';
import { Context_SubjectInfo } from '@heathmont/coingaming-protobuf/dist/lab_protobuf/global/context_pb.js';
export declare const PROTOBUF_URL_PREFIX = "protobuf";
export declare const implementFlaskMeta: (metaFunction: any) => HealthCheckRequest;
export interface InitOptions {
import * as _heathmont_coingaming_protobuf_dist_lab_protobuf_global_umoney_pb from '@heathmont/coingaming-protobuf/dist/lab_protobuf/global/umoney_pb';
import * as bignumber_js from 'bignumber.js';
import bignumber_js__default from 'bignumber.js';
import * as _heathmont_coingaming_protobuf_dist_lab_protobuf_global_money_pb from '@heathmont/coingaming-protobuf/dist/lab_protobuf/global/money_pb';
import * as _heathmont_coingaming_protobuf_dist_lab_protobuf_global_udecimal_pb from '@heathmont/coingaming-protobuf/dist/lab_protobuf/global/udecimal_pb';
import * as _heathmont_coingaming_protobuf_dist_lab_protobuf_global_decimal_pb from '@heathmont/coingaming-protobuf/dist/lab_protobuf/global/decimal_pb';
import * as long from 'long';
import { Message, PartialMessage } from '@bufbuild/protobuf';
import { Context, Context_SubjectInfo } from '@heathmont/coingaming-protobuf/dist/lab_protobuf/global/context_pb.js';
import express from 'express';
import { Request_Status } from '@heathmont/coingaming-protobuf/dist/lab_protobuf/substance/lab/reaction/heartbeat_pb.js';
interface ParameterError {
name: string;
value: string;
}
type ErrorType = 'BUSINESS_LOGIC' | 'INTERNAL';
interface LabError {
type: ErrorType;
errors: ParameterError[];
}
interface Money {
amount: bignumber_js__default;
currencyCode: string;
}
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
interface ReactionImplementations {
[reactionEnum: string]: (reqDataR: Buffer, context: Context, rawReq: express.Request) => any;
}
interface ElementImplementations {
[elementEnum: string]: (reqData: Buffer, context: Context, rawReq: express.Request) => any;
}
interface Implementations {
element?: ElementImplementations;
reaction?: ReactionImplementations;
}
declare const PROTOBUF_URL_PREFIX = "protobuf";
interface InitOptions {
flaskName: string;

@@ -21,3 +54,3 @@ flaskUrl: string;

}
export interface LabConfig {
interface LabConfig {
flaskName: string;

@@ -35,3 +68,3 @@ expressServer: any;

}
export interface LabContext {
interface LabContext {
sourceFlaskName: string;

@@ -44,3 +77,3 @@ siteId: number;

}
export interface Lab {
interface Lab {
callReaction: CallReactionFunction;

@@ -52,3 +85,3 @@ callElement: CallElementFunction;

}
export interface CallElementFunction {
interface CallElementFunction {
<REQ extends Message<REQ>, RESP extends Message<RESP>>(substanceEnum: string, reactionEnum: string, request: REQ, responseClass: {

@@ -58,3 +91,3 @@ new (data?: PartialMessage<RESP>): RESP;

}
export interface CallReactionFunction {
interface CallReactionFunction {
<REQ extends Message<REQ>, RESP extends Message<RESP>>(substanceEnum: string, reactionEnum: string, request: REQ, responseClass: {

@@ -64,18 +97,19 @@ new (data?: PartialMessage<RESP>): RESP;

}
export declare const init: (options: InitOptions, initDefaultContext?: PartialBy<PartialBy<PartialBy<PartialBy<LabContext, 'sourceFlaskName'>, 'siteId'>, 'operatorId'>, 'subjectInfo'>) => Promise<Lab>;
declare const init: (options: InitOptions, initDefaultContext?: PartialBy<PartialBy<PartialBy<PartialBy<LabContext, 'sourceFlaskName'>, 'siteId'>, 'operatorId'>, 'subjectInfo'>) => Promise<Lab>;
declare const defaultExport: {
init: (options: InitOptions, initDefaultContext?: PartialBy<PartialBy<PartialBy<PartialBy<LabContext, 'sourceFlaskName'>, 'siteId'>, 'operatorId'>, 'subjectInfo'>) => Promise<Lab>;
longToBigNumber: (long: Long) => import("bignumber.js").default;
decimalToBigNumber: (decimal: import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/decimal_pb.js").Decimal) => import("bignumber.js").default;
udecimalToBigNumber: ({ exp, coef }: import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/udecimal_pb.js").UDecimal) => import("bignumber.js").default;
moneyHelper: (money: import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/money_pb.js").Money) => import("./moneyHelper.js").Money;
umoneyHelper: (money: import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/umoney_pb.js").UMoney) => import("./moneyHelper.js").Money;
bigNumberToDecimal: (bigNumber: import("bignumber.js").default) => import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/decimal_pb.js").Decimal;
bigNumberToUDecimal: (bigNumber: import("bignumber.js").default) => import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/udecimal_pb.js").UDecimal;
toMoney: (amount: import("bignumber.js").default, currency: string) => import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/money_pb.js").Money;
toUMoney: (amount: import("bignumber.js").default, currency: string) => import("@heathmont/coingaming-protobuf/dist/lab_protobuf/global/umoney_pb.js").UMoney;
handleLabError: <T>(errorResponse: T, kind: any) => import("./errorHandler.js").LabError;
createLabError: (type?: "BUSINESS_LOGIC" | "INTERNAL", errors?: import("./errorHandler.js").ParameterError[]) => import("./errorHandler.js").LabError;
longToBigNumber: (long: long.default) => bignumber_js.default;
decimalToBigNumber: (decimal: _heathmont_coingaming_protobuf_dist_lab_protobuf_global_decimal_pb.Decimal) => bignumber_js.default;
udecimalToBigNumber: ({ exp, coef }: _heathmont_coingaming_protobuf_dist_lab_protobuf_global_udecimal_pb.UDecimal) => bignumber_js.default;
moneyHelper: (money: _heathmont_coingaming_protobuf_dist_lab_protobuf_global_money_pb.Money) => Money;
umoneyHelper: (money: _heathmont_coingaming_protobuf_dist_lab_protobuf_global_umoney_pb.UMoney) => Money;
bigNumberToDecimal: (bigNumber: bignumber_js.default) => _heathmont_coingaming_protobuf_dist_lab_protobuf_global_decimal_pb.Decimal;
bigNumberToUDecimal: (bigNumber: bignumber_js.default) => _heathmont_coingaming_protobuf_dist_lab_protobuf_global_udecimal_pb.UDecimal;
toMoney: (amount: bignumber_js.default, currency: string) => _heathmont_coingaming_protobuf_dist_lab_protobuf_global_money_pb.Money;
toUMoney: (amount: bignumber_js.default, currency: string) => _heathmont_coingaming_protobuf_dist_lab_protobuf_global_umoney_pb.UMoney;
handleLabError: <T>(errorResponse: T, kind: any) => LabError;
createLabError: (type?: "BUSINESS_LOGIC" | "INTERNAL", errors?: ParameterError[]) => LabError;
bigNumberToString: (data: any) => any;
};
export default defaultExport;
export { type CallElementFunction, type CallReactionFunction, type InitOptions, type Lab, type LabConfig, type LabContext, PROTOBUF_URL_PREFIX, defaultExport as default, init };
{
"name": "@heathmont/lab-flask",
"version": "2.1.0-alpha.4",
"version": "2.1.0-beta.1",
"author": "Margus Lamp",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.esm.js",
"type": "module",

@@ -30,3 +31,4 @@ "engines": {

"@babel/preset-typescript": "^7.23.3",
"@eslint/js": "^9.0.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/express": "4.0.30",

@@ -36,4 +38,10 @@ "@types/jest": "~29",

"@types/node-forge": "0.8.3",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"babel-jest": "~29.0",
"eslint": "^8.57.0",
"eslint": "8.56",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.1",
"globals": "^15.0.0",

@@ -43,2 +51,5 @@ "husky": "^4.2.5",

"long": "5.2.3",
"rimraf": "^5.0.7",
"rollup": "^4.17.2",
"rollup-plugin-dts": "^6.1.0",
"semantic-release": "^23.0.2",

@@ -61,3 +72,3 @@ "ts-jest": "~29.1",

"publish-minor": "npm run test && npm version minor && npm publish && git push && git push --tags",
"compile": "tsc -p ./",
"compile": "rimraf dist && tsc -p ./ && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"compile:watch": "tsc -p ./ --watch",

@@ -95,2 +106,6 @@ "lint": "eslint ./src",

"prerelease": true
},
{
"name": "beta",
"prerelease": true
}

@@ -97,0 +112,0 @@ ]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc