maintenance

This commit is contained in:
2025-09-04 20:27:27 -04:00
parent 8762051e7a
commit 8c1993d39a
4 changed files with 16 additions and 3 deletions

View File

@@ -50,9 +50,11 @@ export class Channels {
private readonly _httpRequests: PCastHttpRequests;
private readonly _channelsByAlias: Map<ChannelAlias, Channel> = new Map();
constructor(pcastHttpRequests: PCastHttpRequests) {
constructor(pcastHttpRequests: PCastHttpRequests, skipInitialization = false) {
this._httpRequests = pcastHttpRequests;
this.initialize();
if (!skipInitialization) {
this.initialize();
}
}
public async create(name: string, description: string, channelOptions: string[] = []): Promise<Channel> {

View File

@@ -3,5 +3,7 @@ export enum HttpMethod {
POST = 'POST',
PUT = 'PUT',
PATCH = 'PATCH',
DELETE = 'DELETE'
DELETE = 'DELETE',
OPTIONS = 'OPTIONS',
HEAD = 'HEAD'
}