Socket
Socket
Sign inDemoInstall

@zoralabs/nft-hooks

Package Overview
Dependencies
Maintainers
22
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zoralabs/nft-hooks - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

24

dist/backends/zdk/ZDKDataSource.js

@@ -20,3 +20,3 @@ "use strict";

function transformNFTZDK(tokenResponse, object) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
if (!object) {

@@ -75,3 +75,4 @@ object = { rawData: {} };

source: types_1.MEDIA_SOURCES.ZORA,
thumbnail: ((_j = (_h = token.image) === null || _h === void 0 ? void 0 : _h.mediaEncoding) === null || _j === void 0 ? void 0 : _j.__typename) === 'ImageEncodingTypes' &&
mimeType: ((_h = token.image) === null || _h === void 0 ? void 0 : _h.mimeType) || undefined,
thumbnail: ((_k = (_j = token.image) === null || _j === void 0 ? void 0 : _j.mediaEncoding) === null || _k === void 0 ? void 0 : _k.__typename) === 'ImageEncodingTypes' &&
token.image.mediaEncoding.thumbnail

@@ -82,3 +83,3 @@ ? {

: undefined,
large: ((_l = (_k = token.image) === null || _k === void 0 ? void 0 : _k.mediaEncoding) === null || _l === void 0 ? void 0 : _l.__typename) === 'ImageEncodingTypes' &&
large: ((_m = (_l = token.image) === null || _l === void 0 ? void 0 : _l.mediaEncoding) === null || _m === void 0 ? void 0 : _m.__typename) === 'ImageEncodingTypes' &&
token.image.mediaEncoding.large

@@ -89,3 +90,3 @@ ? {

: undefined,
poster: ((_o = (_m = token.image) === null || _m === void 0 ? void 0 : _m.mediaEncoding) === null || _o === void 0 ? void 0 : _o.__typename) === 'ImageEncodingTypes' &&
poster: ((_p = (_o = token.image) === null || _o === void 0 ? void 0 : _o.mediaEncoding) === null || _p === void 0 ? void 0 : _p.__typename) === 'ImageEncodingTypes' &&
token.image.mediaEncoding.poster

@@ -96,3 +97,3 @@ ? {

: undefined,
image: ((_p = token.image) === null || _p === void 0 ? void 0 : _p.url)
image: ((_q = token.image) === null || _q === void 0 ? void 0 : _q.url)
? {

@@ -106,4 +107,5 @@ mime: token.image.mimeType || undefined,

source: types_1.MEDIA_SOURCES.ZORA,
original: (((_r = (_q = token.content) === null || _q === void 0 ? void 0 : _q.mediaEncoding) === null || _r === void 0 ? void 0 : _r.__typename) === 'VideoEncodingTypes' ||
((_t = (_s = token.content) === null || _s === void 0 ? void 0 : _s.mediaEncoding) === null || _t === void 0 ? void 0 : _t.__typename) === 'AudioEncodingTypes') &&
mimeType: ((_r = token.content) === null || _r === void 0 ? void 0 : _r.mimeType) || undefined,
original: (((_t = (_s = token.content) === null || _s === void 0 ? void 0 : _s.mediaEncoding) === null || _t === void 0 ? void 0 : _t.__typename) === 'VideoEncodingTypes' ||
((_v = (_u = token.content) === null || _u === void 0 ? void 0 : _u.mediaEncoding) === null || _v === void 0 ? void 0 : _v.__typename) === 'AudioEncodingTypes') &&
token.content.mediaEncoding.original

@@ -114,4 +116,4 @@ ? {

: undefined,
large: (((_v = (_u = token.content) === null || _u === void 0 ? void 0 : _u.mediaEncoding) === null || _v === void 0 ? void 0 : _v.__typename) === 'VideoEncodingTypes' ||
((_x = (_w = token.content) === null || _w === void 0 ? void 0 : _w.mediaEncoding) === null || _x === void 0 ? void 0 : _x.__typename) === 'AudioEncodingTypes') &&
large: (((_x = (_w = token.content) === null || _w === void 0 ? void 0 : _w.mediaEncoding) === null || _x === void 0 ? void 0 : _x.__typename) === 'VideoEncodingTypes' ||
((_z = (_y = token.content) === null || _y === void 0 ? void 0 : _y.mediaEncoding) === null || _z === void 0 ? void 0 : _z.__typename) === 'AudioEncodingTypes') &&
token.content.mediaEncoding.large

@@ -122,3 +124,3 @@ ? {

: undefined,
poster: ((_z = (_y = token.content) === null || _y === void 0 ? void 0 : _y.mediaEncoding) === null || _z === void 0 ? void 0 : _z.__typename) === 'VideoEncodingTypes' &&
poster: ((_1 = (_0 = token.content) === null || _0 === void 0 ? void 0 : _0.mediaEncoding) === null || _1 === void 0 ? void 0 : _1.__typename) === 'VideoEncodingTypes' &&
token.content.mediaEncoding.poster

@@ -129,3 +131,3 @@ ? {

: undefined,
thumbnail: ((_1 = (_0 = token.content) === null || _0 === void 0 ? void 0 : _0.mediaEncoding) === null || _1 === void 0 ? void 0 : _1.__typename) === 'VideoEncodingTypes' &&
thumbnail: ((_3 = (_2 = token.content) === null || _2 === void 0 ? void 0 : _2.mediaEncoding) === null || _3 === void 0 ? void 0 : _3.__typename) === 'VideoEncodingTypes' &&
token.content.mediaEncoding.thumbnail

@@ -132,0 +134,0 @@ ? {

@@ -213,2 +213,3 @@ import { EventInfoFragment } from '@zoralabs/zdk/dist/queries/queries-sdk';

media?: {
mimeType?: string;
source: MEDIA_SOURCES;

@@ -222,2 +223,3 @@ image?: MediaObject;

content?: {
mimeType?: string;
source: MEDIA_SOURCES;

@@ -224,0 +226,0 @@ original?: MediaObject;

{
"name": "@zoralabs/nft-hooks",
"version": "1.1.3",
"version": "1.1.4",
"description": "Generic react hooks for fetching zora auctions, nfts, and data on arbitary 721s. Powers nft-components.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/ourzora/nft-hooks",

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