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

@avst-api/confluence-server

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avst-api/confluence-server - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

common.d.ts
export interface AnyError extends Record<any, any> {
}
export interface TypedPromise<T, C = any> {
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: C) => TResult2 | PromiseLike<TResult2>) | undefined | null): TypedPromise<TResult1 | TResult2, C>;
catch<TResult = never>(onrejected?: ((reason: C) => TResult | PromiseLike<TResult>) | undefined | null): TypedPromise<T | TResult, C>;
}
//# sourceMappingURL=common.d.ts.map

2

package.json
{
"name": "@avst-api/confluence-server",
"version": "0.1.0",
"version": "0.1.1",
"description": "Adaptavist Managed API for Confluence Server",

@@ -5,0 +5,0 @@ "main": "index.js",

import { HeadersType as Headers } from '@avst-api/commons';
export declare function httpGet<Ok, Err>(connection: string, urlPath: string, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpPost<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpPut<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpDelete<Ok, Err>(connection: string, urlPath: string, headers?: Headers): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpGet<Ok, Err>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpPost<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpPut<Ok, Err>(connection: string, urlPath: string, request: any, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
export declare function httpDelete<Ok, Err>(connection: string, urlPath: string, headers?: Headers, skipBodyParsing?: boolean): Promise<import("@avst-api/commons").Response<Ok | Err>>;
//# sourceMappingURL=common.d.ts.map
import { performHttpCall } from '@avst-api/commons';
export function httpGet(connection, urlPath, headers) {
return performHttpCall(connection, urlPath, 'GET', undefined, headers);
export function httpGet(connection, urlPath, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'GET', undefined, headers, skipBodyParsing);
}
export function httpPost(connection, urlPath, request, headers) {
return performHttpCall(connection, urlPath, 'POST', request, headers);
export function httpPost(connection, urlPath, request, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'POST', request, headers, skipBodyParsing);
}
export function httpPut(connection, urlPath, request, headers) {
return performHttpCall(connection, urlPath, 'PUT', request, headers);
export function httpPut(connection, urlPath, request, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'PUT', request, headers, skipBodyParsing);
}
export function httpDelete(connection, urlPath, headers) {
return performHttpCall(connection, urlPath, 'DELETE', undefined, headers);
export function httpDelete(connection, urlPath, headers, skipBodyParsing = false) {
return performHttpCall(connection, urlPath, 'DELETE', undefined, headers, skipBodyParsing);
}

@@ -51,3 +51,3 @@ import { httpPost, httpDelete, httpGet, httpPut } from "../raw-api/common";

const queryParams = { status };
return httpDelete(instanceId, constructUrl(`/rest/api/content/${id}`, queryParams), headers);
return httpDelete(instanceId, constructUrl(`/rest/api/content/${id}`, queryParams), headers, true);
}

@@ -54,0 +54,0 @@ /**

@@ -29,3 +29,3 @@ import { httpGet, httpPost, httpDelete } from "../../raw-api/common";

const { connectionId: instanceId, headers, id, label } = options;
return httpDelete(instanceId, `/rest/api/content/${id}/label/${label}`, headers);
return httpDelete(instanceId, `/rest/api/content/${id}/label/${label}`, headers, true);
}

@@ -21,3 +21,3 @@ import { httpPost, httpDelete } from "../../raw-api/common";

const queryParams = { key, username };
return httpDelete(instanceId, constructUrl(`/rest/api/user/watch/content/${contentId}`, queryParams), headers);
return httpDelete(instanceId, constructUrl(`/rest/api/user/watch/content/${contentId}`, queryParams), headers, true);
}

Sorry, the diff of this file is not supported yet

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