Skip to content

Commit

Permalink
fix: wrong npm package name
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Oct 29, 2024
1 parent 0372ccf commit b4c0e34
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const PLimitInstance = PLimit(Os.cpus().length)
const PLimitJobs: Promise<void>[] = []
for (const TargetTag of Options.distTag.split(' ')) {
PLimitJobs.push(PLimitInstance(async () => {
const ChangedFiles = await new FileManager(Options.repo, { A: CurrrentTags[TargetTag], B: OlderTags === null ? undefined : OlderTags[TargetTag] }, `${Options.ciWorkspacePath}/${TargetTag}`).Union()
const ChangedFiles = await new FileManager(Options.package, { A: CurrrentTags[TargetTag], B: OlderTags === null ? undefined : OlderTags[TargetTag] }, `${Options.ciWorkspacePath}/${TargetTag}`).Union()
const PurgeRequestManagerInstance = new PurgeRequestManager(Options.repo)
PurgeRequestManagerInstance.AddURLs(ChangedFiles, TargetTag)
PurgeRequestManagerInstance.Start()
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "jsdelivr-purge",
"version": "1.0.2",
"name": "jsdelivr-purge-npm",
"version": "1.0.3",
"repository": {
"type": "git",
"url": "https://github.com/List-KR/jsdelivr-purge"
"url": "https://github.com/List-KR/jsdelivr-purge-npm"
},
"bugs": {
"url": "https://github.com/List-KR/jsdelivr-purge/issues"
"url": "https://github.com/List-KR/jsdelivr-purge-npm/issues"
},
"homepage": "https://github.com/List-KR/jsdelivr-purge",
"homepage": "https://github.com/List-KR/jsdelivr-purge-npm",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion sources/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export class HistoryManager {
minVersion: 'TLSv1.3',
ciphers: 'TLS_AES_256_GCM_SHA384;TLS_CHACHA20_POLY1305_SHA256'
},
http2: true
http2: true,
headers: {
'user-agent': 'jsdelivr-purge-npm'
}
}).buffer()
const HistoryData = (await Unzipper.Open.buffer(HistoryCompressedBuffer)).files.find(FilePara => FilePara.path.includes('dist-tag.json'))
return (await HistoryData.buffer()).toString() as unknown as IHistoryManagerDataJSON
Expand Down

0 comments on commit b4c0e34

Please sign in to comment.