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

@aptly-as/app-sdk

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aptly-as/app-sdk - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

43

dist/aptly/AptlyApi.js

@@ -47,17 +47,36 @@ import { AptlyApiError, AptlyErrorCode } from '@aptly-as/types';

if (response.status > 299) {
throw new AptlyApiError(await response.json());
try {
const error = await response.json();
throw new AptlyApiError(error);
}
catch (error) {
throw new AptlyApiError({
status: String(response.status),
response,
title: response.statusText,
code: AptlyErrorCode.Default,
detail: 'Failed to parse json on error',
id: 'none',
error,
});
}
}
return (await response.json());
try {
return (await response.json());
}
catch (error) {
throw new AptlyApiError({
status: String(response?.status || 500),
detail: 'Failed to parse json',
code: AptlyErrorCode.Default,
link: '',
title: 'Failed to parse json',
id: 'none',
error,
response: response
});
}
}
catch (error) {
throw new AptlyApiError({
status: String(response?.status || 500),
detail: 'Failed to parse json',
code: AptlyErrorCode.Default,
link: '',
title: 'Failed to parse json',
id: 'none',
error,
response: response
});
throw error;
}

@@ -64,0 +83,0 @@ finally {

{
"name": "@aptly-as/app-sdk",
"version": "0.2.3",
"version": "0.2.4",
"description": "Aptly app SDK library for app communication and frontend development",

@@ -8,3 +8,3 @@ "type": "module",

"scripts": {
"start": "tsc --watch",
"dev": "tsc --watch",
"build": "tsc",

@@ -11,0 +11,0 @@ "test:watch": "mocha --parallel --watch",

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