Socket
Socket
Sign inDemoInstall

@cspell/cspell-service-bus

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspell/cspell-service-bus - npm Package Compare versions

Comparing version 7.3.9 to 8.0.0

2

dist/esm/bus.js

@@ -5,4 +5,4 @@ import { ErrorServiceRequestDepthExceeded, ErrorUnhandledRequest, UnhandledHandlerError } from './errors.js';

export class ServiceBus {
handlers = [];
constructor(handlers = []) {
this.handlers = [];
handlers.forEach((h) => this.addHandler(h));

@@ -9,0 +9,0 @@ }

export class ErrorUnhandledRequest extends Error {
request;
constructor(request) {

@@ -8,2 +9,4 @@ super(`Unhandled Request: ${request.type}`);

export class ErrorServiceRequestDepthExceeded extends Error {
request;
depth;
constructor(request, depth) {

@@ -16,2 +19,5 @@ super(`Service Request Depth ${depth} Exceeded: ${request.type}`);

export class UnhandledHandlerError extends Error {
handlerName;
handlerDescription;
cause;
constructor(handlerName, handlerDescription, cause) {

@@ -25,2 +31,3 @@ super(`Unhandled Error in Handler: ${handlerName}`);

export class ErrorDuplicateSubsystem extends Error {
subsystemName;
constructor(subsystemName) {

@@ -27,0 +34,0 @@ super(`Duplicate subsystem: ${subsystemName}`);

class BaseServiceRequest {
type;
params;
__r;
constructor(type, params) {

@@ -3,0 +6,0 @@ this.type = type;

@@ -5,2 +5,3 @@ import { createRequestHandler } from './createRequestHandler.js';

class RequestClass extends ServiceRequestCls {
static type = requestType;
constructor(params) {

@@ -18,6 +19,6 @@ super(requestType, params);

}
static __request;
}
RequestClass.type = requestType;
return RequestClass;
}
//# sourceMappingURL=requestFactory.js.map

@@ -8,2 +8,4 @@ import { assert } from './assert.js';

class SystemServiceBusImpl {
serviceBus;
_subsystems;
constructor() {

@@ -56,2 +58,6 @@ this.serviceBus = createServiceBus();

class SubsystemServiceBusImpl extends ServiceBus {
name;
requestPattern;
handler;
canHandleType;
constructor(name, requestPattern) {

@@ -58,0 +64,0 @@ super();

@@ -6,3 +6,3 @@ {

},
"version": "7.3.9",
"version": "8.0.0",
"description": "A Library for connecting requests to services that can fulfill them.",

@@ -52,5 +52,5 @@ "keywords": [

"engines": {
"node": ">=16"
"node": ">=18"
},
"gitHead": "77c7fb3ffd80a626ec07d704cefcaa21d62fd460"
"gitHead": "67c22bf98baed1c17bbc658fba8656262d17e370"
}
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