@dfns/blockchain-integration
Advanced tools
Comparing version 2.2.1 to 2.3.0
@@ -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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
17185
26
400