Skip to content

Commit

Permalink
fix: resolve possible bug
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Sep 6, 2024
1 parent 928ac96 commit 747d059
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@list-kr/microshield-token-parser",
"type": "module",
"version": "2.0.2",
"version": "2.0.3",
"license": "Apache-2.0",
"scripts": {
"build": "pkgroll --src sources",
Expand Down Expand Up @@ -37,6 +37,7 @@
"dist"
],
"dependencies": {
"es-toolkit": "^1.17.0",
"pkgroll": "^2.4.2",
"ts-morph": "^23.0.0",
"typescript": "^5.5.4"
Expand Down
3 changes: 2 additions & 1 deletion sources/extractor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as ESToolkit from 'es-toolkit'
import * as TsMorph from 'ts-morph'

export class TokenExtractor {
Expand Down Expand Up @@ -83,6 +84,6 @@ export class TokenExtractor {
}
})

return Tokens.filter((Token, Index) => Index < 10).join('')
return ESToolkit.uniq(Tokens).join('')
}
}

0 comments on commit 747d059

Please sign in to comment.