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

opensea-js

Package Overview
Dependencies
Maintainers
4
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opensea-js - npm Package Compare versions

Comparing version 7.0.1 to 7.0.2

12

lib/api/api.js

@@ -377,2 +377,14 @@ "use strict";

const response = await req.send();
if (!response.ok) {
// If an errors array is returned, throw with the error messages.
const errors = response.bodyJson?.errors;
if (errors?.length > 0) {
throw new Error(`Server Error: ${errors.join(", ")}`);
}
else {
// Otherwise, let ethers throw a SERVER_ERROR since it will include
// more context about the request and response.
response.assertOk();
}
}
return response.bodyJson;

@@ -379,0 +391,0 @@ }

2

package.json
{
"name": "opensea-js",
"version": "7.0.1",
"version": "7.0.2",
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -623,4 +623,15 @@ import { ethers } from "ethers";

const response = await req.send();
if (!response.ok) {
// If an errors array is returned, throw with the error messages.
const errors = response.bodyJson?.errors;
if (errors?.length > 0) {
throw new Error(`Server Error: ${errors.join(", ")}`);
} else {
// Otherwise, let ethers throw a SERVER_ERROR since it will include
// more context about the request and response.
response.assertOk();
}
}
return response.bodyJson;
}
}

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