@sfirew/minecraft-motd-parser 1.1.5-dev.1 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -14
- package/coverage/coverage-summary.json +12 -12
- package/coverage/index.html +11 -11
- package/coverage/lcov-report/index.html +11 -11
- package/coverage/lcov.info +159 -160
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/eslint.config.mjs +82 -0
- package/jest.config.ts +12 -12
- package/package.json +12 -10
- package/types/index.d.ts +1 -1
- package/types/utils.d.ts +1 -1
- package/.eslintrc.ts +0 -23
package/types/utils.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { motdJsonType } from "./types";
|
|
|
3
3
|
* Base color code regex
|
|
4
4
|
*/
|
|
5
5
|
export declare const baseColorCodeRegex: RegExp;
|
|
6
|
-
export declare function isMotdJSONType(object:
|
|
6
|
+
export declare function isMotdJSONType(object: unknown): object is motdJsonType;
|
|
7
7
|
/**
|
|
8
8
|
* Replace all HTML special characters with HTML entities
|
|
9
9
|
* Prevents HTML injection by safely encoding special characters
|
package/.eslintrc.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true,
|
|
5
|
-
"node": true
|
|
6
|
-
},
|
|
7
|
-
"extends": [
|
|
8
|
-
"eslint:recommended",
|
|
9
|
-
"plugin:@typescript-eslint/recommended"
|
|
10
|
-
],
|
|
11
|
-
"overrides": [
|
|
12
|
-
],
|
|
13
|
-
"parser": "@typescript-eslint/parser",
|
|
14
|
-
"parserOptions": {
|
|
15
|
-
"ecmaVersion": "latest",
|
|
16
|
-
"sourceType": "module"
|
|
17
|
-
},
|
|
18
|
-
"plugins": [
|
|
19
|
-
"@typescript-eslint"
|
|
20
|
-
],
|
|
21
|
-
"rules": {
|
|
22
|
-
}
|
|
23
|
-
}
|