🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

embeddable-nfts

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embeddable-nfts - npm Package Compare versions

Comparing version

to
0.4.7

2

package.json
{
"name": "embeddable-nfts",
"version": "0.4.6",
"version": "0.4.7",
"description": "Resuable, embeddable webcomponent for OpenSea assets.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -16,3 +16,3 @@ import { css, customElement, html, LitElement, property } from 'lit-element'

import { ButtonEvent, CustomWindow } from './types'
import { getProvider, networkFromId } from './utils'
import { getProvider, networkFromId, networkFromString } from './utils'

@@ -86,3 +86,3 @@ declare const window: CustomWindow

.card {
background-color: transparent;
background-color: white;
font-family: 'Roboto', sans-serif;

@@ -106,2 +106,3 @@ -webkit-font-smoothing: antialiased;

border-radius: 5px;
overflow: hidden;
}

@@ -153,2 +154,3 @@ .flipped-card .card-inner {

vertCardWidth = VERT_CARD_WIDTH_MOBILE
this.horizontal = false
}

@@ -177,3 +179,4 @@

this.seaport = new OpenSeaPort(this.provider, { networkName: this.network })
const networkName = networkFromString(this.network)
this.seaport = new OpenSeaPort(this.provider, { networkName })

@@ -180,0 +183,0 @@ try {

@@ -84,1 +84,12 @@ import { CollectionTraits, Trait, TraitType, CustomWindow } from './types'

}
export const networkFromString = (name: string) => {
switch (name) {
case 'rinkeby':
return Network.Rinkeby
case 'mainnet':
case 'main':
default:
return Network.Main
}
}

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet