-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
652 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ci-cabin | ||
name: ci-class-validator | ||
on: | ||
push: | ||
branches: [main] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
interface CloseEventInit extends EventInit { | ||
code?: number; | ||
reason?: string; | ||
wasClean?: boolean; | ||
code?: number | ||
reason?: string | ||
wasClean?: boolean | ||
} | ||
|
||
/** | ||
* @link https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent | ||
*/ | ||
export const CloseEvent = globalThis.CloseEvent ?? class extends Event { | ||
export const CloseEvent = | ||
globalThis.CloseEvent ?? | ||
class extends Event { | ||
#eventInitDict | ||
|
||
constructor( | ||
type: string, | ||
eventInitDict: CloseEventInit = {} | ||
) { | ||
super(type, eventInitDict) | ||
this.#eventInitDict = eventInitDict | ||
constructor(type: string, eventInitDict: CloseEventInit = {}) { | ||
super(type, eventInitDict) | ||
this.#eventInitDict = eventInitDict | ||
} | ||
|
||
get wasClean(): boolean { | ||
return this.#eventInitDict.wasClean ?? false | ||
return this.#eventInitDict.wasClean ?? false | ||
} | ||
|
||
get code(): number { | ||
return this.#eventInitDict.code ?? 0 | ||
return this.#eventInitDict.code ?? 0 | ||
} | ||
|
||
get reason(): string { | ||
return this.#eventInitDict.reason ?? '' | ||
return this.#eventInitDict.reason ?? '' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { defineConfig } from "tsup"; | ||
import { defineConfig } from 'tsup' | ||
|
||
export default defineConfig({ | ||
entryPoints: ["src/index.ts"], | ||
format: ["cjs", "esm"], | ||
entryPoints: ['src/index.ts'], | ||
format: ['cjs', 'esm'], | ||
dts: true, | ||
outDir: "dist", | ||
outDir: 'dist', | ||
clean: true, | ||
}); | ||
}) |
Oops, something went wrong.