Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
a30568a6aa | ||
|
ec7f387c27 | ||
cd3bcfebc9 | |||
|
54c8d0d423 | ||
|
ca48244efe |
3 changed files with 4 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"name": "permission-checker",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.7",
|
||||
"description": "A permission checker for Node JS",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"type": "commonjs",
|
||||
"type": "module",
|
||||
"repository": "https://github.com/ThunderNetworkRaD/TS-Permission-Checker",
|
||||
"author": "ThunderNetworkRaD | Killer Boss Original",
|
||||
"license": "Mozilla Public License 2.0",
|
||||
|
|
|
@ -17,7 +17,6 @@ function checkSingle(perm: string, reqPerm: string) {
|
|||
let i = 0;
|
||||
for (const rp of subRP) {
|
||||
i = subRP.findIndex((e) => e === rp)
|
||||
console.log(i, rp, sub[i], subRP.length)
|
||||
if (rp != sub[i]) break;
|
||||
else i++;
|
||||
}
|
||||
|
@ -54,4 +53,4 @@ function checkList(perm: string[], reqPerm: string[]) {
|
|||
export default {
|
||||
checkList,
|
||||
checkSingle
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
||||
|
||||
/* Modules */
|
||||
"module": "CommonJS", /* Specify what module code is generated. */
|
||||
"module": "ESNext", /* Specify what module code is generated. */
|
||||
"rootDir": "src", /* Specify the root folder within your source files. */
|
||||
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
||||
|
|
Reference in a new issue