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
0
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 1.1.6 to 1.2.0

1

dist/aptly/AptlyApi.d.ts

@@ -25,2 +25,3 @@ /// <reference types="node" />

delete<T>(path: string, init?: Omit<RequestInit, 'body' | 'method'>): Promise<T>;
postAppWebhook(body: object): Promise<any>;
downloadDocumentWithToken(downloadToken: string): Promise<{

@@ -27,0 +28,0 @@ buffer: Buffer;

@@ -44,2 +44,21 @@ import { AptlyError } from '@aptly-as/types';

}
async postAppWebhook(body) {
const res = await fetch('/api/apps/webhook', {
method: 'POST',
headers: {
Authorization: this.basicAuth(),
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
if (!res.ok) {
throw new AptlyError({
id: 'none',
status: res.status,
title: res.statusText,
detail: await res.text(),
});
}
return await res.json();
}
async downloadDocumentWithToken(downloadToken) {

@@ -46,0 +65,0 @@ return this.downloadDocument(`/documents/${downloadToken}`);

2

package.json
{
"name": "@aptly-as/app-sdk",
"version": "1.1.6",
"version": "1.2.0",
"description": "Aptly app SDK library for app communication and frontend development",

@@ -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