Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WS, Jest and @types/node to patch security vulnerability in WS #63

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,31 +116,31 @@
"dependencies": {
"got": "11.8.6",
"uuid": "^8.3.2",
"ws": "^7.4.6",
"ws": "^8.17.1",
"xml2js": "^0.6.2"
},
"devDependencies": {
"@sofie-automation/code-standard-preset": "^2.0.2",
"@types/jest": "^26.0.20",
"@sofie-automation/code-standard-preset": "^2.5.2",
"@types/jest": "^29.5.12",
"@types/koa": "^2.11.6",
"@types/koa-bodyparser": "^4.3.0",
"@types/node": "^12.19.15",
"@types/node": "^14.18.63",
"@types/uuid": "^8.3.0",
"@types/ws": "^7.4.0",
"@types/ws": "^8.5.10",
"@types/xml2js": "^0.4.8",
"@types/yargs": "^15.0.12",
"codecov": "^3.8.1",
"gh-pages": "^3.1.0",
"jest": "^26.6.3",
"jest-haste-map": "^26.6.2",
"jest-resolve": "^26.6.2",
"jest": "^29.7.0",
"jest-haste-map": "^29.7.0",
"jest-resolve": "^29.7.0",
"koa": "^2.13.1",
"koa-bodyparser": "^4.3.0",
"npm-scripts-info": "^0.3.9",
"open-cli": "^6.0.1",
"rimraf": "^3.0.2",
"standard-version": "^9.1.0",
"ts-jest": "^26.4.4",
"ts-jest": "^29.1.5",
"ts-node": "^9.1.1",
"typedoc": "^0.22.17",
"typescript": "~4.5",
Expand Down
10 changes: 5 additions & 5 deletions src/peptalk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface IInexistentError extends PepError {
}

export class InexistentError extends PepError implements IInexistentError {
readonly status: 'inexistent' = 'inexistent'
readonly status = 'inexistent' as const
readonly path: string
constructor(id: number, path: string, sent?: string) {
super('inexistent', id, `PepTalk inexistent error: Could not locate element at ${path}.`, sent)
Expand All @@ -106,7 +106,7 @@ export interface IInvalidError extends PepError {
}

export class InvalidError extends PepError implements IInvalidError {
readonly status: 'invalid' = 'invalid'
readonly status = 'invalid' as const
readonly description: string
constructor(id: number, description: string, sent?: string) {
super('invalid', id, `Validation error: ${description}.`, sent)
Expand All @@ -123,7 +123,7 @@ export interface INotAllowedError extends PepError {
}

export class NotAllowedError extends PepError implements INotAllowedError {
readonly status: 'not_allowed' = 'not_allowed'
readonly status = 'not_allowed' as const
readonly reason: string
constructor(id: number, reason: string, sent?: string) {
super('not_allowed', id, `Request understood put not allowed: ${reason}.`, sent)
Expand All @@ -140,7 +140,7 @@ export interface ISyntaxError extends PepError {
}

export class SyntaxError extends PepError implements ISyntaxError {
readonly status: 'syntax' = 'syntax'
readonly status = 'syntax' as const
readonly description: string
constructor(id: number, description: string, sent?: string) {
super('syntax', id, `Syntax error in request: ${description}.`, sent)
Expand All @@ -158,7 +158,7 @@ export interface IUnspecifiedError extends PepError {

export class UnspecifiedError extends PepError implements IUnspecifiedError {
readonly description: string
readonly status: 'unspecified' = 'unspecified'
readonly status = 'unspecified' as const
constructor(id: number | '*', description: string, sent?: string) {
super('unspecified', id, description, sent)
this.description = description
Expand Down
Loading
Loading