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
4
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.12.0 to 0.13.0

11

CHANGELOG.md
# @gnosis.pm/safe-apps-provider
## 0.13.0
### Minor Changes
- a0991c0: add support for the eip-712 signature method
### Patch Changes
- Updated dependencies [a0991c0]
- @gnosis.pm/safe-apps-sdk@7.7.0
## 0.12.0

@@ -4,0 +15,0 @@

@@ -49,2 +49,11 @@ "use strict";

}
case 'eth_signTypedData':
case 'eth_signTypedData_v4': {
const [message, address] = params;
if (this.safe.safeAddress.toLowerCase() !== address.toLowerCase()) {
throw new Error('The address is invalid');
}
await this.sdk.txs.signTypedMessage(message);
return '0x';
}
case 'eth_sendTransaction':

@@ -51,0 +60,0 @@ const tx = Object.assign({ value: '0', data: '0x' }, params[0]);

4

package.json
{
"name": "@gnosis.pm/safe-apps-provider",
"version": "0.12.0",
"version": "0.13.0",
"description": "A provider wrapper of Safe Apps SDK",

@@ -28,3 +28,3 @@ "main": "dist/index.js",

"dependencies": {
"@gnosis.pm/safe-apps-sdk": "7.6.0",
"@gnosis.pm/safe-apps-sdk": "7.7.0",
"events": "^3.3.0"

@@ -31,0 +31,0 @@ },

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

case 'eth_signTypedData':
case 'eth_signTypedData_v4': {
const [message, address] = params;
if (this.safe.safeAddress.toLowerCase() !== address.toLowerCase()) {
throw new Error('The address is invalid');
}
await this.sdk.txs.signTypedMessage(message);
return '0x';
}
case 'eth_sendTransaction':

@@ -69,0 +82,0 @@ const 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