Skip to content

Commit

Permalink
fix: duplicated tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Sep 6, 2024
1 parent 35b892d commit 928ac96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions 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.1",
"version": "2.0.2",
"license": "Apache-2.0",
"scripts": {
"build": "pkgroll --src sources",
Expand Down Expand Up @@ -42,10 +42,10 @@
"typescript": "^5.5.4"
},
"devDependencies": {
"@types/eslint": "^9.6.0",
"@types/node": "^22.2.0",
"eslint": "^9.8.0",
"tsx": "^4.17.0",
"typescript-eslint": "^8.0.1"
"@types/eslint": "^9.6.1",
"@types/node": "^22.5.4",
"eslint": "^9.9.1",
"tsx": "^4.19.0",
"typescript-eslint": "^8.4.0"
}
}
2 changes: 1 addition & 1 deletion sources/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ export class TokenExtractor {
}
})

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

0 comments on commit 928ac96

Please sign in to comment.