Skip to content

Commit

Permalink
Remove url-template dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Nov 25, 2023
1 parent 6249520 commit f4ff1a5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const url = require('node:url');

const fetch = require('node-fetch');
const yargs = require('yargs/yargs');
const template = require('url-template');
const merge_stream = require('merge-stream');

const httpAgent = new http.Agent({ keepAlive: true });
Expand Down Expand Up @@ -145,7 +144,7 @@ async function main() {
)).data;

const branches = stream.Readable.from(
octokit.paginate.iterator(template.parse(repo.branches_url).expand({}))
octokit.paginate.iterator(repo.branches_url, {})
).flatMap(response => response.data).map(branch => branch.name);

const tags = stream.Readable.from(
Expand Down
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"console-log-level": "^1.4.1",
"merge-stream": "^2.0.0",
"node-fetch": "^2.6.8",
"url-template": "^2.0.8",
"yargs": "^17.6.2"
}
}

0 comments on commit f4ff1a5

Please sign in to comment.