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

@gtsc/api-core

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtsc/api-core - npm Package Compare versions

Comparing version 0.0.5-next.1 to 0.0.5-next.2

7

dist/types/clients/baseSocketClient.d.ts
import type { IBaseSocketClientConfig } from "@gtsc/api-models";
import { type IError } from "@gtsc/core";
import type { IServiceRequestContext } from "@gtsc/services";
/**

@@ -29,6 +28,5 @@ * Event bus which publishes using web-sockets.

* Connect the socket if its not already connected.
* @param requestContext The context for the request.
* @returns True if the socket is already connected.
*/
protected socketConnect(requestContext: IServiceRequestContext): boolean;
protected socketConnect(): boolean;
/**

@@ -49,6 +47,5 @@ * Disconnect the socket if its connected.

* Handle an error.
* @param requestContext The context for the request.
* @param err The error to handle.
*/
protected abstract handleError(requestContext: IServiceRequestContext, err: IError): Promise<void>;
protected abstract handleError(err: IError): Promise<void>;
}

@@ -87,12 +87,6 @@ # Class: `abstract` BaseSocketClient

> `protected` **socketConnect**(`requestContext`): `boolean`
> `protected` **socketConnect**(): `boolean`
Connect the socket if its not already connected.
#### Parameters
• **requestContext**: `IServiceRequestContext`
The context for the request.
#### Returns

@@ -146,3 +140,3 @@

> `protected` `abstract` **handleError**(`requestContext`, `err`): `Promise`\<`void`\>
> `protected` `abstract` **handleError**(`err`): `Promise`\<`void`\>

@@ -153,6 +147,2 @@ Handle an error.

• **requestContext**: `IServiceRequestContext`
The context for the request.
• **err**: `IError`

@@ -159,0 +149,0 @@

{
"name": "@gtsc/api-core",
"version": "0.0.5-next.1",
"version": "0.0.5-next.2",
"description": "Core classes for use with APIs",

@@ -17,3 +17,3 @@ "repository": {

"dependencies": {
"@gtsc/api-models": "0.0.5-next.1",
"@gtsc/api-models": "0.0.5-next.2",
"@gtsc/core": "next",

@@ -20,0 +20,0 @@ "@gtsc/nameof": "next",

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