New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

haystack-nclient

Package Overview
Dependencies
Maintainers
14
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haystack-nclient - npm Package Compare versions

Comparing version 3.0.22 to 3.0.23

dist/client/notifications/NotificationService.d.ts

22

dist/client/Client.d.ts
import { HNamespace, HVal, HaysonVal } from 'haystack-core';
import { getOpUrlCallback, getHaystackServiceUrlCallback, getHostServiceUrlCallback } from '../util/http';
import { getOpUrlCallback, getHaystackServiceUrlCallback, getHostServiceUrlCallback, getServiceUrlCallback } from '../util/http';
import { RecordService } from './RecordService';

@@ -14,2 +14,4 @@ import { ClientServiceConfig } from './ClientServiceConfig';

import { RolesService } from './roles/RolesService';
import { NotificationService } from './notifications/NotificationService';
import { NotificationSettingsService } from './notifications/NotificationSettingService';
/**

@@ -73,2 +75,10 @@ * A high level Haystack Client

/**
* The notifications service.
*/
readonly notifications: NotificationService;
/**
* The notifications settings service.
*/
readonly notificationsSettings: NotificationSettingsService;
/**
* The `fetch` function to use for network communication.

@@ -96,3 +106,3 @@ */

*/
constructor({ base, project, defs, options, authBearer, fetch, getOpUrl, getHaystackServiceUrl, getHostServiceUrl, pathPrefix, }: {
constructor({ base, project, defs, options, authBearer, fetch, getServiceUrl, getOpUrl, getHaystackServiceUrl, getHostServiceUrl, pathPrefix, }: {
base: URL;

@@ -104,2 +114,3 @@ project?: string;

fetch?: FetchMethod;
getServiceUrl?: getServiceUrlCallback;
getOpUrl?: getOpUrlCallback;

@@ -114,2 +125,9 @@ getHaystackServiceUrl?: getHaystackServiceUrlCallback;

/**
* Returns the origin API Url
*
* @param path Name of the API
* @returns A URL.
*/
getServiceUrl(path: string): string;
/**
* Returns the URL for an op.

@@ -116,0 +134,0 @@ *

@@ -8,2 +8,9 @@ import { HNamespace } from 'haystack-core';

/**
* Return the URL for a general REST service.
*
* @param path The API path.
* @return The services URL.
*/
getServiceUrl(path: string): string;
/**
* Return the URL for the op.

@@ -10,0 +17,0 @@ *

@@ -26,4 +26,7 @@ /**

export * from './client/roles/RolesService';
export * from './client/notifications/NotificationService';
export * from './client/notifications/NotificationSettingService';
export * from './client/notifications/NotificationsHandler';
export * from './util/hval';
export * from './util/Record';
export * from './util/http';

@@ -6,2 +6,19 @@ import { HList, HRef } from 'haystack-core';

/**
* Returns the URL for an general API.
*
* @param params.origin The origin.
* @param params.path The path prefix to use.
* @returns A URL.
*/
export declare const getServiceUrl: getServiceUrlCallback;
/**
* The functional interface for getting the origin API url.
*/
export interface getServiceUrlCallback {
({ origin, path }: {
origin: string;
path: string;
}): string;
}
/**
* The functional interface for getting the op url.

@@ -8,0 +25,0 @@ */

2

package.json

@@ -13,3 +13,3 @@ {

"homepage": "https://github.com/j2inn/haystack-nclient",
"version": "3.0.22",
"version": "3.0.23",
"module": "dist/index.es.js",

@@ -16,0 +16,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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