Compare commits

..

5 commits
1.0.4 ... main

Author SHA1 Message Date
Killer Boss Original
a30568a6aa
Update package.json 2023-06-22 13:08:43 +02:00
Killer Boss Original
ec7f387c27
Update package.json 2023-06-22 13:03:20 +02:00
cd3bcfebc9 ESNext 2023-06-22 13:02:06 +02:00
Killer Boss Original
54c8d0d423
Update package.json 2023-06-08 18:08:13 +02:00
Killer Boss Original
ca48244efe
Update index.ts 2023-06-08 18:07:49 +02:00
3 changed files with 4 additions and 5 deletions

View file

@ -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",

View file

@ -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++;
}

View file

@ -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. */