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

@gnosis.pm/safe-apps-provider

Package Overview
Dependencies
Maintainers
17
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/safe-apps-provider - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

6

dist/provider.d.ts

@@ -8,2 +8,6 @@ import SafeAppsSDK, { SafeInfo } from '@gnosis.pm/safe-apps-sdk';

send?: (request: any, callback: (error: any, response: any) => void) => void;
request?: (request: {
method: string;
params?: Array<any>;
}) => Promise<any>;
};

@@ -20,5 +24,5 @@ export declare class SafeAppProvider implements AsyncSendable {

method: string;
params: any[];
params?: any[];
}): Promise<any>;
}
export {};

10

dist/provider.js

@@ -18,7 +18,7 @@ "use strict";

}
// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sendAsync(request, callback) {
this.send(request, callback);
}
// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
send(request, callback) {

@@ -31,6 +31,6 @@ if (!request)

}
// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async request(request) {
const params = request.params;
switch (request.method) {
const { method, params = [] } = request;
switch (method) {
case 'eth_accounts':

@@ -37,0 +37,0 @@ return [this.safe.safeAddress];

{
"name": "@gnosis.pm/safe-apps-provider",
"version": "0.2.2",
"version": "0.2.3",
"description": "A provider wrapper of Safe Apps SDK",

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

@@ -14,6 +14,8 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@gnosis.pm/safe-apps-sdk';

path?: string;
// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sendAsync?: (request: any, callback: (error: any, response: any) => void) => void;
// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
send?: (request: any, callback: (error: any, response: any) => void) => void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
request?: (request: { method: string; params?: Array<any> }) => Promise<any>;
};

@@ -35,3 +37,3 @@

// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
sendAsync(request: any, callback: (error: any, response: any) => void): void {

@@ -41,3 +43,3 @@ this.send(request, callback);

// eslint-disable-next-line
// eslint-disable-next-line @typescript-eslint/no-explicit-any
send(request: any, callback: (error: any, response?: any) => void): void {

@@ -50,6 +52,7 @@ if (!request) callback('Undefined request');

// eslint-disable-next-line
async request(request: { method: string; params: any[] }): Promise<any> {
const params = request.params;
switch (request.method) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
async request(request: { method: string; params?: any[] }): Promise<any> {
const { method, params = [] } = request;
switch (method) {
case 'eth_accounts':

@@ -68,2 +71,3 @@ return [this.safe.safeAddress];

};
const resp = await this.sdk.txs.send({

@@ -70,0 +74,0 @@ txs: [tx],

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