Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dfns/blockchain-integration

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfns/blockchain-integration - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

15

lib/lambda-handler/lambda-handler.js

@@ -20,3 +20,3 @@ "use strict";

router.get(CLIENT_PREFIX + "/address/{groupId}", async (event, context) => {
const signer = new signing_group_1.SigningGroup(event.pathParameters.groupId, context.api);
const signer = await signing_group_1.SigningGroup.create(event.pathParameters.groupId, context.api);
const wallet = new walletImplementation(signer);

@@ -29,3 +29,3 @@ return {

router.get(CLIENT_PREFIX + "/balance/{groupId}", async (event, context) => {
const signer = new signing_group_1.SigningGroup(event.pathParameters.groupId, context.api);
const signer = await signing_group_1.SigningGroup.create(event.pathParameters.groupId, context.api);
const wallet = new walletImplementation(signer);

@@ -38,3 +38,3 @@ return {

router.get(CLIENT_PREFIX + "/transactions/{groupId}", async (event, context) => {
const signer = new signing_group_1.SigningGroup(event.pathParameters.groupId, context.api);
const signer = await signing_group_1.SigningGroup.create(event.pathParameters.groupId, context.api);
const wallet = new walletImplementation(signer);

@@ -47,3 +47,3 @@ return {

router.post(CLIENT_PREFIX + "/transactions/{groupId}", async (event, context) => {
const signer = new signing_group_1.SigningGroup(event.pathParameters.groupId, context.api);
const signer = await signing_group_1.SigningGroup.create(event.pathParameters.groupId, context.api);
const wallet = new walletImplementation(signer);

@@ -70,11 +70,6 @@ console.log("EVENT: ", event);

context.callbackWaitsForEmptyEventLoop = false;
// router.formatError((statusCode: any, error: any) => {
// error.errorType = getErrorType(statusCode); // custom method
// return error;
// });
const api = new api_client_1.ApiClient({
context.api = new api_client_1.ApiClient({
baseUrl: resolveApiUrl_1.resolveApiUrl(),
headers: { authorization: lambdaEvent.headers.authorization },
});
context.api = context;
let result = await router.route(lambdaEvent, context);

@@ -81,0 +76,0 @@ return result.response;

{
"name": "@dfns/blockchain-integration",
"version": "2.2.1",
"version": "2.3.0",
"description": "Blockchain integration Kit for DFNS",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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