This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4c9347
commit c0d7c0c
Showing
10 changed files
with
58 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
{ | ||
"name": "@list-kr/microshield", | ||
"version": "4.10.7", | ||
"version": "4.11.0", | ||
"description": "", | ||
"type": "module", | ||
"scripts": { | ||
|
@@ -14,7 +14,9 @@ | |
"lint": "tsc --noEmit && eslint sources" | ||
}, | ||
"keywords": [], | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"author": { | ||
"name": "PiQuark6046", | ||
"email": "[email protected]", | ||
|
@@ -44,6 +46,7 @@ | |
"@list-kr/microshield-token-parser": "^2.0.3", | ||
"@types/node": "^22.5.4", | ||
"crypto-random-string": "^5.0.0", | ||
"error-stack-parser": "^2.1.4", | ||
"parse-domain": "^8.2.2" | ||
}, | ||
"devDependencies": { | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type * as ErrorStackParser from 'error-stack-parser' | ||
|
||
export function MatchSpecificSeq(StackFrames: ReturnType<typeof ErrorStackParser.parse>, Patterns: Array<RegExp | undefined>): boolean { | ||
return StackFrames.some((StackFrame, I) => | ||
Patterns.every((Pattern, J) => { | ||
if (I + J >= StackFrames.length) return false | ||
return Pattern === undefined || Pattern.test(typeof StackFrames[I + J].functionName !== 'undefined' ? StackFrames[I + J].functionName as string : '') | ||
}) | ||
) | ||
} |