maintenance
This commit is contained in:
@@ -3,3 +3,6 @@ save = false
|
||||
|
||||
[install.scopes]
|
||||
"@techniker-me" = "https://registry-node.techniker.me"
|
||||
|
||||
[test]
|
||||
preload = ["./test/setup.ts"]
|
||||
|
||||
@@ -5,8 +5,14 @@
|
||||
"scripts": {
|
||||
"ci-build": "bun run build",
|
||||
"test": "bun test",
|
||||
"test:unit": "bun test test/unit",
|
||||
"test:integration": "bun test test/integration",
|
||||
"test:watch": "bun test --watch",
|
||||
"test:watch:unit": "bun test --watch test/unit",
|
||||
"test:watch:integration": "bun test --watch test/integration",
|
||||
"test:coverage": "bun test --coverage",
|
||||
"test:coverage:unit": "bun test --coverage test/unit",
|
||||
"test:coverage:integration": "bun test --coverage test/integration",
|
||||
"preformat": "bun install",
|
||||
"format": "prettier --write ./",
|
||||
"prelint:fix": "bun format",
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -3,5 +3,7 @@ export enum HttpMethod {
|
||||
POST = 'POST',
|
||||
PUT = 'PUT',
|
||||
PATCH = 'PATCH',
|
||||
DELETE = 'DELETE'
|
||||
DELETE = 'DELETE',
|
||||
OPTIONS = 'OPTIONS',
|
||||
HEAD = 'HEAD'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user