Skip to content

Commit

Permalink
feat: Added SECURITY file & formatted some TypeScript code
Browse files Browse the repository at this point in the history
  • Loading branch information
Murtatrxx committed Feb 15, 2022
1 parent 2d80734 commit 779011a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 21 deletions.
17 changes: 17 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Security Policy

## Supported Versions

Project is currently in development and is not yet ready to be used.

| Version | Supported |
| ------- | ------------------ |
| 0.1.0 @ dev | :white_check_mark: |

## Reporting a Vulnerability

You can report a vulnerability by opening an issue on the [project's GitHub](https://github.com/SernHandler/Sern/issues) repository.

Please provide as much information as possible when reporting a vulnerability. We are looking for information for, the affected version, and the steps to reproduce the vulnerability.

Be patient, we are working on fixing all reported vulnerabilities.
8 changes: 7 additions & 1 deletion src/handler/sern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import type * as Utils from './utilities/preprocessors/args';

import type { Arg, Context, Visibility, possibleOutput } from '../types/handler';

import type { ApplicationCommandOptionData, Awaitable, Client, CommandInteraction, Message } from 'discord.js';
import type {
ApplicationCommandOptionData,
Awaitable,
Client,
CommandInteraction,
Message
} from 'discord.js';

import { Ok, Result, None, Some } from 'ts-results';
import { isBot, hasPrefix, fmt } from './utilities/messageHelpers';
Expand Down
40 changes: 20 additions & 20 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"resolveJsonModule": true,
"target": "esnext",
"module": "commonjs",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"importsNotUsedAsValues": "error",
"skipLibCheck": true,
"declaration": true,
"forceConsistentCasingInFileNames": true,
},
"exclude": ["node_modules", "tests", "dist"],
"include": ["src"],
}
"compilerOptions": {
"experimentalDecorators": true,
"resolveJsonModule": true,
"target": "esnext",
"module": "commonjs",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"strictNullChecks": true,
"importsNotUsedAsValues": "error",
"moduleResolution": "node",
"skipLibCheck": true,
"declaration": true,
"forceConsistentCasingInFileNames": true,
},
"exclude": ["node_modules", "tests", "dist"],
"include": ["src"],
}

0 comments on commit 779011a

Please sign in to comment.