New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@traderxyz/nft-swap-sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@traderxyz/nft-swap-sdk - npm Package Compare versions

Comparing version

to
0.28.0

@@ -87,3 +87,3 @@ import type { Signer } from '@ethersproject/abstract-signer';

appId: string;
expiry: Date | number;
expiry: Date | number | string;
nonce: BigNumberish;

@@ -98,3 +98,3 @@ fees: UserFacingFeeStruct[];

taker?: string;
expiry?: Date | number;
expiry?: Date | number | string;
nonce?: BigNumberish;

@@ -101,0 +101,0 @@ fees?: UserFacingFeeStruct[];

{
"version": "0.27.0",
"version": "0.28.0",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

@@ -33,2 +33,5 @@ ![NFT Swap Banner](./nft-swap-sdk-banner.jpg)

You can check out an example project [here](https://nft-swapping-demo.vercel.app/)
or check out the example repo [here](https://github.com/HaidarEzio/NFTswap/tree/example-project)
## Configuration

@@ -35,0 +38,0 @@

@@ -298,4 +298,7 @@ import { Signer, TypedDataSigner } from '@ethersproject/abstract-signer';

if (orderData.expiry) {
// If number is provided, assume given as unix timestamp
if (typeof orderData.expiry === 'number') {
// If number or string is provided, assume given as unix timestamp
if (
typeof orderData.expiry === 'number' ||
typeof orderData.expiry === 'string'
) {
expiry = orderData.expiry.toString();

@@ -345,4 +348,7 @@ } else {

if (orderData.expiry) {
// If number is provided, assume given as unix timestamp
if (typeof orderData.expiry === 'number') {
// If number or string is provided, assume given as unix timestamp
if (
typeof orderData.expiry === 'number' ||
typeof orderData.expiry === 'string'
) {
expiry = orderData.expiry.toString();

@@ -349,0 +355,0 @@ } else {

@@ -99,3 +99,3 @@ import type { Signer } from '@ethersproject/abstract-signer';

appId: string;
expiry: Date | number;
expiry: Date | number | string;
nonce: BigNumberish;

@@ -115,3 +115,3 @@ // erc20Token: string;

taker?: string;
expiry?: Date | number;
expiry?: Date | number | string;
nonce?: BigNumberish;

@@ -118,0 +118,0 @@ fees?: UserFacingFeeStruct[];

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

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

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

Sorry, the diff of this file is not supported yet