Socket
Socket
Sign inDemoInstall

@safe-global/safe-apps-provider

Package Overview
Dependencies
Maintainers
7
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@safe-global/safe-apps-provider - npm Package Compare versions

Comparing version 0.16.0 to 0.17.0

20

CHANGELOG.md

@@ -1,3 +0,21 @@

# @gnosis.pm/safe-apps-provider
# @safe-global/safe-apps-provider
## 0.17.0
### Minor Changes
- bdae5af: Signing methods return the signature instead of `0x`
### Patch Changes
- Updated dependencies [bdae5af]
- @safe-global/safe-apps-sdk@7.11.0
## 0.16.1
### Patch Changes
- Updated dependencies [d759219]
- @safe-global/safe-apps-sdk@7.10.1
## 0.16.0

@@ -4,0 +22,0 @@

15

dist/provider.js

@@ -38,4 +38,5 @@ "use strict";

}
await this.sdk.txs.signMessage(message);
return '0x';
const response = await this.sdk.txs.signMessage(message);
const signature = 'signature' in response ? response.signature : undefined;
return signature || '0x';
}

@@ -47,4 +48,5 @@ case 'eth_sign': {

}
await this.sdk.txs.signMessage(messageHash);
return '0x';
const response = await this.sdk.txs.signMessage(messageHash);
const signature = 'signature' in response ? response.signature : undefined;
return signature || '0x';
}

@@ -58,4 +60,5 @@ case 'eth_signTypedData':

}
await this.sdk.txs.signTypedMessage(parsedTypedData);
return '0x';
const response = await this.sdk.txs.signTypedMessage(parsedTypedData);
const signature = 'signature' in response ? response.signature : undefined;
return signature || '0x';
}

@@ -62,0 +65,0 @@ case 'eth_sendTransaction':

{
"name": "@safe-global/safe-apps-provider",
"version": "0.16.0",
"version": "0.17.0",
"description": "A provider wrapper of Safe Apps SDK",

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

"dependencies": {
"@safe-global/safe-apps-sdk": "7.10.0",
"@safe-global/safe-apps-sdk": "7.11.0",
"events": "^3.3.0"

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

@@ -50,5 +50,6 @@ import SafeAppsSDK, { SafeInfo, Web3TransactionObject } from '@safe-global/safe-apps-sdk';

await this.sdk.txs.signMessage(message);
const response = await this.sdk.txs.signMessage(message);
const signature = 'signature' in response ? response.signature : undefined;
return '0x';
return signature || '0x';
}

@@ -63,5 +64,6 @@

await this.sdk.txs.signMessage(messageHash);
const response = await this.sdk.txs.signMessage(messageHash);
const signature = 'signature' in response ? response.signature : undefined;
return '0x';
return signature || '0x';
}

@@ -78,5 +80,5 @@

await this.sdk.txs.signTypedMessage(parsedTypedData);
return '0x';
const response = await this.sdk.txs.signTypedMessage(parsedTypedData);
const signature = 'signature' in response ? response.signature : undefined;
return signature || '0x';
}

@@ -83,0 +85,0 @@

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