Socket
Socket
Sign inDemoInstall

@usecapsule/user-management-client

Package Overview
Dependencies
Maintainers
9
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecapsule/user-management-client - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

7

client.ts

@@ -90,2 +90,3 @@ import axios, { AxiosInstance } from 'axios';

transaction: string
chainId: string
}

@@ -241,6 +242,6 @@

// DEPRECATED: Please use "sendTransaction" instead. It provides the same functionality.
// POST /users/:userId/wallets/:walletId/sign
// functionality changed to only sign transactions and not send them
// POST /users/:userId/wallets/:walletId/transactions/sign
signTransaction = async (userId: string, walletId: string, body: signTransactionBody): Promise<any> => {
const res = await this.baseRequest.post<any>(`/users/${userId}/wallets/${walletId}/sign`, body);
const res = await this.baseRequest.post<any>(`/users/${userId}/wallets/${walletId}/transactions/sign`, body);
return res;

@@ -247,0 +248,0 @@ }

@@ -67,2 +67,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics";

transaction: string;
chainId: string;
}

@@ -69,0 +70,0 @@ export declare enum Chain {

@@ -237,4 +237,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}); };
// DEPRECATED: Please use "sendTransaction" instead. It provides the same functionality.
// POST /users/:userId/wallets/:walletId/sign
// functionality changed to only sign transactions and not send them
// POST /users/:userId/wallets/:walletId/transactions/sign
this.signTransaction = function (userId, walletId, body) { return __awaiter(_this, void 0, void 0, function () {

@@ -244,3 +244,3 @@ var res;

switch (_a.label) {
case 0: return [4 /*yield*/, this.baseRequest.post("/users/".concat(userId, "/wallets/").concat(walletId, "/sign"), body)];
case 0: return [4 /*yield*/, this.baseRequest.post("/users/".concat(userId, "/wallets/").concat(walletId, "/transactions/sign"), body)];
case 1:

@@ -247,0 +247,0 @@ res = _a.sent();

{
"name": "@usecapsule/user-management-client",
"version": "0.4.0",
"version": "0.5.0",
"main": "dist/client.js",

@@ -5,0 +5,0 @@ "types": "dist/client.d.ts",

Sorry, the diff of this file is not supported yet

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