Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bnc-assist

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bnc-assist - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

2

package.json
{
"name": "bnc-assist",
"version": "0.10.1",
"version": "0.10.2",
"description": "Blocknative Assist js library for Dapp developers",

@@ -5,0 +5,0 @@ "main": "lib/assist.min.js",

@@ -46,3 +46,3 @@ # Assist.js

The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html).
The current version is 0.10.1.
The current version is 0.10.2.
There are minified and non-minified versions.

@@ -52,7 +52,7 @@ Put this script at the top of your `<head>`

```html
<script src="https://assist.blocknative.com/0-10-1/assist.js"></script>
<script src="https://assist.blocknative.com/0-10-2/assist.js"></script>
<!-- OR... -->
<script src="https://assist.blocknative.com/0-10-1/assist.min.js"></script>
<script src="https://assist.blocknative.com/0-10-2/assist.min.js"></script>
```

@@ -192,2 +192,3 @@

headlessMode: Boolean, // Turn off Assist UI, but still retain analytics collection [false]
browserCheck: Boolean, // Check if the user is on a browser that supports extension wallets during onboarding [true]
messages: {

@@ -194,0 +195,0 @@ // See custom transaction messages section below for more details

@@ -135,2 +135,9 @@ import uuid from 'uuid/v4'

export function extractMessageFromError(message) {
if (!message) {
return {
eventCode: 'txError',
errorMsg: undefined
}
}
if (message.includes('User denied transaction signature')) {

@@ -137,0 +144,0 @@ return {

@@ -28,2 +28,3 @@ /* eslint-disable import/prefer-default-export */

headlessMode: ow.optional.boolean,
browserCheck: ow.optional.boolean,
messages: ow.optional.object.exactShape({

@@ -30,0 +31,0 @@ txRequest: ow.optional.function,

@@ -407,3 +407,3 @@ import { state } from '~/js/helpers/state'

clickHandlers: txObj.clickHandlers,
reason: errorMsg,
reason: errorMsg || JSON.stringify(error),
wallet: {

@@ -410,0 +410,0 @@ provider: state.currentProvider,

@@ -72,3 +72,7 @@ import { state, updateState } from '~/js/helpers/state'

if (getItem('_assist_newUser') === 'true') {
if (!state.validBrowser && !state.mobileDevice) {
if (
!state.validBrowser &&
!state.mobileDevice &&
state.config.browserCheck !== false
) {
handleEvent(

@@ -75,0 +79,0 @@ {

Sorry, the diff of this file is too big to display

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