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

@aptly-as/types

Package Overview
Dependencies
Maintainers
0
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptly-as/types - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1

6

error/error.js

@@ -6,4 +6,8 @@ export class AptlyError extends Error {

static async fromResponse(response) {
if (response.headers.get('content-type') !== 'application/json') {
const contentType = response.headers.get('content-type');
if (contentType?.includes('application/json')) {
const body = await response.json();
if (!body.link) {
body.link = response.url;
}
if (body.name === AptlyError.name) {

@@ -10,0 +14,0 @@ return new AptlyError(body);

2

package.json
{
"name": "@aptly-as/types",
"version": "2.8.0",
"version": "2.8.1",
"description": "Aptly types and enums",

@@ -5,0 +5,0 @@ "type": "module",

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